/* ==========================================================================
   NIDO — La infraestructura digital de la vida residencial moderna
   styles.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Superficies */
  --cream:      #FAF7F2;
  --cream-2:    #F3EEE5;
  --cream-3:    #EBE4D7;
  --ink:        #0E0E0E;
  --ink-2:      #171614;
  --ink-3:      #221F1A;

  /* Texto */
  --text:       #14130F;
  --text-2:     #4A453C;
  --muted:      #7A7266;
  --on-dark:    #F6F2EA;
  --on-dark-2:  #B9B1A2;

  /* Oro */
  --gold:       #B4892A;
  --gold-mid:   #C9A43F;
  --gold-lt:    #E7CE8B;
  --gold-pale:  #F5E9C9;
  --gold-dk:    #8A6716;
  --gold-sheen: linear-gradient(100deg, #9C7620 0%, #E3C57E 22%, #C09230 45%, #F3E5BC 62%, #B98F2C 80%, #8A6716 100%);

  /* Líneas */
  --line:       rgba(20, 19, 15, 0.10);
  --line-2:     rgba(20, 19, 15, 0.16);
  --line-dark:  rgba(246, 242, 234, 0.12);

  /* Tipografía */
  --serif: "Bodoni Moda", "Didot", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo */
  --gut:        clamp(20px, 5vw, 48px);
  --sec-y:      clamp(72px, 11vw, 148px);
  --maxw:       1240px;
  --maxw-text:  760px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--gold-lt); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Tipografía
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold-lt); }
.on-dark .eyebrow::before,
.on-dark .eyebrow::after { background: var(--gold); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
}
.on-dark .lede { color: var(--on-dark-2); }

.gold-text {
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

em.serif-i { font-style: italic; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }

.on-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--on-dark); }

.tone-2 { background: var(--cream-2); }

.sec-head { max-width: var(--maxw-text); margin-bottom: clamp(40px, 5vw, 66px); }
.sec-head.centered { margin-inline: auto; text-align: center; }
.sec-head h2 + .lede { margin-top: 22px; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.on-dark .rule { background: var(--line-dark); }

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--gold {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,19,15,.16), 0 10px 26px -12px rgba(20,19,15,.5);
}
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-sheen);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--gold:hover::before { opacity: 1; }
.btn--gold:hover { color: var(--ink); box-shadow: 0 1px 2px rgba(20,19,15,.16), 0 16px 34px -14px rgba(180,137,42,.7); }
.btn--gold > * { position: relative; z-index: 1; }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dk); background: rgba(180,137,42,.05); }

.on-dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.on-dark .btn--ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: rgba(231,206,139,.07); }

