/* ═══════════════════════════════════════════════════════════════════
   OPTILENTES — css/styles.css
   Hoja de estilos maestra de producción. Variables :root centralizadas.
   Versión: Arquitectura modular. Header compacto.
   ═══════════════════════════════════════════════════════════════════ */

/* ── TOKENS CSS ──────────────────────────────────────────────────── */
:root {
  --primary: #0B2B6D;
  --primary-dark: #071C48;
  --primary-light: #1D4FAD;
  --secondary: #00AEEF;
  --secondary-light: #EAF7FD;
  --secondary-dim: rgba(0, 174, 239, 0.15);

  --bg: #FFFFFF;
  --bg-light: #F4F7FB;
  --bg-muted: #E8EDF5;
  --border: #DDE3EE;

  --text: #0F1A2E;
  --text-muted: #6B7A99;
  --text-light: #9AA5C0;

  --green: #22C55E;
  --red: #EF4444;
  --orange: #F97316;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 4px rgba(11, 43, 109, 0.06);
  --shadow-sm: 0 2px 12px rgba(11, 43, 109, 0.08);
  --shadow: 0 6px 24px rgba(11, 43, 109, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 43, 109, 0.18);

  --transition: 0.25s ease;
  --font: 'Outfit', system-ui, sans-serif;
}

/* ── RESET GLOBAL ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
  /* evita que flex items desborden */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* elimina scrollbar horizontal en raíz */
  max-width: 100%;
}

/* ── PROTECCIÓN GLOBAL DE IMÁGENES (Anti-Descarga y Anti-Arrastre) ──── */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* doble guardia contra desbordes */
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
}

.page-hidden {
  display: none !important;
}

/* ── BOTONES ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(11, 43, 109, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 43, 109, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 174, 239, 0.35);
}

.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-light {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 800;
  padding: 0.85rem 2rem;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-block {
  width: 100%;
}

.btn-pay {
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  gap: 0.65rem;
}

.btn-pay svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER — Compacto y Elegante
   ═══════════════════════════════════════════════════════════════════ */
#siteHeader {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border) !important;
}

#siteHeader .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-block: 0.75rem !important;
  min-height: 85px !important;
}

#btnHome.logo,
.logo {
  display: flex !important;
  align-items: center !important;
  width: 280px !important;
  min-width: 280px !important;
  height: 65px !important;
  flex-shrink: 0 !important;
  margin-right: 1.5rem !important;
}

#btnHome.logo img,
.logo img,
.logo-img {
  width: 100% !important;
  height: 100% !important;
  max-height: 65px !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none !important;
  display: block !important;
}

/* Bloque derecho (Acciones y Búsqueda) */
.header-right-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

/* Barra de búsqueda — compacta y a la par de Mi Cuenta con margen elegante */
.search-box {
  width: 100%;
  max-width: 240px;
  /* Compactado al extremo derecho */
  position: relative;
  margin-right: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.7rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-light);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-dim);
  background: white;
}

.search-ic {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-result {
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.search-result:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.search-result:last-child {
  border-bottom: none;
}

/* Controles de usuario */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
  font-size: 0.65rem;
  font-weight: 600;
  position: relative;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

.icon-btn:hover {
  background: var(--secondary-light);
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── BARRA NAV ───────────────────────────────────────────────────── */
.nav-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.nav-inner {
  padding-block: 0;
}

/* Limpieza total de la barra de navegación */
.nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  /* Separación física real entre pestañas */
  list-style: none !important;
  margin: 0 !important;
  padding: 0.5rem 0 !important;
}

.nav-item {
  position: relative !important;
}

.nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.5rem 0.75rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  /* Línea oculta por defecto */
  border-radius: 4px 4px 0 0 !important;
  transition: color 0.2s ease, border-color 0.2s ease !important;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* LA LÍNEA SÓLO SE MUESTRA EN EL ENLACE EXACTO QUE TIENE LA CLASE .active O EN SU HOVER INDIVIDUAL */
.nav-link:hover {
  color: var(--primary) !important;
  border-bottom: 3px solid var(--secondary) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  border-bottom: 3px solid var(--secondary) !important;
  font-weight: 700 !important;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  padding: 0.4rem 0;
}

.has-dropdown:hover .nav-dropdown {
  display: block;
}

.drop-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.drop-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════════════════════════════ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  min-height: 420px;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 420px;
}

.hero-slide.active {
  display: block;
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--secondary) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
}

