/* =========================================================
   Ailina León — Espacios socioeducativos para la mujer
   Sistema de diseño · creativo-artístico, lila y calma
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, li { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;

  /* Color */
  --cream:      #FDF8F5;
  --cream-warm: #FBF3EE;
  --nude:       #F5E6E8;
  --lav-50:     #F8F2FC;
  --lav-100:    #E8D5F2;
  --lila:       #B794D4;
  --lila-soft:  #C9A0DC;
  --lila-deep:  #7B5AA6;   /* violeta del logotipo */
  --plum:       #4A3F5C;
  --ink:        #3D3A3A;
  --ink-soft:   #6B6467;
  --sage:       #A8C5B5;
  --sage-deep:  #4F7362;
  --white:      #FFFFFF;
  --line:       rgba(74, 63, 92, .14);

  /* Tipografía */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Escala fluida */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h4:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3:   clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2:   clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
  --fs-h1:   clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);

  /* Ritmo */
  --sp-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-lg: 26px;

  /* Sombra suave, nunca dura */
  --shadow-sm: 0 2px 10px rgba(74, 63, 92, .06);
  --shadow-md: 0 10px 34px rgba(74, 63, 92, .10);
  --shadow-lg: 0 24px 60px rgba(74, 63, 92, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--plum);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.24; }
h4 { font-size: var(--fs-h4); line-height: 1.35; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { color: var(--ink); }
a { color: var(--lila-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }

strong { font-weight: 600; color: var(--plum); }

:focus-visible {
  outline: 2px solid var(--lila-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--plum); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px; text-decoration: none; font-size: var(--fs-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.section--cream { background: var(--cream-warm); }
.section--lav { background: linear-gradient(170deg, var(--lav-50) 0%, var(--cream) 78%); }
.section--nude { background: linear-gradient(160deg, var(--nude) 0%, var(--cream) 82%); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* Encabezado de sección */
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lg); margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--lila-deep); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--lila); flex: none;
}
.center .eyebrow::after {
  content: ""; width: 30px; height: 1px; background: var(--lila); flex: none;
}

.lead { font-size: var(--fs-lg); color: var(--ink-soft); line-height: 1.75; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .015em;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--lila-deep); color: #fff; box-shadow: 0 8px 22px rgba(123, 90, 166, .26); }
.btn--primary:hover { background: var(--plum); color: #fff; box-shadow: 0 14px 30px rgba(74, 63, 92, .3); }

.btn--ghost { background: transparent; color: var(--plum); border-color: var(--lila); }
.btn--ghost:hover { background: var(--lav-100); color: var(--plum); }

.btn--light { background: #fff; color: var(--plum); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--lav-50); color: var(--plum); }

.btn--wa { background: var(--sage-deep); color: #fff; }
.btn--wa:hover { background: #3E5C4E; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Enlace con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--lila-deep);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- 6. Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 245, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(74, 63, 92, .05); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 78px; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: clamp(120px, 8vw, 130px); height: auto; }

.nav-menu { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  position: relative; font-size: var(--fs-sm); font-weight: 500; color: var(--plum);
  text-decoration: none; padding-block: .35rem;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--lila); transition: width .3s var(--ease);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--lila-deep); }

/* Único botón "Reservar sesión" en todo el DOM: es el último elemento del
   menú. En escritorio se ve en línea, compacto, junto a los enlaces; en
   móvil (más abajo) pasa a ocupar el ancho completo dentro del desplegable.
   Se sobrescribe el color heredado de `.nav-menu a` para que se vea lila
   con letras blancas, como el resto de botones primarios del sitio. */
.nav-menu .nav-btn,
.nav-menu .nav-btn:hover { color: #fff; padding: .6rem 1.2rem; font-size: .85rem; }
.nav-menu .nav-btn::after { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 50%; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 1.6px; background: var(--plum); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; margin-right: -.25rem; }
  .nav-menu {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 1.5rem 2rem 2.5rem 2.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100dvh - 78px); overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-menu .nav-btn {
    display: flex; justify-content: center; margin-top: 1.25rem; width: 100%;
    padding: .95rem 1.9rem; font-size: var(--fs-sm);
  }
}

@media (max-width: 380px) {
  .brand img { width: 100px; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 52vw; height: 52vw; max-width: 640px; max-height: 640px;
  right: -12vw; top: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(232, 213, 242, .85), rgba(232, 213, 242, 0) 68%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 34vw; height: 34vw; max-width: 400px; max-height: 400px;
  left: -10vw; bottom: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(245, 230, 232, .9), rgba(245, 230, 232, 0) 70%);
  border-radius: 50%; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1.03fr .97fr;
  gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--lila-deep); }
.hero .lead { max-width: 46ch; }
.hero .btn-row { margin-top: 2.1rem; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%;
  box-shadow: var(--shadow-lg);
}
.hero-media::before {
  content: ""; position: absolute; inset: -14px -14px auto auto;
  width: 100%; height: 100%;
  border: 1px solid var(--lila);
  border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%;
  opacity: .45; pointer-events: none;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.5rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lila); flex: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero-media img { aspect-ratio: 5 / 4; }
}

/* Hero interior (páginas secundarias) */
.page-hero {
  padding-block: clamp(3rem, 2.2rem + 3.5vw, 5.5rem) clamp(2.5rem, 2rem + 2.5vw, 4rem);
  background: linear-gradient(168deg, var(--lav-50) 0%, var(--cream) 76%);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -8vw; top: -10vw;
  width: 40vw; height: 40vw; max-width: 480px; max-height: 480px;
  background: radial-gradient(circle, rgba(232, 213, 242, .7), rgba(232, 213, 242, 0) 70%);
  border-radius: 50%; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 62ch; margin-top: 1.4rem; }

/* Migas */
.breadcrumb { font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: 1.4rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .45rem; opacity: .5; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--lila-deep); text-decoration: underline; }