.on-dark .btn--gold { background: var(--gold-sheen); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(180,137,42,.75); }
.on-dark .btn--gold::before { display: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row.centered { justify-content: center; }

.arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Navegación
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.nav__logo img { height: 30px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}
.nav__links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 22px; font-size: 0.83rem; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-right: -10px;
}
.nav__burger span {
  display: block;
  width: 21px; height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--cream);
  z-index: 99;
  padding: 40px var(--gut) 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
}
body.nav-open .nav__mobile { opacity: 1; visibility: visible; transform: none; }
.nav__mobile a {
  font-family: var(--serif);
  font-size: 1.75rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav__mobile .btn { margin-top: 28px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1300px, 145vw);
  aspect-ratio: 1.5;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 45%,
              rgba(231,206,139,.42) 0%,
              rgba(231,206,139,.16) 38%,
              rgba(231,206,139,0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(20,19,15,.055) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero__mark {
  width: clamp(180px, 26vw, 300px);
  margin: 0 auto clamp(30px, 4.5vw, 52px);
}
.hero__inner { text-align: center; }
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero .lede {
  margin: clamp(22px, 3vw, 34px) auto 0;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
}
.hero .btn-row { margin-top: clamp(32px, 4vw, 46px); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(52px, 7vw, 88px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 820px;
  margin-inline: auto;
}
.hero__fact { text-align: center; min-width: 130px; }
.hero__fact b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}
.hero__fact span {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Manifiesto / cita del fundador
   -------------------------------------------------------------------------- */
.manifesto { background: var(--cream-2); }
.manifesto__inner {
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  padding-top: 20px;
}
.manifesto__quote {
  position: absolute;
  top: -22px;
  left: -6px;
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 1;
  color: var(--gold);
  opacity: .2;
  pointer-events: none;
  user-select: none;
}
.manifesto blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.manifesto blockquote p { margin-bottom: 0.85em; }
.manifesto blockquote p:last-of-type { margin-bottom: 0; }
.manifesto blockquote strong {
  font-weight: 400;
  background: linear-gradient(to top, rgba(231,206,139,.55) 0%, rgba(231,206,139,.55) 32%, transparent 32%);
}
.manifesto__by {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Problema
   -------------------------------------------------------------------------- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.problem__col h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.problem__col ul { list-style: none; margin: 0; padding: 0; }
.problem__col li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.5;
}
.problem__col li:last-child { border-bottom: 0; }
.x-mark {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(20,19,15,.06);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.problem__col--today li span:last-child { color: var(--text-2); }

.problem__note {
  margin-top: clamp(38px, 5vw, 60px);
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  font-size: 1.02rem;
  line-height: 1.62;
  max-width: 900px;
}
.problem__note strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Statement (sección oscura)
   -------------------------------------------------------------------------- */
.statement { text-align: center; overflow: hidden; }
.statement__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1.7;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(180,137,42,.22) 0%, rgba(180,137,42,0) 66%);
  pointer-events: none;
}
.statement .wrap { position: relative; z-index: 1; }
.statement h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.18;
}
.statement .lede { margin: 30px auto 0; text-align: center; }

/* --------------------------------------------------------------------------
   11. Módulos
   -------------------------------------------------------------------------- */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.module {
  background: var(--cream);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: background-color .4s var(--ease);
  min-height: 260px;
}
.module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--mod, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.module:hover { background: var(--cream-2); }
.module:hover::before { transform: scaleX(1); }

.module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.module__num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.module__icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 19, 15, .06); /* respaldo si no hay color-mix */
  background: color-mix(in srgb, var(--mod, #B4892A) 11%, transparent);
  color: var(--mod, var(--gold-dk));
  flex: none;
}
.module__icon svg { width: 19px; height: 19px; }
.module h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}
.module p {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-2);
  margin: 0;
}
.module__ex {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.module__ex b {
  color: var(--mod, var(--gold-dk));
  font-weight: 600;
  flex: none;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. Un día en la vida
   -------------------------------------------------------------------------- */
.day { background: var(--cream-2); }
.day__timeline {
  max-width: 900px;
  margin-inline: auto;
  position: relative;
  padding-left: clamp(0px, 1vw, 10px);
}
.day__item {
  display: grid;
  grid-template-columns: 92px 34px 1fr;
  gap: 0 clamp(14px, 2vw, 26px);
  align-items: start;
  padding-bottom: clamp(30px, 4vw, 46px);
  position: relative;
}
.day__item:last-child { padding-bottom: 0; }
.day__time {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--gold-dk);
  padding-top: 4px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.day__spine {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
}
.day__spine::before {
  content: "";
  position: absolute;
  top: 16px; bottom: -6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-lt), var(--line));
}
.day__item:last-child .day__spine::before { display: none; }
.day__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1.5px solid var(--gold);
  margin-top: 8px;
  position: relative;
  z-index: 1;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.day__item:hover .day__dot { background: var(--gold); transform: scale(1.25); }
.day__body h3 { font-size: 1.22rem; margin-bottom: 9px; }
.day__body p { font-size: 0.95rem; color: var(--text-2); line-height: 1.6; margin: 0; }

.day__close {
  max-width: 900px;
  margin: clamp(46px, 6vw, 72px) auto 0;
  padding: clamp(26px, 3.5vw, 40px);
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}
.day__close b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400;
  margin-bottom: 12px;
}
.day__close p { color: var(--text-2); font-size: 0.98rem; margin: 0; }

/* --------------------------------------------------------------------------
   13. Tabs — Por qué NIDO según quién eres
   -------------------------------------------------------------------------- */
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(34px, 4.5vw, 54px);
}
.tabs__btn {
  padding: 14px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .3s var(--ease);
  margin-bottom: -1px;
}
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tabs__btn[aria-selected="true"]::after { transform: scaleX(1); }

