/* ============================================================
   CristalesGafas — Home page
   CSS extraído del diseño estático y adaptado a WordPress/GP
   Los tokens ya están en tokens.css — aquí solo componentes home
   ============================================================ */

/* ── Topbar ──────────────────────────────────────────────────── */
.cg-topbar {
  background: var(--deep);
  color: #dbe8f2;
  font-size: 13.5px;
}
.cg-topbar .cg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 9px;
  text-align: center;
  flex-wrap: wrap;
}
.tb-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.tb-main svg { width: 18px; height: 18px; color: #5fd39e; flex: none; }
.tb-main b  { color: #fff; font-weight: 700; }
.tb-sep     { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.tb-alt     { color: #9fc0ff; }
@media (max-width: 680px) {
  .tb-sep, .tb-alt { display: none; }
  /* Los idiomas traducidos (FR/EN/IT/PT) suelen ser más largos que el ES original.
     Sin esto, el texto se salía de la pantalla en vez de ajustarse. */
  .cg-topbar { font-size: 12.5px; }
  .tb-main { white-space: normal; text-align: center; }
  .tb-text { display: inline-block; text-wrap: balance; }
}

/* ── Header ──────────────────────────────────────────────────── */
.cg-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.cg-site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -22px rgba(13,34,51,.5);
}
.cg-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.cg-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.cg-brand .mark { width: 34px; height: 34px; flex: none; }
.cg-brand b { font-weight: 700; }
.cg-brand .brand-blue { color: var(--blue); }
.cg-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.cg-nav-links > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
.cg-nav-links > a:hover { color: var(--ink); background: var(--bg); }
.cg-nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cg-nav-cta .login {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 9px 12px;
}
.cg-nav-cta .login:hover { color: var(--blue); }
.cg-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  align-items: center;
  justify-content: center;
}
.cg-burger svg { width: 22px; height: 22px; }

/* ── Nav item con mega menú ──────────────────────────────────── */
.cg-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.cg-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .18s, background .18s;
  cursor: pointer;
}
.cg-nav-trigger .chev {
  width: 15px;
  height: 15px;
  transition: transform .2s;
}
.cg-nav-trigger:hover,
.cg-nav-item:hover .cg-nav-trigger,
.cg-nav-item:focus-within .cg-nav-trigger {
  color: var(--ink);
  background: var(--bg);
}
.cg-nav-item:hover .chev,
.cg-nav-item:focus-within .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 14px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.cg-nav-item:hover .mega,
.cg-nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  position: relative;
}
.mega-inner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 32px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
/* categorías */
.mega-cats .mega-inner { width: min(740px, 88vw); }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 22px; }
.mega-group { display: flex; flex-direction: column; gap: 1px; }
.mega-group + .mega-group { margin-top: 14px; }
.mega-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.01em;
  padding: 7px 10px;
  border-radius: 9px;
  transition: .16s;
}
.mega-parent::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}
.mega-parent:hover { background: var(--bg); }
.mega-link {
  display: block;
  padding: 7px 10px 7px 25px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: .16s;
}
.mega-link:hover { background: var(--bg); color: var(--ink); }
.mega-promo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mega-promo .mp-txt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}
.mega-promo .mp-txt svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.mega-promo .mp-txt b { color: var(--ink); }
/* marcas */
.mega-brands .mega-inner { width: min(560px, 88vw); }
.brand-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px 14px; }
.brand-cols a {
  display: block;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  transition: .16s;
}
.brand-cols a:hover { background: var(--bg); color: var(--ink); }
.brand-cols a.is-own { color: var(--blue); font-weight: 600; }
.mega-allbrands {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mega-allbrands a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}
.mega-allbrands a svg { width: 16px; height: 16px; }
.mega-allbrands span { font-size: 13px; color: var(--faint); }
@media (max-width: 980px) {
  .cg-nav-item { display: none; }
  .cg-nav-links { display: none; }
  .cg-nav-cta .login, .cg-nav-cta .btn { display: none; }
  .cg-burger { display: flex; }
}

