/* ============================================================
   STRONG 50s — Landing page
   Estilo: limpio, minimalista, premium y cálido.
   Mobile-first. Paleta verde + blanco + gris.
============================================================ */

/* ---------- Variables ---------- */
:root {
  /* Paleta */
  --green-deep: #3D4A35;   /* primario: wordmark, titulares, botones, footer */
  --green-sage: #E8EAE0;   /* secundario: fondos suaves, detalles */
  --white:      #FFFFFF;   /* fondo principal */
  --bone:       #FBFAF6;   /* fondo alterno */
  --text:       #44443F;   /* cuerpo de texto */
  --line:       #E6E5DF;   /* divisores, bordes */
  --green-deep-hover: #2F3A29;

  /* Tipografía */
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mark: 'Archivo Black', 'Arial Black', sans-serif;

  /* Ritmo */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 8px;
  --section-y: 4rem;        /* espaciado vertical de sección (móvil) */
  --topbar-h: 60px;
}

/* ---------- Reset básico ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;          /* ~17px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { max-width: var(--maxw-narrow); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }
.section--sage { background: var(--green-sage); }

.center-block { text-align: center; }
.center { text-align: center; }

/* ============================================================
   Tipografía / utilidades de texto
============================================================ */
.eyebrow {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1.25rem;
}

.lead {
  font-weight: 300;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  line-height: 1.25;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  text-align: center;
}
.lead--left { text-align: left; }

.subhead {
  font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--green-deep);
  margin: 2.5rem 0 1.5rem;
}

.body { margin: 0 0 1.25rem; }
.body--closing { font-weight: 400; }
.body strong { font-weight: 500; color: var(--green-deep); }

.note {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
  font-style: italic;
  max-width: 56ch;
  margin-inline: auto;
}

/* ============================================================
   Wordmark "STRONG 50s" (Archivo Black, horizontal)
============================================================ */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  line-height: 1;
  margin: 0;
  white-space: nowrap;          /* nunca vertical */
}
.wordmark__accent { color: var(--green-deep); position: relative; }
/* "50s" diferenciado con un sutil subrayado-acento en salvia */
.wordmark__accent { color: var(--green-deep); }

.wordmark--sm { font-size: 1.15rem; text-decoration: none; }
.wordmark--footer { font-size: 1.6rem; color: var(--white); }
.wordmark--footer .wordmark__accent { color: var(--green-sage); }

/* En el hero el "50s" va en verde salvia para darle carácter sobre fondo claro:
   usamos un tono más oscuro de salvia para mantener contraste */
.hero__wordmark .wordmark__accent { color: #8A9577; }

/* ============================================================
   Botones / CTA
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--green-deep); color: var(--white); }
.btn--primary:hover { background: var(--green-deep-hover); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { background: var(--green-sage); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.0625rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.9rem; }
/* Botón secundario: contorno verde, fondo transparente */
.btn--outline {
  background: transparent;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1.5px var(--green-deep);
}
.btn--outline:hover { background: var(--green-deep); color: var(--white); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }
.btn--light:focus-visible { outline-color: var(--white); }

/* Grupo de acciones de la sección Inversión (dos CTAs apilados) */
.pricing__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.pricing__actions .btn { width: 100%; max-width: 22rem; }

/* ---------- Icono flecha (botón de inscripción) ---------- */
.icon-arrow {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.2s ease;
}
.icon-arrow svg { width: 100%; height: 100%; }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Icono WhatsApp (SVG vía mask para colorearlo) ---------- */
.icon-wa {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--wa-mask) center / contain no-repeat;
  mask: var(--wa-mask) center / contain no-repeat;
}
.icon-wa--lg { width: 1.9rem; height: 1.9rem; }
.icon-wa--green { color: var(--green-deep); }
:root {
  --wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M.057 24l1.687-6.163a11.867 11.867 0 0 1-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 0 1 8.413 3.488 11.824 11.824 0 0 1 3.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 0 1-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 0 0 1.51 5.26l-.999 3.648 3.978-1.607zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.247-.694.247-1.289.173-1.413z'/%3E%3C/svg%3E");
}