/* ---------- 8. Rejillas y tarjetas ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(74, 63, 92, .07);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Tarjetas de Espacios (no las del blog, que ya son clicables por su
   propio enlace de imagen/título): toda la tarjeta es clicable, "estirando"
   el enlace "Ver más" para que cubra la tarjeta entera. */
.card:not(.post-card) { cursor: pointer; }
.card:not(.post-card) .link-arrow::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
}
.card-media { position: relative; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .7rem; }
.card-body p { color: var(--ink-soft); font-size: var(--fs-sm); }
.card-body .link-arrow { margin-top: auto; padding-top: 1.35rem; align-self: flex-start; }

.card-tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lila-deep);
  background: var(--lav-50); border-radius: 999px; padding: .35rem .85rem;
  margin-bottom: .9rem; align-self: flex-start;
}
.card-tag--sage { color: var(--sage-deep); background: rgba(168, 197, 181, .22); }

/* Tarjeta simple sin foto */
.tile {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
  border: 1px solid rgba(74, 63, 92, .07); box-shadow: var(--shadow-sm); height: 100%;
}
.tile h3 { margin-bottom: .75rem; }
.tile p { color: var(--ink-soft); font-size: var(--fs-sm); }
.tile-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lav-50); color: var(--lila-deep); margin-bottom: 1.25rem;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile--sage .tile-icon { background: rgba(168, 197, 181, .22); color: var(--sage-deep); }

/* Numeración de proceso */
.step { position: relative; padding-left: 3.75rem; }
.step-num {
  position: absolute; left: 0; top: -.15rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--lila-deep);
  background: #fff; border: 1px solid var(--lila);
}
.step h3 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- 9. Bloques media + texto ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.75rem); align-items: center;
}
.split--narrow-media { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) {
  .split, .split--narrow-media { grid-template-columns: 1fr; }
  .split .split-media { max-width: 520px; }
}

.split-media { position: relative; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.split-media--wide img { aspect-ratio: 4 / 3; }
.split-media--blob img { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
.split-media--frame::after {
  content: ""; position: absolute; left: -18px; bottom: -18px;
  width: 62%; height: 62%; border: 1px solid var(--lila);
  border-radius: var(--radius-lg); z-index: -1;
}

/* Lista con marca */
.check-list { display: grid; gap: .85rem; margin-top: 1.5rem; }
.check-list li {
  position: relative; padding-left: 1.9rem; color: var(--ink-soft); font-size: var(--fs-sm);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lila); box-shadow: 0 0 0 4px var(--lav-50);
}
.check-list--sage li::before { background: var(--sage); box-shadow: 0 0 0 4px rgba(168, 197, 181, .18); }

/* Formación / timeline */
.timeline { position: relative; padding-left: 2rem; display: grid; gap: 1.85rem; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -2rem; top: .55rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid var(--lila);
}
.timeline h4 { margin-bottom: .3rem; }
.timeline p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 10. Testimonios ---------- */
.quote {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  border: 1px solid rgba(74, 63, 92, .07); box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column;
}
.quote::before {
  content: "”"; font-family: var(--font-display); font-size: 3.4rem; line-height: .6;
  color: var(--lila); opacity: .55; margin-bottom: .9rem;
}
.quote blockquote { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--plum); }
.quote figcaption { margin-top: auto; padding-top: 1.4rem; font-size: var(--fs-xs); color: var(--ink-soft); letter-spacing: .04em; }

/* Cita destacada a ancho completo */
.pull-quote {
  text-align: center; max-width: 30ch; margin-inline: auto;
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.35rem);
  line-height: 1.34; color: var(--plum); font-style: italic;
}