/* ── Menú móvil ──────────────────────────────────────────────── */
.cg-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 32px;
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.cg-mobile-menu.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.cg-mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.cg-mm-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cg-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 18px;
}
.mm-group { border-bottom: 1px solid var(--line); }
.mm-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  padding: 15px 4px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.mm-group > summary::-webkit-details-marker { display: none; }
.mm-chev { width: 22px; height: 22px; color: var(--faint); transition: transform .2s; flex: none; }
.mm-group[open] > summary .mm-chev { transform: rotate(180deg); }
.mm-sub { padding: 0 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.mm-sub a {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 0 9px 14px;
}
.mm-sub a.mm-head { font-weight: 700; color: var(--ink); padding-left: 0; }
.mm-sub a.is-own { color: var(--blue); }
.mm-flat {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.02em;
  color: var(--ink);
}
.cg-mm-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

/* ── Botones home ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(31,95,224,.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(31,95,224,.5);
  color: #fff;
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #0a1c2b; color: #fff; }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Utilidades home ─────────────────────────────────────────── */
.home-section { padding-block: clamp(64px, 9vw, 120px); }
.home-section.alt { background: var(--bg); }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.home-eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  border-radius: 2px;
}
.home-eyebrow.on-dark { color: #9fc0ff; }
.home-eyebrow.on-dark::before { background: #5b8cf0; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 48px); margin-top: 16px; font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.sec-head p { margin-top: 16px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 88% -10%, var(--blue-soft) 0%, transparent 52%),
    radial-gradient(90% 70% at -8% 8%, var(--sand-soft) 0%, transparent 46%),
    var(--paper);
}
.lens-ring { position: absolute; border: 1.5px solid var(--line-strong); border-radius: 50%; z-index: -1; opacity: .55; }
.lens-ring.r1 { width: 520px; height: 520px; right: -160px; top: -120px; }
.lens-ring.r2 { width: 320px; height: 320px; right: -60px; top: -20px; border-color: rgba(31,95,224,.28); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 68px); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; margin-top: 22px; color: var(--ink); }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .06em;
  height: .34em;
  background: rgba(14,159,110,.26);
  border-radius: 3px;
  z-index: -1;
}
.hero-sub { margin-top: 24px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 28px; margin-top: 40px; max-width: 520px; }
.hero-trust .ti { display: flex; align-items: center; gap: 12px; }
.hero-trust .ti svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.hero-trust .ti b { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: block; letter-spacing: -.01em; }
.hero-trust .ti small { color: var(--muted); font-size: 13.5px; }
/* media */
.hero-media { position: relative; }
.hero-media .photo {
  width: 100%;
  aspect-ratio: 4/4.4;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  background: var(--bg-2);
  overflow: hidden;
}
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .photo .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--faint);
}
.float-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-card .fc-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.float-card .fc-ic svg { width: 22px; height: 22px; }
.float-card b { font-family: var(--font-display); font-size: 18px; display: block; letter-spacing: -.01em; line-height: 1; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.fc-save { left: -26px; top: 22%; }
.fc-save .fc-ic { background: var(--green-soft); color: var(--green); }
.fc-rating { right: -22px; bottom: 14%; }
.fc-rating .fc-ic { background: var(--sand-soft); color: #b8862b; }
.fc-stars { color: #e7a93b; font-size: 13px; letter-spacing: 1px; }
/* logo strip */
.logo-strip { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); padding-top: 30px; }
.logo-strip p { text-align: center; color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 56px); }
.logo-row span { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); color: var(--faint); opacity: .7; letter-spacing: -.02em; transition: .2s; }
.logo-row span:hover { opacity: 1; color: var(--muted); }

/* ── CONFIGURADOR ────────────────────────────────────────────── */
.config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 208px;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.type-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-card); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.type-card:hover { transform: translateY(-5px); border-color: transparent; color: inherit; }
.type-card:hover::after { opacity: 1; }
.type-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; transition: .25s; }
.type-ic svg { width: 27px; height: 27px; }
.type-card:hover .type-ic { background: var(--blue); color: #fff; }
.type-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.04; color: var(--ink); margin: 0; }
.type-card p { color: var(--muted); font-size: 14.5px; line-height: 1.5; flex: 1; margin: 0; }
.type-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; color: var(--blue); margin-top: 2px; }
.type-link svg { width: 16px; height: 16px; transition: transform .22s; }
.type-card:hover .type-link svg { transform: translateX(4px); }
.type-tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); }

/* ── PASOS ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); counter-reset: step; }
.step { position: relative; }
.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--paper);
}
.step .step-ill {
  width: 100%;
  aspect-ratio: 16/11;
  border-radius: var(--r-md);
  background: var(--bg-2);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.step .step-ill img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 9px; color: var(--ink); }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.steps .step:not(:last-child) .num::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 19px;
  width: calc(100% - 8px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* ── BENEFICIOS ──────────────────────────────────────────────── */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit { display: flex; gap: 16px; padding: 24px; border-radius: var(--r-md); transition: background .2s; }
