/* ============================================================
   Alma Presente — demo landing (estructura tipo template coach)
   Paleta "Salvia serena" · mobile-first
   ------------------------------------------------------------
   SISTEMA DE COLOR (todo reacciona en runtime)
   - 5 tokens base editables por JS: --crema, --salvia-claro,
     --salvia, --oliva-oscuro, --texto-secundario.
   - Por cada token hay un gemelo "-rgb" con los canales sueltos
     (ej. --crema-rgb: 243 239 230) para generar transparencias
     con rgb(var(--crema-rgb) / .7) sin valores rgba() fijos.
   - Al cambiar un color por JS hay que actualizar el par:
       setProperty('--crema', '#RRGGBB')
       setProperty('--crema-rgb', 'R G B')
   - Tokens derivados de rol (--oliva-hover, --borde-claro, ...)
     mapean a los valores actuales; un theme distinto los pisa.
   - FUERA del sistema de color: .footer__flag (bandera de
     Malvinas) queda hardcodeada a propósito.
   ============================================================ */

:root {
  /* — Paleta base (editable en runtime) — */
  --crema: #F3EFE6;            /* fondo principal */
  --salvia-claro: #DCE6D3;     /* fondos secundarios, bordes suaves */
  --salvia: #8FA87E;           /* bloques de acento */
  --oliva-oscuro: #3E4A38;     /* texto principal, bloques oscuros */
  --texto-secundario: #6B6B63; /* texto de apoyo */

  /* — Canales RGB (mismos colores, para transparencias dinámicas) — */
  --crema-rgb: 243 239 230;
  --salvia-claro-rgb: 220 230 211;
  --salvia-rgb: 143 168 126;
  --oliva-oscuro-rgb: 62 74 56;
  --texto-secundario-rgb: 107 107 99;

  /* — Derivados de rol (un theme distinto los redefine) — */
  --oliva-hover: #2F382B;                              /* hover de acciones oscuras (botón sólido, flotante) */
  --claro-hover: #FFFFFF;                              /* hover de botón claro sobre fondo oscuro */
  --texto-sobre-oscuro: rgb(var(--crema-rgb) / .9);    /* párrafos sobre bloques oscuros / salvia */
  --borde-oscuro: rgb(var(--oliva-oscuro-rgb) / .12);  /* hairline oscuro sobre fondo claro */
  --borde-claro: rgb(var(--crema-rgb) / .25);          /* hairline claro sobre fondo oscuro */

  /* — Layout — */
  --maxw: 1120px;
  --gap: 26px;
  --nav-h: 62px;
}

/* Fuente dedicada para la leyenda de Malvinas (directiva Pixeleo) */
@font-face {
  font-family: "Malvinas Sans";
  src: url("assets/fonts/MalvinasSans-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--oliva-oscuro);
  background: var(--crema);
}

img { max-width: 100%; display: block; }

p { margin: 0 0 1em; }

/* ---------- Titulares ---------- */
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.section-title {
  font-size: 27px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.section-title--center { text-align: center; }

/* ---------- Etiquetas (eyebrow) ---------- */
.eyebrow {
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--salvia);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--salvia-claro); }

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

section { padding-block: 60px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn--lg { padding: 16px 34px; }

.btn--solid {
  background: var(--oliva-oscuro);
  color: var(--crema);
  border-color: var(--oliva-oscuro);
}
.btn--solid:hover { background: var(--oliva-hover); border-color: var(--oliva-hover); }

.btn--outline {
  background: transparent;
  color: var(--oliva-oscuro);
  border-color: var(--oliva-oscuro);
}
.btn--outline:hover { background: var(--oliva-oscuro); color: var(--crema); }

.btn--light {
  background: var(--crema);
  color: var(--oliva-oscuro);
  border-color: var(--crema);
}
.btn--light:hover { background: var(--claro-hover); border-color: var(--claro-hover); }

/* ---------- Encuadre imágenes ---------- */
.hero__bg,
.welcome__media img,
.about__media img,
.card__img,
.resources__media img,
.quote__avatar {
  background: var(--salvia-claro);   /* color mientras carga */
  object-fit: cover;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav--scrolled {
  background: rgb(var(--crema-rgb) / .92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--borde-oscuro);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--oliva-oscuro);
  text-decoration: none;
  margin-right: auto;
}
.nav__links { display: none; }
.nav__links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--oliva-oscuro);
  text-decoration: none;
}
.nav__links a:hover { color: var(--salvia); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) 0 48px;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  z-index: -1;
}
.hero .eyebrow { color: var(--oliva-oscuro); }
.hero__inner { text-shadow: 0 1px 10px rgb(var(--crema-rgb) / .9); }
.hero__title {
  font-size: 46px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.hero__tagline {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--texto-secundario);
  max-width: 30ch;
  margin: 0 auto 28px;
}

/* ============================================================
   BIENVENIDA
   ============================================================ */
.welcome { background: var(--salvia); color: var(--crema); }
.welcome .eyebrow { color: var(--crema); }
.welcome .section-title { color: var(--crema); }

.welcome__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.welcome__media img {
  width: 100%;
  height: 300px;
}
.welcome__content p { color: var(--texto-sobre-oscuro); }
.welcome__content .btn--outline {
  color: var(--crema);
  border-color: var(--crema);
}
.welcome__content .btn--outline:hover { background: var(--crema); color: var(--oliva-oscuro); }