/* ---------- 11. Banda CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band img.cta-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(74, 63, 92, .84) 0%, rgba(74, 63, 92, .58) 55%, rgba(123, 90, 166, .48) 100%);
}
.cta-band .wrap { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { max-width: 55ch; margin: 1.1rem auto 0; opacity: .93; font-size: var(--fs-lg); }
.cta-band .eyebrow { color: var(--lav-100); }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: rgba(232, 213, 242, .6); }
.cta-band .btn-row { justify-content: center; margin-top: 2.25rem; }

/* ---------- 12. Blog ---------- */
.post-card { background: transparent; border: 0; box-shadow: none; }
.post-card:hover { transform: translateY(-4px); box-shadow: none; }
.post-card .card-media img { border-radius: var(--radius); aspect-ratio: 16 / 11; }
.post-card .card-body { padding: 1.15rem 0 0; }
.post-card h3 { font-size: var(--fs-h4); font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.post-meta { font-size: var(--fs-xs); color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .6rem; }
.post-meta span + span::before { content: "·"; margin-inline: .5rem; opacity: .6; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.75rem; }
.filters button, .filters a {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; text-decoration: none; transition: all .25s var(--ease);
}
.filters button:hover, .filters a:hover { border-color: var(--lila); color: var(--lila-deep); }
.filters button.is-active { background: var(--lila-deep); border-color: var(--lila-deep); color: #fff; }

/* Artículo */
.article { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) var(--sp-section); }
.article-body { font-size: var(--fs-lg); line-height: 1.82; }
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 { margin-top: 3.25rem; font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.15rem); }
.article-body h3 { margin-top: 2.5rem; font-size: var(--fs-h3); }
.article-body ul, .article-body ol { padding-left: 1.3rem; display: grid; gap: .7rem; }
.article-body li { color: var(--ink); }
.article-body ul li::marker { color: var(--lila); }
.article-body ol li::marker { color: var(--lila-deep); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--lila); padding: .3rem 0 .3rem 1.5rem;
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5;
  color: var(--plum); font-style: italic;
}
.article-body figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.article-body figcaption { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: .75rem; text-align: center; }
.article-body a { text-decoration: underline; }

.article-hero img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

.toc {
  background: var(--lav-50); border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem; margin-block: 2.5rem;
}
.toc h2 { font-size: var(--fs-h4) !important; font-family: var(--font-body); font-weight: 600; margin: 0 0 .9rem !important; }
.toc ol { padding-left: 1.15rem; display: grid; gap: .5rem; }
.toc a { font-size: var(--fs-sm); color: var(--plum); text-decoration: none; }
.toc a:hover { color: var(--lila-deep); text-decoration: underline; }

.article-cta {
  margin-top: 3.5rem; padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.75rem);
  background: linear-gradient(150deg, var(--lav-50), var(--nude));
  border-radius: var(--radius-lg); text-align: center;
}
.article-cta h3 { margin-bottom: .8rem; }
.article-cta p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.article-cta .btn { margin-top: 1.5rem; }

.author-box {
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.author-box img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 52ch; }
.author-box strong { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .3rem; }

/* ---------- 13. Acordeón (FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-h4); color: var(--plum);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.4rem; font-weight: 300;
  color: var(--lila-deep); line-height: 1; flex: none; transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 1.5rem; color: var(--ink-soft); font-size: var(--fs-sm); max-width: 68ch; }
.accordion .acc-body > * + * { margin-top: .85rem; }

/* ---------- 14. Formularios ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 1.3rem + 1.5vw, 2.75rem);
  box-shadow: var(--shadow-md); border: 1px solid rgba(74, 63, 92, .07);
}
.field { display: grid; gap: .45rem; margin-bottom: 1.25rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--plum); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; font-size: var(--fs-sm);
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: #fff;
  border-color: var(--lila); box-shadow: 0 0 0 3px rgba(183, 148, 212, .18);
}
.field input::placeholder, .field textarea::placeholder { color: #A9A2A6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.consent { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.6rem; }
.consent input { width: 18px; height: 18px; margin-top: .25rem; flex: none; accent-color: var(--lila-deep); }
.consent label { font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.6; font-weight: 400; }

.form-status { margin-top: 1.1rem; font-size: var(--fs-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: var(--sage-deep); }
.form-status.is-error { color: #A4453F; }

/* Datos de contacto */
.contact-list { display: grid; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .tile-icon { margin-bottom: 0; width: 44px; height: 44px; flex: none; }
.contact-item .tile-icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin-bottom: .2rem; }
.contact-item a, .contact-item p { font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; }
.contact-item a:hover { color: var(--lila-deep); text-decoration: underline; }

/* ---------- 15. Pie ---------- */
.site-footer {
  background: var(--plum); color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 2.4rem + 2.5vw, 4.75rem) 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
  gap: clamp(1.75rem, 3vw, 3.25rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { width: 190px; background: rgba(253, 248, 245, .96); border-radius: 16px; padding: 1rem 1.1rem; }
.footer-brand p { margin-top: 1.25rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); max-width: 34ch; }

.site-footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.15rem; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: var(--fs-sm); }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.social { display: flex; gap: .7rem; margin-top: 1.35rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
.social svg { width: 18px; height: 18px; }

.footer-bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; justify-content: space-between;
  font-size: var(--fs-xs); color: #fff;
}
.footer-bottom a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- 16. Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- 17. Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 18. Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* Ondas decorativas entre secciones */
.wave { display: block; width: 100%; height: auto; color: var(--cream-warm); }
.wave--up { transform: rotate(180deg); }

/* Impresión */
@media print {
  .site-header, .site-footer, .wa-float, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