.benefit:hover { background: var(--paper); box-shadow: var(--shadow-soft); }
.benefit .b-ic { width: 48px; height: 48px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sand-soft); color: #a9762a; }
.benefit .b-ic svg { width: 24px; height: 24px; }
.benefit h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; color: var(--ink); }
.benefit p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; }

/* ── GARANTÍAS ───────────────────────────────────────────────── */
.guarantee-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guarantee { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 22px; transition: transform .2s, box-shadow .2s; }
.guarantee:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.guarantee .g-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); margin-bottom: 14px; }
.guarantee .g-ic svg { width: 24px; height: 24px; }
.guarantee b { font-family: var(--font-display); font-size: 17px; color: var(--ink); display: block; margin-bottom: 5px; }
.guarantee p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .guarantee-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guarantee-grid { grid-template-columns: 1fr; } }

/* ── MARCAS / GAFAS ──────────────────────────────────────────── */
.brands-sec { background: var(--sand-soft); }
.brands-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(32px, 4vw, 48px); }
.brands-top .sec-head { margin-bottom: 0; max-width: 640px; }
.price-pill { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px 24px; box-shadow: var(--shadow-soft); }
.price-pill .from { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price-pill b { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.price-pill b sup { font-size: 22px; }
.price-pill small { color: var(--green); font-size: 13px; font-weight: 600; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 13px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s; text-decoration: none; color: inherit; }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.brand-photo { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; background: var(--bg-2); position: relative; }
.brand-photo img { width: 100%; height: 100%; object-fit: cover; }
.brand-tag { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; }
.brand-body { padding: 16px 7px 5px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--ink); }
.brand-meta { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.brand-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 7px 5px; }
.brand-foot .bp { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.brand-foot .bp span { color: var(--muted); font-weight: 500; font-size: 12.5px; font-family: var(--font-body); }
.brand-foot .go { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: .2s; flex: none; }
.brand-foot .go svg { width: 16px; height: 16px; color: var(--blue); transition: transform .2s; }
.brand-card:hover .brand-foot .go { border-color: var(--blue); background: var(--blue); }
.brand-card:hover .brand-foot .go svg { color: #fff; transform: translateX(2px); }

/* ── COMPARATIVA ─────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.comp-col { border-radius: var(--card-radius); padding: clamp(26px, 3vw, 38px); border: 1px solid var(--line); background: var(--paper); }
.comp-col.bad { background: var(--bg); }
.comp-col.good { background: var(--deep); border-color: transparent; color: #eaf1f7; position: relative; overflow: hidden; }
.comp-col.good::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -120px; top: -120px; background: radial-gradient(circle, rgba(14,159,110,.3), transparent 70%); }
.comp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.comp-col h3 { font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.comp-col.good h3 { color: #fff; }
.comp-badge { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.comp-col.bad .comp-badge { background: var(--bg-2); color: var(--muted); }
.comp-col.good .comp-badge { background: var(--green); color: #fff; }
.comp-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; margin: 14px 0 4px; }
.comp-col.bad .comp-price { color: var(--ink); }
.comp-col.good .comp-price { color: #fff; }
.comp-price small { font-size: 15px; font-weight: 500; color: var(--faint); font-family: var(--font-body); }
.comp-col.good .comp-price small { color: #9fb3c4; }
.comp-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
.comp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.comp-list li svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.comp-col.bad .comp-list li svg { color: var(--faint); }
.comp-col.good .comp-list li svg { color: #4ade9e; }
.comp-col.good .comp-list li { color: #dceaf3; }
.comp-col .comp-cta { margin-top: 26px; }

/* ── LABORATORIOS (dark) ─────────────────────────────────────── */
.dark-sec { background: var(--deep); color: #dfeaf2; position: relative; overflow: hidden; }
.dark-sec::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(31,95,224,.26), transparent 68%); }
.dark-sec h2 { color: #fff; }
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; }
.lab-copy .lead { color: #a9bdcd; }
.lab-photo { aspect-ratio: 5/4; border-radius: var(--card-radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); background: #0a2034; }
.lab-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Cuando la sección "Nuestra historia" lleva vídeo de Vimeo: tarjeta horizontal 16:9 */
.lab-photo--video { aspect-ratio: 16 / 9; background: #000; }

/* ═════ CGD-001 / CGD-002 · rediseño blocks "deportivas" y "grabado" (home) ═════ */
/* 1) Eyebrow en PILL verde con punto (solo deportivas/grabado) */
.home-eyebrow--pill { padding: 7px 15px; border-radius: 999px; background: #e7f6ee; color: #0e7a4f; letter-spacing: .1em; }
.home-eyebrow--pill::before { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
/* 2) Título bold navy (más peso y tamaño) en blocks claros */
.home-section:not(.dark-sec) .lab-copy h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; color: var(--ink) !important; letter-spacing: -.01em; }
/* 3) Párrafo con más contraste (antes #a9bdcd desvaído sobre fondo claro) */
.home-section:not(.dark-sec) .lab-copy .lead { color: #46596a; }
/* 4) Checks VERDES + más espaciado (la CSS gana al stroke inline del SVG) */
.home-section:not(.dark-sec) .home-promo-list li { margin-bottom: 14px; color: #3a4a57; }
.home-section:not(.dark-sec) .home-promo-list li svg path { stroke: #16a34a; }
/* 5) Anti-overflow (CGD-002 #3): grid blowout → el texto se cortaba por la derecha */
.lab-grid { min-width: 0; }
.lab-copy { min-width: 0; }
.lab-copy h2, .lab-copy .lead { overflow-wrap: break-word; }
.lab-photo--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.treat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.treat { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.04); font-size: 15px; font-weight: 500; transition: .2s; }
.treat:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.treat svg { width: 20px; height: 20px; color: #6fa8ff; flex: none; }

/* ── REVIEWS ─────────────────────────────────────────────────── */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.rating-badge { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; box-shadow: var(--shadow-soft); }
.rating-badge .big { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.rating-badge .stars { color: #e7a93b; font-size: 15px; letter-spacing: 2px; }
.rating-badge small { color: var(--muted); font-size: 13px; display: block; margin-top: 3px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s, box-shadow .25s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.review .stars { color: #e7a93b; font-size: 15px; letter-spacing: 2px; }
.review blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 16px; flex: none; }
.review .who b { font-size: 15px; display: block; color: var(--ink); }
.review .who small { color: var(--faint); font-size: 13px; }
.review .who .verif { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); font-weight: 600; }
.review .who .verif svg { width: 14px; height: 14px; }
/* CGD-003: eyebrow de Opiniones en azul/navy (guion), no teal */
#opiniones .home-eyebrow::before { background: #1f5fe0; }
/* Estrellas precisas dentro del rating-badge heredan tamaño */
.rating-badge .cg-stars2 { font-size: 15px; letter-spacing: 1px; }

/* ── FAQ home ────────────────────────────────────────────────── */
.faq-home-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-home-list { border-top: 1px solid var(--line); }
.faq-home-item { border-bottom: 1px solid var(--line); }
.faq-home-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink);
  letter-spacing: -.01em;
  cursor: pointer;
}
.faq-home-q .ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: .25s;
  position: relative;
}
.faq-home-q .ic::before,
.faq-home-q .ic::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}
.faq-home-q .ic::before { width: 12px; height: 1.8px; }
.faq-home-q .ic::after  { width: 1.8px; height: 12px; }
.faq-home-item.open .faq-home-q .ic { background: var(--blue); border-color: var(--blue); }
.faq-home-item.open .faq-home-q .ic::before,
.faq-home-item.open .faq-home-q .ic::after { background: #fff; }
.faq-home-item.open .faq-home-q .ic::after { transform: scaleY(0); }
.faq-home-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-home-a p { padding: 0 4px 24px; color: var(--muted); font-size: 15.5px; max-width: 60ch; margin: 0; }
.faq-home-aside {
  background: var(--bg);
  border-radius: var(--card-radius);
  padding: clamp(28px, 3vw, 40px);
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.faq-home-aside h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.02em; color: var(--ink); }
.faq-home-aside p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

/* ── CTA FINAL ───────────────────────────────────────────────── */
.final-cta { padding-block: clamp(36px, 5vw, 60px); }
.cta-band {
  background: linear-gradient(135deg, var(--deep), #103a5e);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.cta-band::before { width: 340px; height: 340px; left: -120px; top: -150px; }
.cta-band::after  { width: 240px; height: 240px; right: -80px; bottom: -130px; border-color: rgba(120,170,255,.22); }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; position: relative; margin: 0; }
.cta-band p { color: #bcd2e4; max-width: 560px; margin: 18px auto 0; font-size: clamp(17px, 2vw, 20px); position: relative; }
.cta-band .btn { margin-top: 32px; position: relative; background: #fff; color: var(--deep); }
.cta-band .btn:hover { transform: translateY(-2px); color: var(--deep); }
.cta-band .micro { margin-top: 18px; color: #8eaabf; font-size: 13.5px; position: relative; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.cg-footer { background: var(--deep); border-top: none; color: #c4d4e0; padding-block: clamp(48px, 6vw, 72px) 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1.1fr 1.2fr; gap: 32px; align-items: start; }
.foot-brand .cg-brand { color: #fff; margin-bottom: 16px; }
.foot-brand p { color: #9fb3c4; font-size: 14.5px; max-width: 30ch; margin-top: 0; }
.foot-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.foot-col a { display: block; color: #a9bccb; font-size: 15px; padding: 6px 0; transition: color .18s; }
.foot-col a:hover { color: #fff; }
.foot-cats a.parent { color: #fff; font-weight: 600; }
.foot-cats a.child { padding-left: 16px; font-size: 14px; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; }
.foot-contact .ci { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; flex: none; }
.foot-contact .ci svg { width: 19px; height: 19px; color: #5fd39e; }
.foot-contact .ct-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #80a0b6; font-weight: 600; display: block; }
.foot-contact a, .foot-contact span { color: #fff; font-size: 15px; font-weight: 500; }
.foot-contact small { color: #9fb3c4; display: block; font-size: 13.5px; }
.tp-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 11px 15px; margin-top: 20px; }
.tp-badge .tp-star { color: #00b67a; font-size: 18px; letter-spacing: 1px; line-height: 1; }
.tp-badge b { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1; display: block; }
.tp-badge small { color: #9fb3c4; font-size: 12px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #c4d4e0; transition: .18s; }
.foot-social a:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.foot-social svg { width: 19px; height: 19px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #80a0b6; font-size: 13.5px; }
.foot-pay { display: flex; gap: 8px; align-items: center; }
.foot-pay span { padding: 5px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; font-weight: 600; font-size: 12px; color: #c4d4e0; background: rgba(255,255,255,.06); }

/* ── WhatsApp flotante ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 33px; height: 33px; color: #fff; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.5);opacity:0} }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; display: none; } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 36px; }
  .config-grid, .benefits, .reviews { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lab-grid { grid-template-columns: 1fr; }
  .lab-photo { order: -1; }
  .faq-home-wrap { grid-template-columns: 1fr; }
  .faq-home-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps .step:not(:last-child) .num::after { display: none; }
  .compare { grid-template-columns: 1fr; }
  .fc-save { left: -8px; }
  .fc-rating { right: -8px; }
}
@media (max-width: 520px) {
  .config-grid, .benefits, .reviews { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .hero-cta .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ════════ Página Nosotros ════════ */
.about-stat { text-align: center; padding: 8px; }
.about-stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); color: var(--blue-ink); letter-spacing: -.02em; line-height: 1; }
.about-stat__label { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.about-prose p { margin: 0 0 1em; }
.about-prose strong { color: inherit; font-weight: 700; }
.dark-sec .about-prose, .dark-sec .about-prose p { color: #a9bdcd; }
.dark-sec .about-prose strong { color: #fff; }

.about-ph { width: 100%; aspect-ratio: 5/4; border-radius: var(--card-radius); background: linear-gradient(135deg, var(--bg-2), var(--bg)); border: 1px solid var(--line); }
.about-ph--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 18px; text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.team-card__photo { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-2); margin-bottom: 14px; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.team-card__role { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.team-card__col { color: var(--blue-ink); font-size: 12.5px; font-weight: 600; margin: 6px 0 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ── Fix: títulos blancos en secciones oscuras (Nosotros/Home) ── */
.dark-sec h1, .dark-sec h2, .dark-sec h3 { color: #fff !important; }
.dark-sec .home-eyebrow, .dark-sec .home-eyebrow.on-dark { color: #9fc0ff !important; }
.dark-sec .lead, .dark-sec p { color: #a9bdcd !important; }
.cta-band h1, .cta-band h2, .cta-band h3 { color: #fff !important; }
.cta-band p, .cta-band .micro { color: #bcd2e4 !important; }