.tabs__panel { display: none; }
.tabs__panel.is-active { display: grid; animation: fadeUp .5s var(--ease) both; }
.tabs__panel {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.tabs__intro h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.tabs__intro p { color: var(--text-2); font-size: 1rem; }
.tabs__list { list-style: none; margin: 0; padding: 0; }
.tabs__list li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.55;
}
.tabs__list li:first-child { padding-top: 0; }
.tabs__list li:last-child { border-bottom: 0; }
.check {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(180,137,42,.13);
  color: var(--gold-dk);
  display: grid;
  place-items: center;
}
.check svg { width: 11px; height: 11px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   14. Comparación
   -------------------------------------------------------------------------- */
.compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.compare th, .compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  border-bottom-color: var(--gold);
  padding-bottom: 14px;
}
.compare thead th:nth-child(2) { color: var(--gold-lt); }
.compare tbody th {
  font-weight: 500;
  color: var(--on-dark);
  width: 38%;
}
.compare td { color: var(--on-dark-2); }
.compare td.yes { color: var(--on-dark); }
.compare td.yes::before,
.compare td.no::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: -3px;
  background: rgba(180,137,42,.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23E7CE8B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}
.compare td.no::before {
  background-color: rgba(246,242,234,.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.4 3.4l5.2 5.2M8.6 3.4l-5.2 5.2' fill='none' stroke='%23736C60' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.compare tbody tr:hover th, .compare tbody tr:hover td { background: rgba(246,242,234,.035); }

.compare__note {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  background: rgba(246,242,234,.03);
}
.compare__note p { margin: 0; color: var(--on-dark-2); max-width: 62ch; font-size: 0.97rem; }
.compare__note strong { color: var(--on-dark); font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Voces del campo
   -------------------------------------------------------------------------- */
.voices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.voice {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.voice:hover {
  border-color: var(--gold-lt);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -30px rgba(20,19,15,.4);
}
.voice__mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: .6;
  color: var(--gold);
  opacity: .45;
}
.voice p {
  margin: 0;
  font-size: 0.99rem;
  line-height: 1.62;
  color: var(--text);
}
.voice cite {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.voices__foot {
  margin-top: clamp(34px, 4vw, 50px);
  text-align: center;
  color: var(--text-2);
  max-width: 66ch;
  margin-inline: auto;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   16. Aliados (Resource Hub / Local Deals / Proveedores)
   -------------------------------------------------------------------------- */
.allies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.ally {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.ally:hover {
  border-color: var(--gold-lt);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -34px rgba(20,19,15,.42);
}
.ally__tag {
  align-self: flex-start;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(180,137,42,.12);
  color: var(--gold-dk);
}
.ally h3 { font-size: 1.6rem; }
.ally > p { color: var(--text-2); font-size: 0.96rem; margin: 0; }
.ally ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ally li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-2);
}
.ally li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
}
.ally .btn { margin-top: auto; align-self: flex-start; }

.ally--feature { background: var(--ink); color: var(--on-dark); border-color: transparent; }
.ally--feature h3 { color: var(--on-dark); }
.ally--feature > p, .ally--feature li { color: var(--on-dark-2); }
.ally--feature .ally__tag { background: rgba(231,206,139,.16); color: var(--gold-lt); }
.ally--feature li::before { background: var(--gold-lt); }
.ally--feature:hover { border-color: var(--gold); }

.cats {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: clamp(28px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.cats > b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.cats__list { display: flex; flex-wrap: wrap; gap: 9px; }
.cats__list span {
  font-size: 0.83rem;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.cats__list span:hover { border-color: var(--gold); color: var(--gold-dk); background: rgba(180,137,42,.05); }

/* --------------------------------------------------------------------------
   17. Privacidad
   -------------------------------------------------------------------------- */
.privacy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(30px, 4.5vw, 64px);
}
.privacy__col > b {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 4px;
  font-weight: 600;
}
.privacy__col > b svg { width: 16px; height: 16px; }
.privacy__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 7px;
}
.privacy__item:last-child { border-bottom: 0; }
.privacy__item strong { font-size: 1rem; font-weight: 500; }
.privacy__item span { font-size: 0.89rem; line-height: 1.6; color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq__list { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.3;
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--gold-dk); }
.faq__sign {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  position: relative;
  margin-top: 2px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
}
.faq__sign::before, .faq__sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text);
  transition: transform .4s var(--ease), background-color .3s var(--ease);
}
.faq__sign::before { width: 11px; height: 1.4px; transform: translate(-50%, -50%); }
.faq__sign::after  { width: 1.4px; height: 11px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__sign { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.faq__item.is-open .faq__sign::before,
.faq__item.is-open .faq__sign::after { background: var(--ink); }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }

.faq__a {
  overflow: hidden;
  height: 0;
  transition: height .45s var(--ease);
}
.faq__a > div {
  padding: 0 60px 30px 0;
  color: var(--text-2);
  font-size: 0.99rem;
  line-height: 1.68;
  max-width: 74ch;
}
.faq__a strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   19. CTA final + formulario
   -------------------------------------------------------------------------- */
.cta { overflow: hidden; }
.cta__glow {
  position: absolute;
  left: 50%; top: -30%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.4;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(180,137,42,.26) 0%, rgba(180,137,42,0) 66%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 1; }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(38px, 6vw, 84px);
  align-items: start;
}
.cta__left h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta__left h2 em { font-style: italic; }
.cta__left .lede { margin-top: 24px; }
.cta__contact {
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 16px;
}
.cta__contact a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--on-dark-2);
  font-size: 0.95rem;
  transition: color .3s var(--ease);
  width: fit-content;
}
.cta__contact a:hover { color: var(--gold-lt); }
.cta__contact svg { width: 17px; height: 17px; flex: none; color: var(--gold); }

