/* ============================================================
   La Dosis Familiar — ladosisfamiliar.com
   Lenguaje visual: "la casa que se construye".
   Editorial, plano, con aire. Base crema; verde profundo solo
   como bloque puntual; la junta dorada es la firma que se traza.
   ============================================================ */

:root {
  --crema: #F5F1E8;
  --tinta: #1C1714;
  --verde: #0A3428;
  --vivo: #32620E;
  --oro: #C9A961;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-serif: "Spectral", Georgia, serif;
  --font-logo: "Poppins", system-ui, sans-serif;

  --ancho: 1100px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
blockquote { margin: 0; }

::selection { background: var(--oro); color: var(--tinta); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--tinta);
  color: var(--crema);
  padding: 0.6rem 1rem;
  z-index: 99;
}
.skip-link:focus { left: 0; }

/* La palabra clave: verde vivo + subrayado dorado fino (la junta) */
.kw {
  color: var(--vivo);
  text-decoration: underline;
  text-decoration-color: var(--oro);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.16em;
}

/* Etiqueta de sección: mayúsculas espaciadas con tick dorado (marca de cota) */
.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--vivo);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.section-label::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--oro);
  flex: none;
}
.section-label--light { color: var(--oro); }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad-x);
  background: color-mix(in srgb, var(--crema) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in srgb, var(--tinta) 8%, transparent);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.18em;
}
.logo__word { font-size: 0.62rem; }
.logo__la, .logo__fam { color: var(--tinta); }
.logo__dosis {
  color: var(--vivo);
  border-top: 2px solid var(--oro);
  border-bottom: 2px solid var(--oro);
  padding: 0.12rem 0.1rem;
  margin: 0.12rem 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--vivo); }
.site-nav__cta {
  background: var(--verde);
  color: var(--crema) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
}
.site-nav__cta:hover { background: var(--vivo); }

/* ---------- Hero · la dosis de hoy ---------- */

.hero {
  position: relative;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(4rem, 11vh, 7rem) var(--pad-x) clamp(4rem, 9vh, 6rem);
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.hero__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--vivo);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.hero__label::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--oro);
}
.hero__meta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: color-mix(in srgb, var(--tinta) 55%, var(--crema));
}

.hero__dose {
  font-size: clamp(2.1rem, 4.6vw + 0.9rem, 4.4rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 19ch;
  text-wrap: balance;
}

.hero__joint {
  display: block;
  width: clamp(4.5rem, 9vw, 7rem);
  height: 3px;
  background: var(--oro);
  margin: clamp(1.4rem, 3.5vh, 2.2rem) 0 1rem;
}

.hero__pillar {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.hero__hint {
  margin-top: 1.6rem;
  font-style: italic;
  font-size: 1rem;
  color: color-mix(in srgb, var(--tinta) 62%, var(--crema));
}
.hero__hint-kw { color: var(--vivo); font-style: normal; font-family: var(--font-display); font-size: 0.92em; }

.hero__watermark {
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: color-mix(in srgb, var(--tinta) 4%, transparent);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--solid { background: var(--verde); color: var(--crema); }
.btn--solid:hover { background: var(--vivo); }
.btn--ghost { border: 1.5px solid color-mix(in srgb, var(--tinta) 35%, transparent); }
.btn--ghost:hover { border-color: var(--vivo); color: var(--vivo); }

/* ---------- Manifiesto ---------- */

.manifesto {
  background: var(--verde);
  color: var(--crema);
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad-x);
}
.manifesto > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }

.manifesto__quote {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.3rem, 3vh, 2rem);
}
.manifesto__quote p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.6vw + 0.4rem, 2.3rem);
  line-height: 1.42;
  max-width: 38ch;
  text-wrap: balance;
}
.manifesto__quote em {
  font-style: italic;
  color: var(--oro);
}
.manifesto__joint {
  display: block;
  width: clamp(4rem, 8vw, 6.5rem);
  height: 2px;
  background: var(--oro);
  margin: 0.6rem 0;
}

/* ---------- Pilares · planos de la casa ---------- */

.pillars {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad-x);
}

.pillars__head { margin-bottom: clamp(3rem, 7vh, 5rem); }
.pillars__intro {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
}

.pillars__list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vh, 5rem);
}

.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  max-width: 760px;
}
/* Composición asimétrica: los pares se desplazan a la derecha */
.pillar:nth-child(even) { margin-left: auto; }

.pillar__num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 250;
  line-height: 0.9;
  color: var(--oro);
  letter-spacing: -0.02em;
  padding-top: 0.4rem;
}

.pillar__body { position: relative; padding-top: 1.1rem; }

/* La cota del plano: línea dorada con remates perpendiculares */
.pillar__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 22rem);
  height: 1.5px;
  background: var(--oro);
}
.pillar__rule::before,
.pillar__rule::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1.5px;
  height: 10px;
  background: var(--oro);
}
.pillar__rule::before { left: 0; }
.pillar__rule::after { right: 0; }

.pillar__name {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--verde);
  margin-bottom: 0.7rem;
}

.pillar__line {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  max-width: 34ch;
}

/* ---------- Seguir / CTA ---------- */

.follow {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--pad-x);
  text-align: center;
}

.follow__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--verde);
}
.follow__joint {
  display: block;
  width: clamp(5rem, 10vw, 8rem);
  height: 3px;
  background: var(--oro);
  margin: 1.4rem auto 0;
}

.follow__lead {
  margin-top: 1.8rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 300;
}

.follow__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 650;
}
.follow__links a {
  text-decoration: none;
  color: var(--tinta);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.follow__links a:hover { color: var(--vivo); border-bottom-color: var(--oro); }

.follow__news { margin-top: 3rem; }
.follow__news-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.follow__news-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.follow__news input {
  font: inherit;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid color-mix(in srgb, var(--tinta) 30%, transparent);
  border-radius: 999px;
  background: transparent;
  min-width: 16rem;
}

.follow__mail {
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3rem);
  font-style: italic;
  color: color-mix(in srgb, var(--tinta) 65%, var(--crema));
  text-decoration-color: var(--oro);
  text-underline-offset: 0.2em;
}
.follow__mail:hover { color: var(--vivo); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--verde);
  color: var(--crema);
  text-align: center;
  padding: clamp(3rem, 7vh, 4.5rem) var(--pad-x);
}
.footer__mono {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0.45em;
  color: var(--oro);
  display: inline-block;
  margin-bottom: 1rem;
  padding-left: 0.45em; /* compensa el letter-spacing del último carácter */
}
.footer__tag { font-style: italic; font-size: 1.05rem; }
.footer__meta {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--crema) 60%, var(--verde));
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

/* ---------- Movimiento: reveals y juntas que se trazan ----------
   Solo se ocultan elementos si hay JS (html.js) y el usuario
   no pidió movimiento reducido. Sin JS, todo es visible. */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(var(--reveal-delay, 0) * 110ms);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  html.js [data-joint] {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
  }
  html.js [data-joint].is-in { transform: scaleX(1); }

  html.js .follow__joint { transform-origin: center; }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero { min-height: 70vh; }
  .hero__watermark { display: none; }
  .pillar { grid-template-columns: 1fr; gap: 0.8rem; }
  .pillar:nth-child(even) { margin-left: 0; }
  .pillar__num { font-size: 2.6rem; padding-top: 0; }
  .site-nav { font-size: 0.85rem; }
  .footer__meta { flex-direction: column; gap: 0.3rem; }
  .footer__meta span[aria-hidden] { display: none; }
}