.hero-text {
  flex: 0 0 50%;
  max-width: 540px;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 174, 239, 0.25);
  color: var(--secondary);
  border: 1px solid rgba(0, 174, 239, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero-desc {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.hero-frame-svg {
  width: 100%;
  max-width: 310px;
  filter: drop-shadow(0 12px 40px rgba(0, 174, 239, 0.3));
}

/* Flechas del hero */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform 0.25s;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
}

.hero-prev {
  left: 1.5rem;
}

.hero-next {
  right: 1.5rem;
}

/* Puntos indicadores */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  transition: background var(--transition), width var(--transition);
}

.hero-dot.active {
  background: white;
  width: 28px;
  border-radius: 5px;
}

/* ═══════════════════════════════════════════════════════════════════
   INTRO / PROPUESTA DE VALOR
   ═══════════════════════════════════════════════════════════════════ */
.intro-section {
  background: var(--bg);
  padding-block: 4rem 3rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.intro-icon-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.intro-icon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}

.intro-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-dim);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--secondary);
  stroke-width: 2;
}

.intro-icon-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.intro-icon-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.intro-cta-block {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.intro-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.intro-subtext {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   SHOWCASE — Novedades
   ═══════════════════════════════════════════════════════════════════ */
.showcase-section {
  background: var(--bg-light);
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.showcase-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.showcase-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
}

.showcase-controls {
  display: flex;
  gap: 0.5rem;
}

.show-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
}

.show-arrow svg {
  width: 18px;
  height: 18px;
}

.show-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.showcase-viewport {
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tarjeta de producto */
.prod-card {
  flex: 0 0 240px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.prod-img {
  background: var(--bg-light);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.prod-img svg {
  width: 100%;
  max-width: 180px;
}

.prod-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xl);
}

.prod-tag.new {
  background: var(--secondary);
  color: white;
}

.prod-tag.discount {
  background: var(--red);
  color: white;
}

.prod-tag.featured {
  background: var(--orange);
  color: white;
}

.prod-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prod-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.prod-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prod-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.prod-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
}

.prod-price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.prod-colors {
  display: flex;
  gap: 0.35rem;
}

.prod-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  display: inline-block;
}

.prod-add-btn {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.55rem;
  border-radius: var(--radius-xl);
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition);
}

.prod-add-btn:hover {
  background: var(--primary-light);
}

/* Información extendida (sólo en vista de catálogo) */
.prod-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-dims-row,
.prod-face-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-light);
}

.prod-dims-row svg,
.prod-face-row svg {
  width: 11px;
  height: 11px;
  stroke: var(--text-light);
  flex-shrink: 0;
}

.prod-dims-label,
.prod-face-label {
  font-weight: 700;
  color: var(--text-muted);
}

.showcase-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BANNER PROMOCIONAL
   ═══════════════════════════════════════════════════════════════════ */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1D4FAD 100%);
  padding-block: 3.5rem;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.promo-text {
  color: white;
}

.promo-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.promo-text p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
}

/* ═══════════════════════════════════════════════════════════════════
   CATÁLOGO
   ═══════════════════════════════════════════════════════════════════ */
.catalog-layout {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding-block: 2rem;
}

/* Panel de filtros */
.filters {
  flex: 0 0 270px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.filters-close {
  display: none;
  color: white;
  opacity: 0.7;
}

.filters-close svg {
  width: 18px;
  height: 18px;
}

.filters-close:hover {
  opacity: 1;
}

.filters-scroll {
  flex: 1;
  overflow-y: auto;
}

.filter-group {
  border-bottom: 1px solid var(--border);
}

.filter-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: white;
  transition: background var(--transition);
}