/* ============================================================
   SECCIÓN 1 — Barra superior fija
============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.topbar__cta .btn__label { display: inline; }

/* ============================================================
   SECCIÓN 2 — Hero
============================================================ */
.hero {
  padding-top: calc(var(--topbar-h) + 2.5rem);
  padding-bottom: var(--section-y);
  background: var(--white);
}
.hero__grid { display: grid; gap: 2.5rem; }
.hero__wordmark {
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-weight: 300;
  font-size: clamp(1.85rem, 6.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  margin: 0 0 1.25rem;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}
.hero__tag {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  font-weight: 500;
  margin: 0 0 2rem;
}
.hero__figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  /* garantiza que el caption recorte junto con la imagen */
}
.hero__media .photo {
  width: 100%;
  border-radius: 0;          /* el recorte lo hace el figure */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
/* Caption sobre la imagen (degradado + texto blanco) */
.hero__caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 3.5rem 1.5rem 1.4rem;
  background: linear-gradient(to top,
    rgba(28, 35, 22, 0.78) 0%,
    rgba(28, 35, 22, 0.35) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #fff;
}
.hero__caption-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.hero__caption-cred {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.82;
  line-height: 1.3;
}

/* Tratamiento de color uniforme para TODAS las fotos */
.photo {
  filter: saturate(0.9) contrast(1.02) brightness(1.02);
}

/* ============================================================
   SECCIÓN 3 — Qué es: negaciones + dimensiones
============================================================ */
.negations {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.negation {
  background: var(--white);
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--green-deep);
  padding: 1.25rem 1rem;
}

.dimensions {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.dimension {
  background: var(--green-sage);
  color: var(--green-deep);
  font-weight: 500;
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* ============================================================
   Tarjetas (escenarios, indicadores, metodología)
============================================================ */
.cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(61, 74, 53, 0.08);
  border-color: #d9d8d0;
}
.card__icon {
  display: block;
  color: var(--green-deep);
  margin-bottom: 1rem;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.card__icon svg { width: 100%; height: 100%; }
.card__title {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--green-deep);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.card__text { margin: 0; font-size: 0.98rem; }

/* En sección salvia las tarjetas van blancas para destacar */
.section--sage .card { background: var(--white); border-color: transparent; }

/* ============================================================
   SECCIÓN 4 — Para quién es (imagen + texto)
============================================================ */
.paraquien__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: center;
}
.paraquien__media .photo {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
}
.paraquien__content .subhead { margin-top: 2rem; margin-bottom: 0; }

@media (min-width: 980px) {
  .paraquien__grid { grid-template-columns: 0.75fr 1.25fr; gap: 4rem; }
}

/* ============================================================
   SECCIÓN 5 — Checklist de logros
============================================================ */
.checklist {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  max-width: var(--maxw-narrow);
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.0625rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--green-deep);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
  mask: var(--check-mask) center / contain no-repeat;
}
.checklist--center { max-width: 30rem; text-align: left; }
:root {
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* ============================================================
   SECCIÓN 6 — Qué vamos a aprender (módulos + imagen lateral)
============================================================ */
.aprender__layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
.aprender__media .photo {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  display: block;
  max-height: 80vh;
}

@media (min-width: 980px) {
  .aprender__layout {
    grid-template-columns: 1fr 0.52fr;
    gap: 4rem;
  }
  /* Sticky: la imagen "flota" mientras el usuario lee los módulos */
  .aprender__media {
    position: sticky;
    top: calc(var(--topbar-h) + 1.5rem);
  }
  .aprender__media .photo {
    max-height: calc(100vh - var(--topbar-h) - 3rem);
  }
}

/* Módulos */
.modules {
  list-style: none;
  counter-reset: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.module {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(61, 74, 53, 0.08); }
.module__num {
  font-family: var(--font-mark);
  font-size: 1.6rem;
  color: var(--green-sage);
  line-height: 1;
  -webkit-text-stroke: 1px #c9cdbd;
}
.module__title {
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--green-deep);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.module__desc { margin: 0 0 1rem; }
.module__row { margin: 0 0 0.5rem; font-size: 0.96rem; }
.module__row:last-child { margin-bottom: 0; }
.module__key { font-weight: 500; color: var(--green-deep); }

/* ============================================================
   SECCIÓN 8 — Requisitos
============================================================ */
.reqs { margin: 2.5rem 0 0; padding: 0; }
.req {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.req:first-child { border-top: 1px solid var(--line); }
.req__term {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.req__hint { font-weight: 300; font-size: 0.9rem; opacity: 0.7; }
.req__desc { margin: 0; }

/* ============================================================
   SECCIÓN 9 — Inversión
============================================================ */
.pricing { text-align: center; }
.price {
  font-family: var(--font-mark);
  font-size: clamp(3rem, 14vw, 4.5rem);
  color: var(--green-deep);
  line-height: 1;
  margin: 0.5rem 0 1.75rem;
}
.price__cur { font-size: 0.35em; vertical-align: super; letter-spacing: 0.02em; }
.includes-label {
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 1rem;
}
.pricing .checklist { margin-block: 1rem 2rem; }
.highlight {
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--green-deep);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin: 0 0 2rem;
  display: inline-block;
}

/* ============================================================
   SECCIÓN 10 — Quién soy (bio)
============================================================ */
.bio__grid { display: grid; gap: 2.5rem; }
.bio__media .photo {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
}
.credentials {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.credentials li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  color: var(--green-deep);
  font-weight: 500;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-deep);
}

/* ============================================================
   SECCIÓN 11 — CTA final (foto de fondo B&N, oscurecida)
============================================================ */
.final-cta {
  position: relative;
  isolation: isolate;
  background: var(--green-deep);
  padding-block: 6rem;
  text-align: center;
  overflow: hidden;
}
/* Foto de fondo en blanco y negro y oscurecida (filter, soporte amplio) */
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/images/cta-bg.jpg") center 25% / cover no-repeat;
  filter: grayscale(100%) brightness(0.42) contrast(1.05);
}
/* Tinte verde sutil encima para integrar con la marca */
.final-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(35, 42, 30, 0.45);
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta__text {
  font-weight: 300;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto 2.25rem;
}

/* ============================================================
   SECCIÓN 12 — Footer
============================================================ */
.footer {
  background: var(--green-deep);
  color: var(--green-sage);
  padding-block: 3rem;
  text-align: center;
}
.footer__inner { display: grid; gap: 0.75rem; }
.footer__line { margin: 0; font-size: 0.98rem; opacity: 0.85; }
.footer__copy { margin: 0; font-size: 0.85rem; opacity: 0.6; }

/* ============================================================
   Botón flotante de WhatsApp (sticky)
============================================================ */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(61, 74, 53, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--green-deep-hover); }
.wa-float:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }

/* ============================================================
   Animaciones de scroll (reveal)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive — Tablet / Escritorio
============================================================ */
@media (min-width: 700px) {
  :root { --section-y: 6rem; }

  .negations { grid-template-columns: repeat(3, 1fr); }
  .dimensions { grid-template-columns: repeat(4, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  :root { --section-y: 7rem; }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
  }
  .hero__media .photo { aspect-ratio: 3 / 4; }

  .cards--4 { grid-template-columns: repeat(4, 1fr); }

  .bio__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 4rem;
  }
}

/* ============================================================
   Accesibilidad — respetar prefers-reduced-motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .module, .wa-float { transition: none; }
}