/* Formulario */
.form {
  background: rgba(246,242,234,.045);
  border: 1px solid var(--line-dark);
  padding: clamp(26px, 3.4vw, 42px);
  display: grid;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(14,14,14,.4);
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 0.94rem;
  border-radius: 3px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23B9B1A2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px;
  padding-right: 38px;
  cursor: pointer;
}
.field select option { background: var(--ink); color: var(--on-dark); }
.field input::placeholder, .field textarea::placeholder { color: #6E675C; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(14,14,14,.62);
}
.form .btn { justify-content: center; width: 100%; margin-top: 4px; }
.form__fine { font-size: 0.78rem; color: #7E7669; line-height: 1.55; margin: 0; }
.form__fine a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 3px; }

.form__ok {
  display: none;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--gold);
  background: rgba(180,137,42,.12);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gold-pale);
}
.form__ok.is-shown { display: flex; }
.form__ok svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold-lt); }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--on-dark-2);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(48px, 6vw, 74px) 34px;
}
/* Nota: repeat(auto-fit, …) no puede mezclarse con pistas en fr,
   así que aquí las columnas van explícitas y se colapsan por media query. */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 54px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { width: 140px; margin-bottom: 22px; }
.footer__brand p { font-size: 0.9rem; line-height: 1.6; max-width: 38ch; margin: 0; }
.footer__col b {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer__col a, .footer__col span {
  display: block;
  font-size: 0.89rem;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.footer__col a:hover { color: var(--gold-lt); }
.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #6E675C;
}
.footer__bottom .dot { color: var(--gold); }

/* --------------------------------------------------------------------------
   21. Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .tabs__panel { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
  .compare__note { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 70px; }
  .nav__inner { height: 70px; }
  .nav__mobile { inset-block-start: 70px; }
  .nav__links, .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
  .problem__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding-top: 108px; }
  .hero__facts { gap: 26px 34px; }
  .day__item { grid-template-columns: 1fr; gap: 8px; }
  .day__spine { display: none; }
  .day__time {
    padding-top: 0;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--sans);
    font-weight: 600;
  }
  .day__body { padding-left: 0; border-left: 0; }
  .day__item { padding-left: 18px; border-left: 1px solid var(--line-2); }
  .form__row { grid-template-columns: 1fr; }
  .faq__a > div { padding-right: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .tabs__bar { gap: 0; }
  .tabs__btn { padding: 12px 14px; font-size: 0.84rem; }
}

/* --------------------------------------------------------------------------
   23. Preferencias
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero__glow, .hero__grain, .cta__glow, .statement__glow { display: none; }
  body { background: #fff; color: #000; }
  .on-dark { background: #fff !important; color: #000 !important; }
}
