/* ==========================================================================
   TOPÍSIMA ÓPTICA - ESTILOS PRINCIPALES (RESPONSIVE & MOBILE-FIRST)
   ========================================================================== */

:root {
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --t-navy: #09152b;
  --t-navy-dark: #040a16;
  --t-pink: #ef1de6;
  --t-pink-gradient: linear-gradient(135deg, #f43f5e 0%, #ef1de6 100%);
  --t-blue: #2563eb;
  --t-blue-dark: #1d4ed8;
  --t-blue-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --t-bg: #f8fafc;
  --t-surface: #ffffff;
  --t-surface-subtle: #f1f5f9;
  --t-text: #0f172a;
  --t-text-muted: #64748b;
  --t-text-subtle: #94a3b8;
  --t-border: rgba(15, 23, 42, 0.08);
  --t-border-focus: rgba(37, 99, 235, 0.4);
  --t-radius-sm: 8px;
  --t-radius-md: 14px;
  --t-radius-lg: 20px;
  --t-radius-full: 9999px;
  --t-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --t-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --t-shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
  --t-max-width: 1240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  color: var(--t-text);
  background-color: var(--t-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

input, select, textarea {
  font-family: inherit;
}

.container {
  width: min(var(--t-max-width), calc(100% - 28px));
  margin: 0 auto;
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */

.top-bar {
  background: var(--t-navy-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-weight: 500;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar__contact a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #e2e8f0;
  transition: color 0.2s;
}

.top-bar__contact a:hover {
  color: #38bdf8;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t-border);
  transition: all 0.25s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  height: 44px;
}

.header__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--t-navy);
  padding: 6px 10px;
  border-radius: var(--t-radius-sm);
  transition: all 0.2s ease;
}

.header__nav a:hover {
  color: var(--t-blue);
  background: rgba(37, 99, 235, 0.06);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--t-radius-full);
  background: var(--t-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-cart-trigger:hover {
  background: var(--t-blue);
  transform: translateY(-1px);
}

.cart-count-badge {
  background: var(--t-pink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Barra de sub-navegación para móviles */
.mobile-subnav {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--t-border);
  position: sticky;
  top: 68px;
  z-index: 45;
}

.mobile-subnav__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.mobile-subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav-chip {
  padding: 6px 14px;
  border-radius: var(--t-radius-full);
  background: var(--t-surface-subtle);
  color: var(--t-navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--t-border);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.subnav-chip:active {
  background: var(--t-blue);
  color: #ffffff;
  border-color: var(--t-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 29, 230, 0.12), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 50px 0 65px;
  overflow: hidden;
  border-bottom: 1px solid var(--t-border);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 29, 230, 0.08);
  color: #d916d0;
  border: 1px solid rgba(239, 29, 230, 0.2);
  padding: 6px 14px;
  border-radius: var(--t-radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  color: var(--t-navy);
  letter-spacing: -0.03em;
}

.hero__title span.gradient-text {
  background: var(--t-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--t-text-muted);
  max-width: 520px;
}

.hero__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0;
}

.step-card {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--t-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--t-shadow-md);
}

.step-card__num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-blue);
}

.step-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-navy);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--t-radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn--primary {
  background: var(--t-blue-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: #ffffff;
  color: var(--t-navy);
  border: 1px solid var(--t-border);
  box-shadow: var(--t-shadow-sm);
}

.btn--secondary:hover {
  background: var(--t-surface-subtle);
  transform: translateY(-1px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__banner-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  box-shadow: var(--t-shadow-lg);
  border: 1px solid var(--t-border);
  width: 100%;
}

.hero__banner-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(9, 21, 43, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--t-radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--t-shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-icon {
  font-size: 24px;
}

.hero__floating-badge strong {
  display: block;
  font-size: 15px;
  color: #38bdf8;
  font-weight: 800;
}

.hero__floating-badge span {
  font-size: 12px;
  color: #cbd5e1;
}

/* ==========================================================================
   COTIZADOR DE CRISTALES (LUNA QUOTE)
   ========================================================================== */

.section-quote {
  padding: 55px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--t-border);
}

.quote-wrapper {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-lg);
  box-shadow: var(--t-shadow-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
}

.quote-header {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.quote-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--t-navy);
  letter-spacing: -0.02em;
}

.quote-header p {
  color: var(--t-text-muted);
  font-size: 15px;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.quote-grid-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-navy);
  display: flex;
  justify-content: space-between;
}

.form-label span.hint {
  font-weight: 400;
  color: var(--t-text-muted);
  font-size: 11px;
}

.form-input, .form-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--t-radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--t-navy);
  font-size: 16px; /* Evita zoom automático en Safari/Chrome iOS */
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--t-blue);
  box-shadow: 0 0 0 4px var(--t-border-focus);
}

