/* ==========================================================================
   El Arte de Facturar con Conciencia — hoja de estilos compartida
   Paleta: azul clínico + verde manzana sobre blanco.
   Funciona sobre el HTML semántico de las 8 páginas; las clases extra
   (hero, circuito, historia, modalidad, precio, faq, cta, btn) son opcionales
   y se documentan abajo.
   ========================================================================== */

:root {
  --ink: #12304B;          /* títulos, fondos oscuros */
  --text: #2F4A63;         /* texto corrido */
  --blue: #2C72B3;         /* acción principal */
  --blue-dark: #1E5A94;
  --mist: #E9F2FB;         /* paneles suaves */
  --line: #D3E3F2;
  --route: #B9D3EA;        /* línea del circuito */
  --green: #8CC63F;        /* verde manzana (rellenos, acentos) */
  --green-deep: #3D7A18;   /* verde para foco / texto sobre blanco */

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Lora", Georgia, serif;

  --wrap: 1120px;
  --pad-x: max(1.25rem, calc((100% - var(--wrap)) / 2));

  --wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.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.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%238CC63F'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 8.8' fill='none' stroke='%2312304B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%2312304B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font); text-wrap: balance; }
p { margin: 0 0 1.1rem; max-width: 62ch; }
strong { color: var(--ink); font-weight: 700; }
a {
  color: var(--blue-dark);
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

/* ---------- Botón (WhatsApp) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(44, 114, 179, .8);
  transition: background .2s, transform .2s;
}
.btn::before {
  content: ""; flex: none; width: 1.4rem; height: 1.4rem;
  background: currentColor;
  -webkit-mask: var(--wa) center / contain no-repeat;
          mask: var(--wa) center / contain no-repeat;
}
.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
@media (min-width: 600px) { .btn { width: auto; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--pad-x);
  background: linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,0));
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand-logo {
  width: 3rem; height: 3rem; flex: none;
  padding: .2rem; border-radius: 50%; background: #fff; object-fit: contain;
  box-shadow: 0 2px 10px rgba(18, 48, 75, .18);
}
.brand-name {
  max-width: 9.5rem;
  font: italic 500 1.02rem/1.2 var(--font-serif);
  color: var(--ink);
}

.nav-toggle {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 12px; background: var(--mist); color: var(--ink); cursor: pointer;
}
.menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: .5rem var(--pad-x) 1.5rem;
  background: #fff;
  box-shadow: 0 18px 30px -20px rgba(18, 48, 75, .35);
  gap: 1.25rem;
}
.site-header.is-open .menu { display: grid; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.menu nav a[aria-current="page"] { color: var(--blue-dark); }

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .menu {
    display: flex; position: static; align-items: center; gap: 1.5rem;
    padding: 0; background: none; box-shadow: none;
  }
  .site-header.is-open .menu { display: flex; }
  .menu nav { flex-direction: row; gap: 1.35rem; }
  .menu nav a { padding: .4rem 0; border: 0; font-size: .92rem; font-weight: 500; }
  .menu nav a:hover, .menu nav a[aria-current="page"] {
    text-decoration: underline; text-decoration-color: var(--green);
    text-decoration-thickness: 2px; text-underline-offset: .4em;
  }
  .menu .btn { padding: .7rem 1.1rem; font-size: .92rem; border-radius: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 8rem var(--pad-x) 3.5rem;
  background: linear-gradient(180deg, var(--mist), #fff);
}
.hero:has(.hero-media) { padding-top: clamp(20rem, 80vw, 28rem); }
.hero > :not(.hero-media) { position: relative; }

/* La foto se funde con el blanco hacia abajo, como en el boceto */
.hero-media {
  position: absolute; inset: 0 0 auto 0; margin: 0;
  height: calc(clamp(20rem, 80vw, 28rem) + 7rem);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
          mask-image: linear-gradient(#000 62%, transparent);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 15%; }

.hero h1 {
  max-width: 17ch; margin-bottom: 1.1rem;
  font-size: clamp(2.2rem, 7vw, 3.7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.02em;
}
.hero p:first-of-type { font-size: 1.2rem; color: var(--ink); }
.hero .btn { margin-top: .75rem; }

@media (min-width: 900px) {
  .hero { min-height: 41rem; display: flex; flex-direction: column; justify-content: center; padding: 9rem var(--pad-x) 5rem; }
  .hero:has(.hero-media) { padding-top: 9rem; }
  .hero > :not(.hero-media) { max-width: 34rem; }
  .hero .btn { align-self: flex-start; }
  .hero-media {
    inset: 0 0 0 auto; width: 62%; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to top, transparent, #000 16%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent, #000 40%), linear-gradient(to top, transparent, #000 16%);
            mask-composite: intersect;
  }
}

/* ---------- Secciones ---------- */
main > section:not(.hero) { padding: clamp(2.75rem, 6.5vw, 4.5rem) var(--pad-x); }
main > section:not(.hero) > h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em;
}
main > section > :last-child { margin-bottom: 0; }

/* Escritorio: el título queda fijo a la izquierda mientras se lee el contenido */
@media (min-width: 900px) {
  main > section:not(.hero) {
    display: grid; align-items: start;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }
  main > section:not(.hero) > * { grid-column: 2; }
  main > section:not(.hero) > h2 {
    grid-column: 1; grid-row: 1 / span 12;
    position: sticky; top: 6.5rem; max-width: 16ch; margin: 0;
  }
}

/* Listas */
main section ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
main section li { margin-bottom: .6rem; padding-left: .25rem; max-width: 62ch; }
main section li::marker { color: var(--green-deep); }

/* ---------- Circuito de módulos (ul.circuito) ---------- */
.circuito { list-style: none; padding: 0; margin: 1.5rem 0; }
.circuito li { position: relative; margin: 0; padding: 0 0 1.9rem 3rem; max-width: none; }
.circuito li:last-child { padding-bottom: 0; }
.circuito li::before {            /* estación */
  content: ""; position: absolute; left: .45rem; top: .35rem; z-index: 1;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fff; border: 4px solid var(--green);
}
.circuito li::after {             /* tramo hacia la siguiente estación */
  content: ""; position: absolute; left: calc(1rem - 2px); top: 1.45rem; bottom: -.35rem;
  width: 4px; border-radius: 4px; background: var(--route);
}
.circuito li:last-child::after { display: none; }
.circuito li:last-child::before { /* llegada: cobranza */
  left: .2rem; top: .05rem; width: 1.6rem; height: 1.6rem; border: 0;
  background: var(--check) center / contain no-repeat;
}
.circuito strong { display: block; margin-bottom: .2rem; font-size: 1.12rem; line-height: 1.3; }

/* ---------- Historia de Elizabeth (section.historia) ---------- */
.historia { background: var(--mist); }
.historia > p:first-of-type {
  max-width: none;
  font: 500 clamp(1.2rem, 2.2vw, 1.42rem)/1.55 var(--font-serif);
  color: var(--ink);
}

/* ---------- Modalidad (section.modalidad) ---------- */
.media { margin: 1.5rem 0; }
.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding: 0 0 0 2.4rem !important; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .12rem; width: 1.5rem; height: 1.5rem;
  background: var(--check) center / contain no-repeat;
}

/* ---------- Precio (section.precio): tarjeta como en el boceto ---------- */
.precio { margin: 0 clamp(1rem, 3vw, 2.5rem); border-radius: 28px; background: var(--mist); }
.precio .btn { margin-top: .5rem; }

/* ---------- FAQ (section.faq con <details>) ---------- */
.faq details { border-bottom: 1px solid var(--line); max-width: 46rem; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; text-wrap: pretty; }
.faq summary::after {
  content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--mist) var(--plus) center / 1rem no-repeat;
  transition: transform .2s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green); }
.faq details p { padding-bottom: 1.25rem; margin: 0; }

/* ---------- Cierre (section.cta) ---------- */
.cta { margin-top: clamp(2rem, 5vw, 4rem); background: var(--ink); color: #D4E3F1; }
.cta h2 { color: #fff; }
.cta .btn { background: var(--green); color: var(--ink); box-shadow: none; }
.cta .btn:hover { background: #A5DB5C; color: var(--ink); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid; gap: 1.25rem;
  padding: 3rem var(--pad-x) 4rem;
  font-size: .95rem;
}
.site-footer p { margin: 0; }
.site-footer .footer-brand { font: italic 500 1.15rem/1.3 var(--font-serif); color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: var(--ink); font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
@media (min-width: 900px) {
  .site-footer { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer nav { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; max-width: 30rem; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