.filter-group-btn:hover {
  background: var(--bg-light);
}

.filter-group-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.filter-group-btn.active svg {
  transform: rotate(180deg);
}

.filter-body {
  display: none;
  padding: 0.75rem 1.25rem 1.1rem;
}

.filter-body.show {
  display: block;
}

/* Formas faciales */
.face-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.face-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-light);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.face-btn svg {
  width: 28px;
  height: 32px;
  stroke: currentColor;
}

.face-btn:hover,
.face-btn.active {
  border-color: var(--secondary);
  background: var(--secondary-light);
  color: var(--secondary);
}

/* Chips de forma */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.chip:hover,
.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Muestras de color */
.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 0.25rem;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid white;
  outline: 2px solid var(--border);
  cursor: pointer;
  transition: outline-color var(--transition), transform var(--transition);
}

.swatch:hover,
.swatch.active {
  outline-color: var(--primary);
  transform: scale(1.15);
}

/* Checkboxes de material */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.check-label input {
  accent-color: var(--primary);
}

/* Selectores */
.filter-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-light);
  font-size: 0.87rem;
  color: var(--text);
}

.filters-actions {
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: white;
}

/* Grilla del catálogo */
.catalog-main {
  flex: 1;
  min-width: 0;
}

.catalog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.catalog-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.catalog-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catalog-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.87rem;
  color: var(--text);
}

.filters-open-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
}

.filters-open-btn svg {
  width: 16px;
  height: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-grid .prod-card {
  flex: none;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: flex;
  gap: 2rem;
  padding-block: 2.5rem;
  align-items: flex-start;
}

.checkout-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkout-sidebar {
  flex: 0 0 320px;
  position: sticky;
  top: 120px;
}

.checkout-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.checkout-block-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.checkout-block-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--secondary);
}

/* Pestañas de entrega */
.delivery-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.delivery-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg-light);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}

.delivery-tab svg {
  width: 18px;
  height: 18px;
}

.delivery-tab.selected,
.delivery-tab:hover {
  border-color: var(--primary);
  background: var(--secondary-light);
  color: var(--primary);
}

.delivery-form {
  display: none;
}

.delivery-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-dim);
  background: white;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Campo de tarjeta */
.card-number-wrap {
  position: relative;
}

.card-icon-right {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  stroke: var(--text-light);
  margin-top: 14px;
}

/* Resumen lateral */
.summary-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.summary-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--bg-light);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-item-img svg {
  width: 46px;
  height: 30px;
}

.summary-item-info {
  flex: 1;
}

.summary-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.summary-item-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
}

.summary-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.cart-remove-btn:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

.summary-totals {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.grand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.checkout-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL CONFIGURADOR
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 28, 72, 0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.modal-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close {
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--red);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

/* Stepper */
.stepper {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 2rem 1rem;
  flex-shrink: 0;
}

.stepper-line {
  position: absolute;
  top: 2.15rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}

.stepper-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all var(--transition);
}

.step-node span {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
}

.step-node.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.step-node.active span {
  color: var(--primary);
}

.step-node.done .step-circle {
  background: var(--secondary);
  border-color: var(--secondary);
  color: white;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.75rem;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* Paso 1 */
.step1-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step1-preview {
  flex: 0 0 280px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.step1-preview svg {
  width: 100%;
  max-width: 200px;
}

.color-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.color-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  outline: 2px solid var(--border);
  transition: outline-color var(--transition), transform var(--transition);
}

.color-swatch-btn.selected {
  outline-color: var(--primary);
  transform: scale(1.2);
}

.step1-info {
  flex: 1;
}

.s1-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.meta-table tr {
  border-bottom: 1px solid var(--border);
}

.meta-table td {
  padding: 0.55rem 0.5rem;
}

.ml {
  color: var(--text-muted);
  font-weight: 600;
  width: 45%;
}

/* Paso 2 — Receta */
.recipe-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.rtab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.rtab svg {
  width: 16px;
  height: 16px;
}

.rtab:hover {
  color: var(--primary);
}

.rtab.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.rpanel {
  display: none;
}

.rpanel.active {
  display: block;
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--bg-light);
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--secondary);
  background: var(--secondary-light);
}

