:root {
  --ink: #10243d;
  --muted: #657489;
  --line: #dbe8f2;
  --paper: #ffffff;
  --soft: #eef9fb;
  --soft-blue: #eaf4ff;
  --cyan: #00aeca;
  --cyan-dark: #007f98;
  --teal: #008da1;
  --blue: #0b4c8c;
  --deep: #073157;
  --navy: #06243d;
  --mint: #54d5df;
  --optica-ink: #062d4d;
  --optica-blue: #075f80;
  --optica-cyan: #00bfd2;
  --optica-cyan-soft: #dffbfe;
  --optica-cloud: #f3fafc;
  --shadow: 0 22px 65px rgba(10, 42, 70, 0.16);
  --glow: 0 18px 42px rgba(0, 174, 202, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--optica-ink);
  background: #ffffff;
  font-family: "Manrope", "Poppins", Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

/* CABECERA Y MENÚ CONTUNDENTE HCE ÓPTICA */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 24px));
  min-height: 76px;
  margin: 10px auto 16px;
  padding: 10px 20px;
  gap: 16px;
  border: 1.5px solid rgba(0, 191, 210, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(6, 45, 77, 0.12);
}

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

.brand-logo-wrap.optica-brand {
  width: auto;
  max-width: 160px;
  height: 48px;
  background: transparent;
}

.brand-logo-wrap.optica-brand img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav .tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--optica-ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 180ms ease;
}

.main-nav .tab-link i {
  color: var(--optica-cyan);
  font-style: normal;
  font-size: 0.9rem;
  transition: transform 180ms ease;
}

.main-nav .tab-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--optica-blue), var(--optica-cyan));
  box-shadow: 0 8px 20px rgba(0, 191, 210, 0.25);
  transform: translateY(-2px);
}

.main-nav .tab-link:hover i {
  color: #ffffff;
  transform: translateX(3px);
}

.header-donate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #06334e;
  background: #6ee8ef;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 191, 210, 0.22);
  transition: all 180ms ease;
}

.header-donate:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--optica-ink);
}

/* ESTRUCTURA CONTENEDORA DE ÓPTICA (SISTEMA DE MÁRGENES Y BORDES IDÉNTICOS) */
#tab-optica {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding-top: 10px;
  overflow: hidden;
}

/* HERO PRINCIPAL DE ÓPTICA */
#tab-optica .optica-page {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  height: auto;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 191, 210, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(4, 65, 91, 0.12);
}

#tab-optica .optica-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 43%, rgba(255, 255, 255, 0.9) 50%, rgba(223, 251, 254, 0.34) 61%, transparent 74%);
}

#tab-optica .optica-hero-bg {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#tab-optica .optica-hero-content {
  position: relative;
  z-index: 3;
  width: min(520px, 44%);
  margin-left: clamp(34px, 5vw, 72px);
  padding: 58px 0;
}

#tab-optica .optica-logo-mark {
  width: clamp(92px, 10vw, 132px);
  height: auto;
  margin-bottom: 18px;
}

#tab-optica .optica-page .eyebrow {
  margin-bottom: 16px;
  color: #008fa3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#tab-optica .optica-page h2 {
  max-width: 540px;
  margin: 0 0 22px;
  color: var(--optica-ink);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

#tab-optica .optica-page h2 span {
  display: inline;
  color: var(--optica-ink);
  font-weight: 800;
  box-shadow: inset 0 -0.25em 0 rgba(0, 191, 210, 0.25);
}

#tab-optica .optica-page p:not(.eyebrow) {
  max-width: 480px;
  margin-bottom: 26px;
  color: #526a7d;
  font-size: 1.02rem;
  line-height: 1.65;
}

#tab-optica .optica-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  color: #06334e;
  background: #69e2ec;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 191, 210, 0.24);
}

/* BLOQUE DE ACCESOS Y CAPACIDADES */
#tab-optica .optica-capabilities.optica-components {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

#tab-optica .optica-capability-card {
  position: relative;
  height: 228px;
  overflow: hidden;
  border: 1px solid rgba(0, 191, 210, 0.16);
  border-radius: 18px;
  background: #073b59;
  box-shadow: 0 18px 38px rgba(5, 56, 80, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

#tab-optica .optica-capability-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

#tab-optica .optica-capability-card:hover img {
  transform: scale(1.07);
}

#tab-optica .optica-capability-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 35, 58, 0.92) 100%);
}

#tab-optica .optica-capability-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #ffffff;
}

#tab-optica .optica-capability-copy small {
  color: #71e8f0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#tab-optica .optica-capability-copy strong {
  margin-top: 4px;
  font-size: 1.22rem;
  line-height: 1.05;
}

#tab-optica .optica-capability-copy em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-style: normal;
  font-size: 0.74rem;
}

/* MÉTRICAS E INDICADORES DATO A DATO */
#tab-optica .optica-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0;
  padding: 34px 0;
  border-top: 1px solid rgba(6, 45, 77, 0.13);
  border-bottom: 1px solid rgba(6, 45, 77, 0.13);
}