/* Qué vas a encontrar */
.offer {
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid rgb(var(--crema-rgb) / .3);
}
.offer .eyebrow { color: var(--crema); }
.offer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
.offer__item h3 {
  font-size: 19px;
  color: var(--crema);
  margin-bottom: 6px;
}
.offer__item p {
  color: var(--texto-sobre-oscuro);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   SOBRE ELLA
   ============================================================ */
.about {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.about__media img {
  width: 100%;
  max-width: 340px;
  height: 400px;
  margin-inline: auto;
}
.about__content p { color: var(--texto-secundario); }
.about__sub {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 22px 0 10px;
  color: var(--oliva-oscuro);
}

/* ============================================================
   FRASE
   ============================================================ */
.quote-band {
  background: var(--oliva-oscuro);
  color: var(--crema);
  text-align: center;
}
.quote-band__text {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  max-width: 40ch;
  margin: 0 auto;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { background: var(--salvia-claro); }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 8px;
}
.card {
  background: var(--crema);
  border: 1px solid var(--borde-oscuro);
  padding: 18px;
}
.card__img {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
}
.card__title {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.card__text { color: var(--texto-secundario); margin: 0; }

/* ============================================================
   ENCUENTROS
   ============================================================ */
.resources { background: var(--oliva-oscuro); color: var(--crema); }
.resources .section-title { color: var(--crema); }
.resources__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.resources__media img {
  width: 100%;
  height: 260px;
}
.resources__content p { color: var(--texto-sobre-oscuro); }
.resources__next {
  font-size: 15px;
  padding: 12px 0;
  border-top: 1px solid var(--borde-claro);
  border-bottom: 1px solid var(--borde-claro);
  margin-bottom: 22px;
}
.resources__next strong { letter-spacing: .04em; }

/* ============================================================
   NOVEDADES
   ============================================================ */
.news { background: var(--crema); padding-block: 40px; }
.news__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.news__inner p {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  margin: 0;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials { background: var(--salvia); color: var(--crema); }
.testimonials .section-title { color: var(--crema); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 16px;
}
.quote {
  margin: 0;
  text-align: center;
  max-width: 40ch;
  margin-inline: auto;
}
.quote__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
}
.quote p {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--crema);
  margin-bottom: 10px;
}
.quote cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(var(--crema-rgb) / .8);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { background: var(--oliva-oscuro); color: var(--crema); text-align: center; }
.contact .section-title { color: var(--crema); }
.contact__text { color: var(--salvia-claro); font-size: 17px; margin-bottom: 26px; }

/* ============================================================
   FOOTER  (directiva Pixeleo)
   ============================================================ */
.footer {
  background: var(--oliva-oscuro);
  color: rgb(var(--crema-rgb) / .7);
  padding-block: 56px 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(var(--crema-rgb) / .15);
}
.footer__brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--crema);
  margin-bottom: 8px;
}
.footer__tagline { font-size: 14px; margin: 0; max-width: 34ch; }
.footer__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--crema);
  margin: 0 0 14px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: rgb(var(--crema-rgb) / .7);
  text-decoration: none;
}
.footer__links a:hover { color: var(--crema); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 24px;
  font-size: 12px;
  color: rgb(var(--crema-rgb) / .45);
}
.footer__bottom a { color: inherit; text-decoration: underline; }
.footer__bottom a:hover { color: rgb(var(--crema-rgb) / .8); }

.footer__malvinas {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: rgb(var(--crema-rgb) / .6);
}
.footer__malvinas-text {
  font-family: "Malvinas Sans", "Work Sans", sans-serif;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.footer__flag {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 18px;
  height: 13px;
  border-radius: 1px;
  flex-shrink: 0;
}
/* Bandera de Malvinas — FUERA del sistema de color, no tematizar */
.footer__flag span { flex: 1; }
.footer__flag span:nth-child(1),
.footer__flag span:nth-child(3) { background: #75AADB; }
.footer__flag span:nth-child(2) { background: #fff; }

.footer__note {
  font-size: 11px;
  color: rgb(var(--crema-rgb) / .35);
  margin: 10px 0 0;
}

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--oliva-oscuro);
  color: var(--crema);
  box-shadow: 0 6px 20px rgb(var(--oliva-oscuro-rgb) / .35);
  transition: background-color .18s ease, transform .18s ease;
}
.wa-float:hover { background: var(--oliva-hover); transform: translateY(-2px); }

@media (min-width: 680px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 680px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .offer__grid { grid-template-columns: repeat(3, 1fr); }
  .offer__item { padding-inline: 12px; }
  .offer__item + .offer__item { border-left: 1px solid rgb(var(--crema-rgb) / .3); }
  .news__inner { flex-direction: row; justify-content: center; gap: 26px; }
}

@media (min-width: 900px) {
  section { padding-block: 92px; }
  .nav__links { display: flex; gap: 26px; }

  .section-title { font-size: 30px; }
  .hero__title { font-size: 64px; }
  .hero__tagline { font-size: 21px; }

  .welcome__inner { flex-direction: row; align-items: center; gap: 56px; }
  .welcome__media { flex: 0 0 42%; }
  .welcome__media img { height: 460px; }
  .welcome__content { flex: 1 1 auto; }

  .about { flex-direction: row; align-items: flex-start; gap: 60px; }
  .about__media { flex: 0 0 340px; }
  .about__content { flex: 1 1 auto; padding-top: 6px; }

  .quote-band__text { font-size: 27px; }

  .resources__inner { flex-direction: row-reverse; align-items: center; gap: 56px; }
  .resources__media { flex: 0 0 46%; }
  .resources__media img { height: 380px; }
  .resources__content { flex: 1 1 auto; }
}