.dropzone svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-muted);
  margin-bottom: 0.75rem;
}

.drop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.drop-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.drop-progress {
  display: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 1.25rem;
}

.drop-bar {
  height: 100%;
  background: var(--secondary);
  border-radius: 3px;
  width: 0;
  transition: width 0.05s linear;
}

.drop-ok {
  display: none;
  margin-top: 1rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.drop-ok svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  display: inline;
  margin-right: 4px;
}

/* Tabla de receta */
.rx-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rx-table th,
.rx-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: center;
}

.rx-table thead th {
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.eye-label {
  font-weight: 700;
  color: var(--primary);
  background: var(--secondary-light);
}

.rx-sel {
  width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.rx-checks,
.dp-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ck-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.83rem;
  cursor: pointer;
}

.ck-label input {
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.dp-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.dp-dual {
  gap: 1.5rem;
}

.rx-help {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
}

.rx-help svg {
  width: 15px;
  height: 15px;
  stroke: var(--secondary);
}

.rx-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.rx-tip {
  background: var(--secondary-light);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  color: var(--primary);
}

/* Tarjetas de tipo de lente */
.lens-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.lens-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-light);
}

.lens-card:hover {
  border-color: var(--primary);
}

.lens-card.selected {
  border-color: var(--secondary);
  background: var(--secondary-light);
}

.lens-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.lens-name {
  font-weight: 800;
  color: var(--text);
  font-size: 0.95rem;
}

.lens-price {
  font-weight: 800;
  color: var(--secondary);
  font-size: 1rem;
}

.lens-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.lens-limit {
  font-size: 0.75rem;
  color: var(--text-light);
  background: white;
  border: 1px solid var(--border);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Grilla de tratamientos */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.treat-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-light);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.treat-card:hover {
  border-color: var(--primary);
}

.treat-card.selected {
  border-color: var(--secondary);
  background: var(--secondary-light);
}

.treat-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.treat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.treat-body {
  flex: 1;
}

.treat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.treat-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
}

.treat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Pie del modal */
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  flex-shrink: 0;
}

.foot-price {
  display: flex;
  flex-direction: column;
}

.foot-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.foot-total {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.foot-nav {
  display: flex;
  gap: 0.75rem;
}

/* Modales auxiliares */
.aux-modal {
  max-width: 560px;
}

.aux-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.aux-body strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════
   PANTALLA DE ÉXITO
   ═══════════════════════════════════════════════════════════════════ */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 5rem;
  gap: 1.25rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.35);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 3;
}

.success-screen h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.success-screen>p {
  color: var(--text-muted);
  max-width: 520px;
}

.success-detail {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
}

.success-detail strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Limpio y Minimalista (sin logotipo)
   ═══════════════════════════════════════════════════════════════════ */
footer {
  background: #071C48;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Fila horizontal de canales sociales */
.footer-social {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
  text-decoration: none;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255, 255, 255, 0.75);
  fill: none;
  transition: stroke var(--transition);
  flex-shrink: 0;
}

.social-link:hover {
  color: #ffffff;
}

.social-link:hover svg {
  stroke: var(--secondary);
}

/* WhatsApp — alto contraste garantizado (#25D366) */
.social-whatsapp {
  color: #25D366;
}

.social-whatsapp .wa-icon {
  stroke: #25D366;
}

.social-whatsapp:hover {
  color: #1fba57;
}

.social-whatsapp:hover .wa-icon {
  stroke: #1fba57;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 9999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--primary);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 340px;
}

.toast.success {
  background: var(--green);
}

.toast.error {
  background: var(--red);
}

.toast svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkout-layout {
    flex-direction: column;
  }

  .checkout-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }
}