#tab-optica .optica-metric-strip article {
  display: flex;
  flex-direction: column;
  padding: 10px 32px;
}

#tab-optica .optica-metric-strip article + article {
  border-left: 1px solid rgba(6, 45, 77, 0.13);
}

#tab-optica .optica-metric-strip strong {
  color: var(--optica-cyan);
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.9;
}

#tab-optica .optica-metric-strip span {
  margin-top: 8px;
  color: var(--optica-ink);
  font-size: 1.2rem;
  font-weight: 800;
}

#tab-optica .optica-metric-strip p {
  margin: 4px 0 0;
  color: #66798b;
  font-size: 0.9rem;
}

/* NUESTRA FORMA DE CUIDAR (PILARES) */
#tab-optica .optica-trust-strip article {
  padding: clamp(38px, 5vw, 64px);
  border-radius: 20px;
  background: linear-gradient(135deg, #062d4d, #075f80);
  color: #ffffff;
}

#tab-optica .optica-trust-strip h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #ffffff;
}

#tab-optica .optica-trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

#tab-optica .optica-trust-point {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: #071e33;
}

#tab-optica .optica-trust-point:nth-child(2) {
  background: linear-gradient(145deg, #78edf3, #42cfdd);
  color: #04344d;
}

#tab-optica .optica-trust-point:nth-child(3) {
  background: #062d4d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* SECCIÓN MARCAS Y MARQUEE */
#tab-optica .optica-brand-showcase {
  margin-top: 28px;
  padding: clamp(40px, 5vw, 64px);
  border-radius: 22px;
  border: 1px solid rgba(0, 191, 210, 0.13);
  background: #ffffff;
}

#tab-optica .optica-brand-marquee {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(7, 30, 51, 0.13);
  border-bottom: 1px solid rgba(7, 30, 51, 0.13);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
}

/* ÓPTICA KIDS */
#tab-optica .optica-kids-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin-top: 28px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #e9fbfd, #c8f3f7);
}

#tab-optica .optica-kids-feature figure {
  position: relative;
  margin: 0;
  min-height: 480px;
}

#tab-optica .optica-kids-feature figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tab-optica .optica-kids-copy {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CATALOGO DE LUNAS, ARMAZONES Y EMPRESAS */
#tab-optica .optica-solutions {
  margin-top: 28px;
  padding: clamp(40px, 5vw, 68px);
  border-radius: 22px;
  background: linear-gradient(145deg, #062d4d, #087b92);
  color: #ffffff;
}

#tab-optica .optica-product-block {
  display: grid;
  grid-template-columns: minmax(260px, 0.4fr) minmax(0, 0.6fr);
  gap: 24px;
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  color: var(--optica-ink);
}

#tab-optica .optica-product-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tab-optica .optica-product-block > div {
  padding: 32px;
}

/* ETAPAS DE VIDA (STORYLINE CONECTADO) */
#tab-optica .vision-lifecycle {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  margin-top: 32px;
}

#tab-optica .vision-lifecycle figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
}

#tab-optica .vision-lifecycle figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tab-optica .vision-stage-grid article {
  padding: 20px 0;
  border-bottom: 1px solid rgba(6, 45, 77, 0.13);
}

/* AGENDA DE SEDES Y PAGOS COMPACTOS */
#tab-optica .optica-payment-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  margin-top: 28px;
  border-radius: 20px;
  overflow: hidden;
  background: #063654;
  color: #ffffff;
}

#tab-optica .optica-payment-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tab-optica .optica-payment-content {
  padding: 40px;
}

/* FOOTER OFICIAL DEL ECOSISTEMA */
.site-footer {
  width: min(1240px, calc(100% - 28px));
  margin: 32px auto 16px;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0a2d9e, #1749e8 50%, #09266f);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.site-footer strong {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* REGLAS RESPONSIVAS PERFECTAS PARA CELULAR (SIN CORTES) */
@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 20px);
    border-radius: 20px;
  }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  }
  
  #tab-optica { width: calc(100% - 20px); }
  
  #tab-optica .optica-page {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }
  
  #tab-optica .optica-hero-bg {
    position: relative;
    width: 100%;
    height: 260px;
  }
  
  #tab-optica .optica-hero-content {
    width: 100%;
    margin-left: 0;
    padding: 32px 24px;
  }
  
  #tab-optica .optica-capabilities.optica-components,
  #tab-optica .optica-metric-strip,
  #tab-optica .optica-trust-points,
  #tab-optica .optica-brand-marquee,
  #tab-optica .optica-kids-feature,
  #tab-optica .optica-product-block,
  #tab-optica .vision-lifecycle,
  #tab-optica .optica-payment-final,
  .site-footer {
    grid-template-columns: 1fr;
  }

  #tab-optica .optica-metric-strip article + article {
    border-left: 0;
    border-top: 1px solid rgba(6, 45, 77, 0.13);
  }
}