.quote-preview-card {
  background: var(--t-surface);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--t-radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.05);
}

.quote-preview-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--t-border);
}

.quote-preview-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--t-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.quote-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.quote-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--t-text-muted);
}

.quote-breakdown-item strong {
  color: var(--t-navy);
}

.quote-total-box {
  background: var(--t-navy);
  color: #ffffff;
  border-radius: var(--t-radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-total-box span {
  font-size: 13px;
  color: #94a3b8;
}

.quote-total-box strong {
  font-size: 20px;
  color: #38bdf8;
  font-weight: 900;
}

.quote-note-alert {
  font-size: 12px;
  color: var(--t-text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

.quote-active-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: var(--t-radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
}

.quote-active-banner button {
  background: none;
  border: none;
  color: #047857;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS
   ========================================================================== */

.section-catalog {
  padding: 50px 0 70px;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.catalog-header-text {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-header-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--t-navy);
  letter-spacing: -0.02em;
}

.catalog-header-text p {
  color: var(--t-text-muted);
  font-size: 14px;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  padding: 8px 16px;
  border-radius: var(--t-radius-full);
  border: 1px solid var(--t-border);
  background: #ffffff;
  color: var(--t-navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.chip-btn:hover {
  background: var(--t-surface-subtle);
}

.chip-btn.is-active {
  background: var(--t-navy);
  color: #ffffff;
  border-color: var(--t-navy);
}

.search-box {
  position: relative;
  min-width: 250px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px 8px 36px;
  border-radius: var(--t-radius-full);
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--t-blue);
  box-shadow: 0 0 0 4px var(--t-border-focus);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t-text-subtle);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.product-card {
  background: #ffffff;
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--t-shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--t-shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.product-card__media {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: var(--t-radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--regular {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
}

.badge--premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
}

.product-card__category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-text-subtle);
  font-weight: 700;
}

.product-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--t-navy);
  line-height: 1.3;
}

.product-card__price-wrap {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__price-frame {
  font-size: 16px;
  font-weight: 900;
  color: var(--t-navy);
}

.product-card__price-formula {
  font-size: 12px;
  color: var(--t-blue);
  font-weight: 700;
}

.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-card-choose {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--t-radius-full);
  font-size: 13px;
  font-weight: 700;
  background: var(--t-navy);
  color: #ffffff;
  transition: all 0.2s;
  min-height: 38px;
}

.btn-card-choose:hover {
  background: var(--t-blue);
}

.btn-card-detail {
  padding: 9px 12px;
  border-radius: var(--t-radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--t-surface-subtle);
  color: var(--t-navy);
  transition: all 0.2s;
  min-height: 38px;
}

.btn-card-detail:hover {
  background: rgba(15, 23, 42, 0.08);
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--t-radius-full);
  border: 1px solid var(--t-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 38px;
}

.page-btn:hover:not(:disabled) {
  background: var(--t-surface-subtle);
}

.page-btn.is-active {
  background: var(--t-navy);
  color: #ffffff;
  border-color: var(--t-navy);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   DRAWER DE CARRITO / CHECKOUT
   ========================================================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  background: #ffffff;
  z-index: 100;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--t-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer__header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--t-navy);
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: var(--t-radius-full);
  color: var(--t-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--t-surface-subtle);
  font-size: 16px;
  font-weight: 700;
}

.cart-drawer__body {
  padding: 18px 22px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--t-surface-subtle);
  border-radius: var(--t-radius-md);
  border: 1px solid var(--t-border);
}

.cart-item__thumb {
  width: 75px;
  height: 75px;
  border-radius: var(--t-radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t-navy);
}

.cart-item__tag {
  font-size: 11px;
  color: var(--t-text-muted);
}

.cart-item__formula {
  margin-top: 4px;
  padding: 6px 8px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  font-size: 11px;
  color: #1e40af;
  line-height: 1.4;
}

.cart-item__price {
  font-size: 15px;
  font-weight: 800;
  color: var(--t-navy);
  margin-top: 4px;
}

.cart-item__remove {
  color: #ef4444;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  align-self: flex-start;
}

.cart-checkout-form {
  border-top: 1px solid var(--t-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-checkout-form h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--t-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-drawer__footer {
  padding: 18px 22px;
  border-top: 1px solid var(--t-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer__total span {
  font-size: 15px;
  color: var(--t-text-muted);
}

.cart-drawer__total strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--t-navy);
}

.btn-whatsapp-order {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--t-radius-full);
  background: #25d366;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-whatsapp-order:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   MODAL DE DETALLE DE PRODUCTO
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: #ffffff;
  border-radius: var(--t-radius-lg);
  max-width: 680px;
  width: 100%;
  box-shadow: var(--t-shadow-lg);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}

.product-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--t-shadow-sm);
  font-size: 16px;
  font-weight: 700;
}

.product-modal__media {
  background: #f8fafc;
  display: grid;
  place-items: center;
  padding: 16px;
}

.product-modal__media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.product-modal__info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* ==========================================================================
   SUCURSALES Y FOOTER
   ========================================================================== */

.section-branches {
  padding: 50px 0;
  background: var(--t-surface);
  border-bottom: 1px solid var(--t-border);
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.branch-card {
  background: #ffffff;
  border: 1px solid var(--t-border);
  border-radius: var(--t-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--t-shadow-sm);
}

.branch-card strong {
  font-size: 15px;
  color: var(--t-navy);
}

.branch-card p {
  font-size: 12px;
  color: var(--t-text-muted);
}

.footer {
  background: var(--t-navy);
  color: #ffffff;
  padding: 50px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #38bdf8;
}

.footer__bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP & TOASTS
   ========================================================================== */

.floating-wa-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 80;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--t-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.25s ease;
}

.floating-wa-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-wa-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  background: var(--t-navy);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--t-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: all;
  border-left: 4px solid var(--t-blue);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    align-items: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .quote-wrapper {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header__inner {
    height: 60px;
  }

  .header__logo img {
    height: 32px;
  }

  .header__nav {
    display: none;
  }

  .mobile-subnav {
    display: block;
    top: 60px;
  }

  .hero {
    padding: 24px 0 36px;
  }

  .hero__title {
    font-size: 30px;
    line-height: 1.15;
  }

  .hero__lead {
    font-size: 14px;
    max-width: 100%;
  }

  .hero__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }

  .step-card {
    padding: 8px 6px;
  }

  .step-card__num {
    font-size: 9px;
  }

  .step-card__title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .step-card small {
    display: none;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 14px;
  }

  .hero__banner-card img {
    height: 230px;
  }

  .hero__floating-badge {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    gap: 8px;
  }

  .hero__floating-badge strong {
    font-size: 13px;
  }

  .hero__floating-badge span {
    font-size: 11px;
  }

  .section-quote {
    padding: 32px 0;
  }

  .quote-wrapper {
    padding: 18px 14px;
    border-radius: 16px;
    gap: 20px;
  }

  .quote-grid-inputs {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-catalog {
    padding: 32px 0 50px;
  }

  .search-box {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    border-radius: 14px;
  }

  .product-card__tier-badge {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 3px 6px;
  }

  .product-card__body {
    padding: 10px 8px;
    gap: 4px;
  }

  .product-card__category {
    font-size: 10px;
  }

  .product-card__title {
    font-size: 13px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card__price-frame {
    font-size: 14px;
  }

  .product-card__price-formula {
    font-size: 11px;
  }

  .product-card__actions {
    margin-top: 4px;
    gap: 4px;
  }

  .btn-card-choose {
    padding: 7px 8px;
    font-size: 11px;
    min-height: 34px;
  }

  .btn-card-detail {
    padding: 7px 8px;
    font-size: 11px;
    min-height: 34px;
  }

  .product-modal {
    grid-template-columns: 1fr;
    max-height: 86vh;
    border-radius: 18px;
  }

  .product-modal__media {
    padding: 12px;
  }

  .product-modal__media img {
    max-height: 180px;
  }

  .product-modal__info {
    padding: 16px;
    gap: 10px;
  }

  .cart-drawer {
    width: 100vw;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .floating-wa-btn {
    bottom: 16px;
    left: 16px;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .floating-wa-btn span {
    display: none;
  }
}