@media (max-width: 880px) {
  .catalog-layout {
    flex-direction: column;
  }

  .filters {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 2000 !important;
    background: white !important;
    flex-direction: column !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .filters-close {
    display: block !important;
  }

  .filters-open-btn {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    padding-block: 3rem 2rem;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {


  .intro-grid {
    grid-template-columns: 1fr;
  }

  .lens-grid,
  .treat-grid {
    grid-template-columns: 1fr;
  }

  .step1-grid {
    flex-direction: column;
  }

  .step1-preview {
    flex: none;
    width: 100%;
  }

  .delivery-tabs {
    flex-direction: column;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .footer-social {
    gap: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CORRECCIÓN DEFINITIVA DE LOGO Y NAVEGACIÓN (OVERRIDE MAESTRO)
   ═══════════════════════════════════════════════════════════════════ */

/* 1. ESCRITORIO — LOGO GRANDE Y NÍTIDO */
.mobile-menu-btn {
  display: none !important;
}

#siteHeader .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-block: 0.5rem !important;
  min-height: 110px !important;
}

#btnHome.logo,
.logo {
  display: flex !important;
  align-items: center !important;
  width: 480px !important;
  min-width: 440px !important;
  height: 110px !important;
  flex-shrink: 0 !important;
  margin-right: 2.5rem !important;
}

#btnHome.logo img,
.logo img,
.logo-img {
  width: 100% !important;
  height: 100% !important;
  max-height: 110px !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: scale(1.7) !important;
  transform-origin: left center !important;
  display: block !important;
}

#siteHeader .header-right-block {
  display: flex !important;
  align-items: center !important;
  align-self: flex-end !important;
  margin-bottom: 1.15rem !important;
}

/* 2. MÓVIL Y PANTALLAS PEQUEÑAS — MENÚ HAMBURGUESA Y PANEL DESPLEGABLE */
@media (max-width: 768px) {
  #siteHeader .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-inline: 1rem !important;
    padding-block: 0.5rem !important;
    min-height: 65px !important;
    gap: 0.5rem !important;
  }

  /* Menú hamburguesa elegante a la izquierda */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    order: -1 !important;
    flex-shrink: 0 !important;
    z-index: 101 !important;
  }

  /* Logotipo nítido y centrado responsivo */
  #btnHome.logo,
  .logo {
    display: flex !important;
    align-items: center !important;
    width: 150px !important;
    min-width: auto !important;
    height: 55px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  #btnHome.logo img,
  .logo img,
  .logo-img {
    width: 100% !important;
    height: 100% !important;
    max-height: 55px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: scale(1.65) !important;
    transform-origin: left center !important;
    display: block !important;
  }

  /* Controles de usuario (Mi Cuenta + Carrito con insignias) a la derecha */
  #siteHeader .header-right-block {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-self: center !important;
    margin-bottom: 0 !important;
    flex: 0 0 80px !important;
    width: 80px !important;
    min-width: 80px !important;
    flex-shrink: 0 !important;
  }

  .header-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    width: 100% !important;
    height: auto !important;
  }

  .header-controls .icon-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    min-width: auto !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--primary) !important;
  }

  .header-controls .icon-btn svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    stroke: var(--primary) !important;
    stroke-width: 2px !important;
    fill: none !important;
  }

  .header-controls .icon-btn span {
    display: none !important; /* Ocultar texto para que solo queden iconos */
  }

  .header-controls .icon-btn .cart-badge {
    display: flex !important; /* Mantener la insignia del carrito visible */
  }

  /* PANEL DE MENÚ HAMBURGUESA (SLIDE DOWN DESDE EL HEADER) */
  .nav-bar {
    display: none !important;
    position: fixed !important;
    top: 65px !important; /* Altura del header móvil */
    left: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 65px) !important;
    background: var(--bg) !important;
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    z-index: 100 !important;
    overflow-y: auto !important;
  }

  .nav-bar.open {
    display: block !important;
  }

  .nav-inner {
    padding: 1.25rem !important;
  }

  /* Ajustes para el Buscador dentro del menú hamburguesa */
  .nav-inner .search-box {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
  }

  .nav-inner .search-box input {
    width: 100% !important;
    padding: 0.65rem 1rem 0.65rem 2.5rem !important;
    font-size: 0.9rem !important;
    background: var(--bg-hover) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
  }

  .nav-inner .search-box .search-ic {
    left: 0.85rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* LISTA DE MENÚ VERTICAL */
  .nav-list,
  ul.nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .nav-item {
    display: block !important;
    width: 100% !important;
    position: relative !important;
  }

  .nav-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid var(--border) !important;
    white-space: normal !important;
  }

  .nav-link svg {
    transition: transform 0.2s ease !important;
  }

  .nav-item.open > .nav-link svg {
    transform: rotate(180deg) !important;
  }

  /* SUBMENÚS DESPLEGABLES EN CASCADA (MÓVIL) */
  .nav-item.has-dropdown .nav-dropdown {
    display: none !important;
    position: static !important;
    background: rgba(0, 0, 0, 0.02) !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0.5rem 0 0.5rem 1.25rem !important;
    width: 100% !important;
  }

  .nav-item.has-dropdown.open .nav-dropdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
  }

  .drop-link {
    display: block !important;
    padding: 0.5rem 0.5rem !important;
    font-size: 0.9rem !important;
    border-bottom: none !important;
  }

  /* TELÓN DE FONDO (BACKDROP) */
  .menu-backdrop {
    display: block !important;
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 65px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(2px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: 99 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
  }

  .menu-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MÓDULOS DE AUTENTICACIÓN, ROLES Y PANEL ADMIN
   ═══════════════════════════════════════════════════════════════════ */

/* Insignias de Roles */
.role-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-left: 4px;
}
.role-admin { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.role-vendedor { background: #e0f2fe; color: #075985; border: 1px solid #38bdf8; }
.role-cliente { background: #dcfce7; color: #166534; border: 1px solid #4ade80; }

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(7, 28, 72, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease-out;
}
.modal-overlay.open,
.modal-overlay.active {
  display: flex !important;
}
.modal-card {
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
}
.modal-close:hover { color: #0f172a; }

/* Pestañas Auth */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
}
.auth-link-forgot {
  font-size: 0.82rem;
  color: var(--secondary, #00AEEF);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.auth-link-forgot:hover {
  color: var(--primary, #0B2545);
  text-decoration: underline;
}
.auth-link-back {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.auth-link-back:hover {
  color: var(--secondary, #00AEEF);
  text-decoration: underline;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
}
.demo-hints {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: #475569;
}

/* Acciones Admin en Tarjeta */
.product-card { position: relative; }
.admin-card-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.btn-admin-edit, .btn-admin-photo {
  background: rgba(11, 43, 109, 0.9);
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.btn-admin-edit:hover, .btn-admin-photo:hover {
  transform: scale(1.08);
  background: var(--secondary);
}

/* Toast Notification */
.opti-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.opti-toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #166534; border-left: 4px solid #22c55e; }
.toast-error { background: #991b1b; border-left: 4px solid #ef4444; }
.toast-warning { background: #9a3412; border-left: 4px solid #f97316; }

/* ═══════════════════════════════════════════════════════════════════
   DISEÑO ENRIQUECIDO & ULTRA-PREMIUM (SOBRE NOSOTROS & BLOG)
   ═══════════════════════════════════════════════════════════════════ */

/* Text Gradients & Glassmorphism Utilities */
.gradient-text-cyan {
  background: linear-gradient(135deg, #00AEEF 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head-wrap {
  margin-bottom: 3rem;
}

.section-badge-cyan {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title-dark {
  color: #0B2B6D;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

.section-subtitle-desc {
  color: #64748b;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* --- HERO SOBRE NOSOTROS --- */
.about-hero-rich {
  position: relative;
  background: linear-gradient(135deg, #071C48 0%, #0B2B6D 60%, #0369a1 100%);
  padding: 5rem 1.5rem;
  color: white;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  margin-bottom: 4rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 43, 109, 0.25);
}

.about-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.about-glass-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #e0f2fe;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .about-hero-title { font-size: 2rem; }
}

.about-hero-lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
}

/* Barra de Estadísticas */
.about-stats-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 920px;
  margin: 3.5rem auto 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 1.75rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #38BDF8;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .stat-divider { display: none; }
  .about-stats-bar { gap: 2rem; padding: 1.5rem; }
}

/* Tarjetas Misión / Visión / Valores */
.about-section-padding {
  padding-bottom: 5rem;
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card-rich {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(11, 43, 109, 0.06);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.about-card-rich:hover {
  transform: translateY(-8px);
  border-color: #00AEEF;
  box-shadow: 0 25px 35px -10px rgba(0, 174, 239, 0.15);
}

.about-card-rich.highlight-border {
  border: 2px solid #00AEEF;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.icon-cyan { background: #e0f2fe; color: #0369a1; }
.icon-navy { background: #dbeafe; color: #1e40af; }
.icon-gold { background: #fef3c7; color: #b45309; }

.about-card-rich h3 {
  color: #0B2B6D;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-card-rich p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
}

.card-feature-list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 6px;
}

.values-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-chip {
  background: #f1f5f9;
  color: #0B2B6D;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Servicios Especializados Enriquecidos */
.about-services-rich-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  padding: 5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 5rem;
}

.services-rich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-rich-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2.2rem 1.75rem 1.75rem;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-rich-card:hover {
  transform: translateY(-6px);
  border-color: #00AEEF;
  box-shadow: 0 15px 30px rgba(0, 174, 239, 0.12);
}

.service-step-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
}

.service-icon-box {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.service-rich-card h4 {
  color: #0B2B6D;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.service-rich-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-tag-line {
  font-size: 0.8rem;
  font-weight: 700;
  color: #00AEEF;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Sucursal Central Enriquecida */
.branch-section-rich {
  margin-bottom: 6rem;
}

.branch-card-rich {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: 28px;
  border: 1px solid #cbd5e1;
  padding: 3rem;
  box-shadow: 0 20px 40px -10px rgba(11, 43, 109, 0.08);
  align-items: center;
}

@media (max-width: 960px) {
  .branch-card-rich { grid-template-columns: 1fr; padding: 2rem; }
}

.branch-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.branch-title {
  color: #0B2B6D;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
}

.branch-subtitle {
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.branch-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.b-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.b-icon {
  font-size: 1.5rem;
  background: #f1f5f9;
  padding: 8px;
  border-radius: 12px;
}

.b-info-item strong {
  display: block;
  color: #0B2B6D;
  font-size: 0.92rem;
}

.b-info-item p {
  margin: 2px 0 0 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

.branch-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-whatsapp-rich {
  background: #25D366;
  color: white;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 22px;
  border: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-whatsapp-rich:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline-cyan {
  background: transparent;
  color: #0369a1;
  border: 1.5px solid #00AEEF;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-cyan:hover {
  background: #e0f2fe;
}

.branch-map-frame {
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #f1f5f9;
}

/* --- BLOG SALUD VISUAL ENRIQUECIDO --- */
.blog-hero-rich {
  background: linear-gradient(135deg, #071C48 0%, #0B2B6D 100%);
  padding: 4.5rem 1.5rem;
  color: white;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(7, 28, 72, 0.2);
}

.blog-glass-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e0f2fe;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.blog-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0 0 1rem 0;
}

.blog-hero-lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.blog-container-padding {
  padding-bottom: 5rem;
}

.blog-filters-rich {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.blog-filter-chip {
  background: white;
  border: 1.5px solid #cbd5e1;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
}

.blog-filter-chip:hover, .blog-filter-chip.active {
  background: #0B2B6D;
  color: white;
  border-color: #0B2B6D;
  box-shadow: 0 8px 16px rgba(11, 43, 109, 0.2);
  transform: translateY(-2px);
}

/* Guía Destacada (Spotlight Banner) */
.blog-featured-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: white;
  border-radius: 24px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(11, 43, 109, 0.1);
  margin-bottom: 3.5rem;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.blog-featured-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px -10px rgba(0, 174, 239, 0.2);
}

@media (max-width: 850px) {
  .blog-featured-banner { grid-template-columns: 1fr; }
}

.featured-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
  background: #f1f5f9;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 10;
  background: #be123c;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.3);
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  position: relative;
  z-index: 5;
}

.featured-title {
  color: #0B2B6D;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0.75rem 0;
}

.featured-excerpt {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.featured-meta {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.featured-cta {
  color: #00AEEF;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Grid de Tarjetas del Blog */
.blog-grid-rich {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.blog-card-rich {
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-rich:hover {
  transform: translateY(-8px);
  border-color: #00AEEF;
  box-shadow: 0 20px 30px -5px rgba(0, 174, 239, 0.15);
}

.blog-card-rich .blog-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f1f5f9;
}

.blog-card-rich .blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card-rich:hover .blog-card-image img {
  transform: scale(1.06);
}

.blog-card-rich .blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(7, 28, 72, 0.9);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.blog-card-rich .blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
  position: relative;
  z-index: 2;
  margin: 0;
}

.blog-card-title {
  color: #0B2B6D;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem 0;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: auto;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 800;
  color: #00AEEF;
}

/* Lectura de Artículo Individual Enriquecida */
.post-article-rich {
  max-width: 840px;
  margin: 3rem auto 5rem;
}

.back-blog-btn {
  border-radius: 20px;
  font-weight: 700;
}

.post-header-rich .post-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #0B2B6D;
  line-height: 1.25;
}

.post-image-hero-wrapper {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin: 2rem 0;
  background: #f1f5f9;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-image-hero-wrapper img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.post-content-rich {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #334155;
}

.post-content-rich h3 {
  color: #0B2B6D;
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content-rich p {
  margin-bottom: 1.5rem;
}

.post-content-rich ul, .post-content-rich ol {
  background: #f8fafc;
  border-left: 4px solid #00AEEF;
  padding: 1.25rem 1.5rem 1.25rem 2.5rem;
  border-radius: 0 14px 14px 0;
  margin: 1.5rem 0;
}

.post-content-rich li {
  margin-bottom: 0.5rem;
}

.post-footer-card-rich {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 4rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.author-profile-box {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B2B6D 0%, #00AEEF 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.3);
}

.post-cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  color: #0B2B6D;
  margin: 0 0 4px 0;
  font-size: 1.25rem;
}

.cta-banner-text p {
  color: #64748b;
  margin: 0;
  font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════════════════════════
   RESEÑAS DE GOOGLE (SOBRE NOSOTROS)
   ═══════════════════════════════════════════════════════════════════ */
.reviews-google-section {
  padding: 4rem 0 6rem;
}

.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}

.g-rating-score {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0B2B6D;
}

.g-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.g-reviews-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.review-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(11, 43, 109, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-6px);
  border-color: #00AEEF;
  box-shadow: 0 15px 30px rgba(0, 174, 239, 0.12);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  position: relative;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B2B6D 0%, #00AEEF 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.reviewer-info h4 {
  margin: 0;
  color: #0B2B6D;
  font-size: 0.98rem;
  font-weight: 800;
}

.review-date {
  font-size: 0.78rem;
  color: #64748b;
  display: block;
}

.google-icon-sm {
  margin-left: auto;
  font-weight: 900;
  color: #4285F4;
  font-size: 1.1rem;
  background: #f1f5f9;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-text {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   ESTADO VACÍO / EN DESARROLLO (UNDER CONSTRUCTION)
   ═══════════════════════════════════════════════════════════════════ */
.empty-section-wrapper {
  padding: 5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.empty-state-card-rich {
  background: white;
  border-radius: 28px;
  border: 1px solid #cbd5e1;
  padding: 3.5rem 2.5rem;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 40px -10px rgba(11, 43, 109, 0.08);
  margin: 0 auto;
}

.empty-img-box {
  margin-bottom: 2rem;
}

.empty-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 174, 239, 0.15);
  transition: transform 0.3s ease;
}

.empty-state-card-rich:hover .empty-img {
  transform: scale(1.03);
}

.empty-status-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.empty-title {
  color: #0B2B6D;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.empty-desc {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.empty-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-actions .btn {
  border-radius: 14px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
}