/* ============================================
   Habito de Cambio - Escuela de Consciencia
   Theme stylesheet · port del bundle Claude Design site.css
   v1.0.0 · @import removido (font cargada via wp_enqueue)
   ============================================ */

:root {
  /* 60 — base */
  --white: #ffffff;
  --cream: #faf8f3;
  --cream-deep: #f3eee2;

  /* 30 — protagonist */
  --bosque: #004445;
  --bosque-soft: #0a5556;

  /* 10 — accents */
  --salvia: #a0b084;
  --salvia-light: #c8d2b6;
  --salvia-pale: #eaeee0;
  --arcilla: #b38867;
  --arena: #c0b283;

  /* text */
  --ink: #2a2a26;       /* near-black warm */
  --ink-soft: #4a4a44;
  --ink-mute: #7a7a72;
  --hairline: #d9d4c5;
  --hairline-soft: #ece8db;

  /* type */
  --serif: 'Old Standard TT', 'Times New Roman', serif;

  /* rhythm */
  --max: 1280px;
  --read: 64ch;
  --section-y: clamp(80px, 12vw, 160px);
  --section-y-sm: clamp(56px, 8vw, 96px);
}

/* reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* type primitives */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--arcilla);
  font-style: normal;
}
.serif-italic { font-style: italic; }
.muted { color: var(--ink-mute); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--bosque); margin: 0; line-height: 1.12; letter-spacing: -0.005em; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
h4 { font-size: clamp(18px, 2vw, 22px); }
p  { margin: 0 0 1.1em; max-width: var(--read); text-wrap: pretty; }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.wrap-text { max-width: 680px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap, .wrap-narrow, .wrap-text { padding: 0 22px; } }

section { padding: var(--section-y) 0; }
section.tight { padding: var(--section-y-sm) 0; }

.center { text-align: center; }

/* hairline */
.hr { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.hr-soft { height: 1px; background: var(--hairline-soft); border: 0; margin: 0; }

/* CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--bosque);
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease;
  border: 1px solid var(--bosque);
}
.btn:hover { background: var(--bosque-soft); }
.btn--outline {
  background: transparent;
  color: var(--bosque);
}
.btn--outline:hover { background: var(--bosque); color: var(--white); }
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn--ghost-light:hover { background: var(--white); color: var(--bosque); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bosque);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
  transition: color .2s, border-color .2s;
}
.link:hover { color: var(--arcilla); border-color: var(--arcilla); }
.link--soft { color: var(--ink-soft); border-color: var(--hairline-soft); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-light {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--hairline-soft);
  padding: 16px 32px;
}
/* FIX bug del bundle: la regla agrupada original aplicaba background-color
   bosque al .brand y .nav a (texto bosque sobre fondo bosque = invisible).
   Separamos: brand/nav solo color · burger span sí background. */
.site-header.is-light .brand,
.site-header.is-scrolled .brand,
.site-header.is-light .nav a,
.site-header.is-scrolled .nav a { color: var(--bosque); }
.site-header.is-light .burger span,
.site-header.is-scrolled .burger span { background: var(--bosque); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand .iso-img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer .brand .iso-img { width: 44px; height: 44px; }
.brand .name { display: flex; flex-direction: column; }
.brand .name small { font-size: 9px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 4px; opacity: 0.85; }

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
}

.burger {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.burger span {
  position: absolute; left: 4px; right: 4px;
  height: 1px; background: var(--white);
  transition: transform .25s, opacity .2s;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 19px; }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 60;
  transform: translateY(-100%);
  transition: transform .35s ease;
  display: flex; flex-direction: column;
  padding: 80px 32px 32px;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__close {
  position: absolute; top: 22px; right: 22px;
  width: 36px; height: 36px;
  font-size: 22px; color: var(--bosque);
}
.mobile-nav a {
  display: block;
  padding: 22px 0;
  font-size: 26px;
  color: var(--bosque);
  border-bottom: 1px solid var(--hairline-soft);
  font-style: italic;
}
.mobile-nav a.is-active { font-weight: 700; font-style: normal; }

@media (max-width: 1180px) {
  .brand .name small { display: none; }
  .nav { gap: 26px; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-header { padding: 18px 22px; }
}

/* ============ FLOATING WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  color: white;
  display: grid; place-items: center;
  z-index: 40;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bosque);
  color: var(--cream);
  padding: 96px 0 0;
}
.site-footer .quote-strip {
  text-align: center;
  font-style: italic;
  font-size: 18px;
  color: var(--arena);
  padding: 0 32px 64px;
  letter-spacing: 0.01em;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--arena);
  margin: 0 0 22px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 7px 0; font-size: 15px; color: rgba(255,255,255,0.78); }
.site-footer li a:hover { color: var(--white); }
.site-footer .col-brand .brand { color: var(--white); margin-bottom: 22px; }
.site-footer .col-brand p { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 32ch; line-height: 1.7; }
.site-footer .legal {
  padding: 26px 0 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  letter-spacing: 0.02em;
}
.site-footer .legal a { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 2px; }
@media (max-width: 860px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}
@media (max-width: 540px) {
  .site-footer .grid { grid-template-columns: 1fr; }
  .site-footer .legal { justify-content: center; text-align: center; }
}

/* ============ SHARED COMPONENTS ============ */

/* Page hero (small, used on inner pages) */
.page-hero {
  padding: 200px 0 var(--section-y-sm);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { display: block; margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 24px; max-width: 18ch; }
.page-hero p.lede { font-style: italic; font-size: 22px; color: var(--ink-soft); max-width: 38ch; margin: 0; }
.page-hero .img {
  margin-top: 72px;
  height: clamp(280px, 36vw, 480px);
  background-size: cover;
  background-position: center;
}

/* Pillar strip */
.pillar-strip {
  background: var(--salvia-pale);
  padding: clamp(70px, 9vw, 110px) 32px;
  text-align: center;
}
.pillar-strip .words {
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--bosque);
  letter-spacing: 0.04em;
}
.pillar-strip .words span { display: inline-block; padding: 0 18px; }
.pillar-strip .words .dot { color: var(--salvia); padding: 0; }

/* Quote full-bleed */
.quote-bleed {
  background: var(--bosque);
  color: var(--cream);
  padding: clamp(56px, 7vw, 84px) 32px;
  text-align: center;
}
.quote-bleed blockquote {
  margin: 0 auto;
  max-width: 44ch;
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(250, 248, 243, 0.92);
}
.quote-bleed.with-author cite {
  display: block;
  margin-top: 36px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--arena);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Forms */
.field { display: block; margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--bosque); }
.field textarea { resize: vertical; min-height: 110px; }

/* Cards */
.card-img {
  aspect-ratio: 4 / 5;
  background-color: var(--cream-deep);
  background-size: cover;
  background-position: center;
  margin-bottom: 26px;
}

/* Two-line vertical separator */
.v-sep { width: 1px; background: var(--salvia); align-self: stretch; }

/* utility */
.flex { display: flex; }
.gap-32 { gap: 32px; }
.center-x { margin-left: auto; margin-right: auto; }

/* ============================================================
   OVERRIDES theme custom · ajustes preferencia Erick + WordPress integration
   ============================================================ */

/* Texto más horizontal (lecciones de Ailing v4) */
.wrap-text { max-width: 1100px; }
.wrap-narrow { max-width: 1200px; }

/* H1/H2 dentro de wraps · sin max-width artificial */
.wrap-text h1,
.wrap-text h2,
.wrap-narrow h1,
.wrap-narrow h2 { max-width: 100%; }

/* Isotipo: footer siempre blanco (sobre bg bosque) + header HOME blanco (sobre hero oscuro) */
.site-footer .iso-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.site-header:not(.is-light):not(.is-scrolled) .iso-img {
    filter: brightness(0) invert(1);
}

/* Imágenes responsive defensivo */
img { max-width: 100%; height: auto; }

/* Body padding-top para compensar header fixed (excepto en HOME donde hero es full-bleed) */
body:not(.home) {
    /* el page-hero ya tiene padding-top suficiente · no agregamos extra */
}

/* WordPress admin bar compensación */
body.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}


/* ============================================================
 * PAGE-SPECIFIC CSS · generado por extract-pages.py (Fase 2)
 * Cada bloque scoped con body.page-{slug} para evitar colisiones
 * ============================================================ */


/* ===== PAGE-SPECIFIC: home ===== */
body.page-home /* ===== Page-1-only styles ===== */

  /* Hero full-bleed */
  .home-hero {
    position: relative;
    min-height: 100vh;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: clamp(80px, 12vh, 140px);
  }body.page-home .home-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1499209974431-9dddce.jpg');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
  }body.page-home .home-hero::after {
    content: "";
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(0,40,42,0.45) 0%, rgba(0,40,42,0.05) 30%, rgba(0,40,42,0.55) 100%);
    z-index: 1;
  }body.page-home .home-hero .inner {
    position: relative; z-index: 2;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px;
  }body.page-home .home-hero h1 {
    color: var(--white);
    max-width: 14ch;
    font-size: clamp(40px, 6.4vw, 88px);
    line-height: 1.05;
    text-shadow: 0 2px 24px rgba(0,0,0,0.18);
    margin-bottom: 28px;
  }body.page-home .home-hero .lede {
    font-style: italic;
    font-size: clamp(17px, 1.7vw, 22px);
    color: rgba(255,255,255,0.94);
    max-width: 50ch;
    margin: 0 0 44px;
  }body.page-home .home-hero .scroll-ind {
    position: absolute;
    left: 50%; bottom: 32px;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255,255,255,0.85);
  }body.page-home .home-hero .scroll-ind small {
    display: block;
    font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
    margin-bottom: 12px;
  }body.page-home .home-hero .scroll-ind .line {
    width: 1px; height: 56px;
    background: rgba(255,255,255,0.6);
    margin: 0 auto;
    opacity: 0.7;
  }body.page-home /* Section 2 — Avales strip */
  .avales {
    padding: clamp(56px, 6vw, 88px) 0;
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
  }body.page-home .avales .row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 32px;
    filter: grayscale(1);
    opacity: 0.78;
  }body.page-home .aval {
    text-align: center;
    color: var(--ink-mute);
    font-family: var(--serif);
    line-height: 1.1;
  }body.page-home .aval .mark {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 6px;
    font-style: italic;
  }body.page-home .aval .label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute); }@media (max-width: 760px) {
    .avales .row { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  }body.page-home /* Section 3 — Para quién */
  .audience {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
  }body.page-home .audience .col { padding: 0 56px; }body.page-home .audience .col:first-child { padding-left: 0; }body.page-home .audience .col:last-child { padding-right: 0; }body.page-home .audience .v-sep { background: var(--salvia); width: 1px; }body.page-home .audience h3 { margin-bottom: 28px; }body.page-home .audience .eyebrow { display: block; margin-bottom: 16px; }@media (max-width: 800px) {
    .audience { grid-template-columns: 1fr; }
    .audience .v-sep { width: 100%; height: 1px; margin: 56px 0; }
    .audience .col { padding: 0 !important; }
  }body.page-home /* Section 4 — Metodología */
  .method-h { text-align: center; max-width: 22ch; margin: 0 auto 80px; }body.page-home .method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    position: relative;
  }body.page-home .method-grid::before {
    content: "";
    position: absolute;
    top: 30px; left: 8%; right: 8%;
    height: 1px; background: var(--hairline);
    z-index: 0;
  }body.page-home .method-step { position: relative; z-index: 1; background: var(--white); padding-right: 12px; }body.page-home .method-step .num {
    font-family: var(--serif); font-weight: 700; font-style: italic;
    font-size: 56px; color: var(--salvia); line-height: 1;
    margin-bottom: 22px;
  }body.page-home .method-step h4 { margin-bottom: 14px; max-width: 16ch; }body.page-home .method-step p { font-size: 16px; color: var(--ink-soft); margin: 0; }@media (max-width: 800px) {
    .method-grid { grid-template-columns: 1fr; gap: 56px; }
    .method-grid::before { display: none; }
  }body.page-home .method-cta { text-align: center; margin-top: 80px; }body.page-home /* Section 5 — Sobre Ailing preview */
  .ailing-preview { background: var(--cream); }body.page-home .ailing-preview .grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 80px;
    align-items: center;
  }body.page-home .ailing-preview .portrait {
    aspect-ratio: 4 / 5;
    background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1573496359142-b8d877-scaled.jpg');
    background-size: cover;
    background-position: center;
  }body.page-home .ailing-preview .eyebrow { display: block; margin-bottom: 14px; }body.page-home .ailing-preview h2 { margin-bottom: 8px; }body.page-home .ailing-preview .role { font-style: italic; color: var(--arcilla); font-size: 18px; margin-bottom: 32px; }body.page-home .ailing-preview p { font-size: 17px; color: var(--ink-soft); }@media (max-width: 800px) {
    .ailing-preview .grid { grid-template-columns: 1fr; gap: 48px; }
  }body.page-home /* Section 7 — Certifications */
  .certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 72px;
  }body.page-home .cert-card .eyebrow { display: block; margin-bottom: 10px; }body.page-home .cert-card h3 { font-size: 26px; margin-bottom: 16px; }body.page-home .cert-card p { font-size: 16px; color: var(--ink-soft); margin-bottom: 24px; }body.page-home .cert-card .c1 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1544716278-ca5e3f4ab.jpg'); }body.page-home .cert-card .c2 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1455390582262-044cde.jpg'); }body.page-home .cert-card .c3 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1490578474895-699cd4.jpg'); }@media (max-width: 800px) {
    .certs-grid { grid-template-columns: 1fr; gap: 56px; }
  }body.page-home /* Final CTA */
  .final-cta { background: var(--cream); text-align: center; }body.page-home .final-cta h2 { margin-bottom: 18px; }body.page-home .final-cta p { margin: 0 auto 40px; font-size: 18px; color: var(--ink-soft); font-style: italic; }

/* ===== PAGE-SPECIFIC: la-escuela ===== */
body.page-la-escuela /* Hero (small) */
  .escuela-hero {
    padding: 180px 0 0;
    background: var(--cream);
  }body.page-la-escuela .escuela-hero .inner { max-width: var(--max); margin: 0 auto; padding: 0 32px 80px; }body.page-la-escuela .escuela-hero .eyebrow { display: block; margin-bottom: 22px; }body.page-la-escuela .escuela-hero h1 { max-width: 18ch; margin-bottom: 28px; }body.page-la-escuela .escuela-hero p.lede { font-style: italic; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink-soft); max-width: 38ch; margin: 0; }body.page-la-escuela .escuela-hero .img {
    margin-top: 80px;
    height: clamp(320px, 42vw, 560px);
    background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1457369804613-52c61a.jpg');
    background-size: cover;
    background-position: center;
  }body.page-la-escuela /* Quiénes somos */
  .quienes p { font-size: 18px; line-height: 1.85; color: var(--ink-soft); }body.page-la-escuela .quienes p:first-of-type::first-letter {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 76px;
    line-height: 0.85;
    float: left;
    margin: 6px 14px 0 0;
    color: var(--bosque);
  }body.page-la-escuela /* Proceso formativo (5 etapas verticales) */
  .proceso { background: var(--cream); }body.page-la-escuela .proceso h2 { margin-bottom: 64px; max-width: 22ch; }body.page-la-escuela .etapa {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid var(--hairline);
    align-items: start;
  }body.page-la-escuela .etapa:last-child { border-bottom: 1px solid var(--hairline); }body.page-la-escuela .etapa .num {
    font-family: var(--serif); font-style: italic; font-weight: 700;
    color: var(--salvia); font-size: 48px; line-height: 1;
  }body.page-la-escuela .etapa h4 { margin-bottom: 12px; }body.page-la-escuela .etapa p { font-size: 16px; color: var(--ink-soft); margin: 0; }@media (max-width: 720px) {
    .etapa { grid-template-columns: 1fr; gap: 14px; }
    .etapa .num { font-size: 36px; }
  }body.page-la-escuela /* Certificaciones expandidas */
  .cert-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    padding: 64px 0;
    border-top: 1px solid var(--hairline);
    align-items: start;
  }body.page-la-escuela .cert-row:last-child { border-bottom: 1px solid var(--hairline); }body.page-la-escuela .cert-row .img {
    aspect-ratio: 4/3;
    background-size: cover; background-position: center;
  }body.page-la-escuela .cert-row .ci1 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1544716278-ca5e3f4ab.jpg'); }body.page-la-escuela .cert-row .ci2 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1455390582262-044cde.jpg'); }body.page-la-escuela .cert-row .ci3 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1490578474895-699cd4.jpg'); }body.page-la-escuela .cert-row .eyebrow { display: block; margin-bottom: 12px; }body.page-la-escuela .cert-row h3 { margin-bottom: 18px; }body.page-la-escuela .cert-row p { color: var(--ink-soft); font-size: 16px; }body.page-la-escuela .cert-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline-soft);
  }body.page-la-escuela .cert-meta dt { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }body.page-la-escuela .cert-meta dd { margin: 0; font-style: italic; color: var(--bosque); }@media (max-width: 800px) {
    .cert-row { grid-template-columns: 1fr; gap: 36px; }
    .cert-meta { grid-template-columns: 1fr; gap: 18px; }
  }body.page-la-escuela /* Diferenciadores 2x2 */
  .diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 80px;
    margin-top: 64px;
  }body.page-la-escuela .diff h4 { margin-bottom: 12px; }body.page-la-escuela .diff p { color: var(--ink-soft); font-size: 16px; margin: 0; }body.page-la-escuela .diff .eyebrow { display: block; margin-bottom: 14px; color: var(--salvia); }@media (max-width: 720px) { .diff-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ===== PAGE-SPECIFIC: sobre-ailing ===== */
body.page-sobre-ailing .ailing-hero {
    padding: 180px 0 0;
    background: var(--cream);
  }body.page-sobre-ailing .ailing-hero .grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 32px 32px 0;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: center;
    min-height: 0;
  }body.page-sobre-ailing .ailing-hero .text { padding-bottom: 0; padding-top: 0; }body.page-sobre-ailing .ailing-hero .eyebrow { display: block; margin-bottom: 22px; }body.page-sobre-ailing .ailing-hero h1 { font-size: clamp(50px, 7vw, 96px); margin-bottom: 16px; }body.page-sobre-ailing .ailing-hero .role { font-style: italic; color: var(--arcilla); font-size: clamp(18px, 1.8vw, 22px); }body.page-sobre-ailing .ailing-hero .portrait {
    aspect-ratio: 4 / 5;
    background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1573497019940-1c28c8-scaled.jpg');
    background-size: cover;
    background-position: center;
  }@media (max-width: 800px) {
    .ailing-hero .grid { grid-template-columns: 1fr; gap: 48px; }
    .ailing-hero .text { padding-bottom: 0; }
  }body.page-sobre-ailing /* Editorial body */
  .editorial p { font-size: 18px; line-height: 1.85; color: var(--ink-soft); }body.page-sobre-ailing .editorial p:first-of-type::first-letter {
    font-family: var(--serif); font-weight: 700;
    font-size: 88px; line-height: 0.85;
    float: left; margin: 8px 16px 0 0;
    color: var(--bosque);
  }body.page-sobre-ailing .editorial em { color: var(--bosque); font-style: italic; }body.page-sobre-ailing /* Trayectoria list */
  .traj { background: var(--cream); }body.page-sobre-ailing .traj h2 { margin-bottom: 56px; max-width: 22ch; }body.page-sobre-ailing .traj-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--hairline);
    align-items: baseline;
  }body.page-sobre-ailing .traj-row:last-child { border-bottom: 1px solid var(--hairline); }body.page-sobre-ailing .traj-row .num {
    font-family: var(--serif); font-style: italic; color: var(--salvia); font-size: 22px;
  }body.page-sobre-ailing .traj-row h4 { font-size: 22px; margin: 0; }body.page-sobre-ailing .traj-row p { color: var(--ink-soft); font-size: 16px; margin: 0; }@media (max-width: 720px) {
    .traj-row { grid-template-columns: 1fr; gap: 8px; }
  }body.page-sobre-ailing /* Filosofía quotes */
  .filo h2 { text-align: center; margin: 0 auto 72px; max-width: 22ch; }body.page-sobre-ailing .filo-quote {
    max-width: 860px; margin: 0 auto 88px;
    text-align: center;
    padding: 0 32px;
  }body.page-sobre-ailing .filo-quote blockquote {
    font-style: italic; font-size: clamp(24px, 3vw, 38px);
    color: var(--bosque); line-height: 1.35;
    margin: 0 0 22px;
  }body.page-sobre-ailing .filo-quote cite {
    font-style: normal; font-size: 11px; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--arcilla);
  }body.page-sobre-ailing .filo-quote.with-line::before {
    content: ""; display: block; width: 40px; height: 1px;
    background: var(--salvia); margin: 0 auto 32px;
  }body.page-sobre-ailing /* Galería asimétrica */
  .galeria { background: var(--cream); }body.page-sobre-ailing .galeria h2 { margin-bottom: 56px; }body.page-sobre-ailing .galeria-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
    gap: 16px;
  }body.page-sobre-ailing .gi { background-size: cover; background-position: center; background-color: var(--cream-deep); }body.page-sobre-ailing .gi.g1 { grid-column: span 3; grid-row: span 3; background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1494790108377-be9c29-scaled.jpg'); }body.page-sobre-ailing .gi.g2 { grid-column: span 3; grid-row: span 2; background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1481627834876-b7833e.jpg'); }body.page-sobre-ailing .gi.g3 { grid-column: span 2; grid-row: span 2; background-image: url('https://images.unsplash.com/photo-1503467913725-b8c92eef1d99?auto=format&fit=crop&w=1200&q=80'); }body.page-sobre-ailing .gi.g4 { grid-column: span 1; grid-row: span 2; background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1516627145497-ae6968.jpg'); }body.page-sobre-ailing .gi.g5 { grid-column: span 2; grid-row: span 3; background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1492446845049-9c50cc-scaled.jpg'); }body.page-sobre-ailing .gi.g6 { grid-column: span 4; grid-row: span 2; background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1470137237906-d8a4f7-scaled.jpg'); }@media (max-width: 720px) {
    .galeria-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
    .gi { grid-column: span 1 !important; grid-row: span 2 !important; }
    .gi.g1, .gi.g6 { grid-column: span 2 !important; }
  }

/* ===== PAGE-SPECIFIC: servicios ===== */
body.page-servicios .serv-hero {
    padding: 200px 0 var(--section-y-sm);
    background: var(--cream);
    text-align: center;
  }body.page-servicios .serv-hero .eyebrow { display:block; margin-bottom: 22px; }body.page-servicios .serv-hero h1 { margin: 0 auto 22px; max-width: 18ch; }body.page-servicios .serv-hero p.lede { font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); max-width: 36ch; margin: 0 auto; }body.page-servicios .filters {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    padding: 32px 0 8px;
    border-top: 1px solid var(--hairline-soft);
  }body.page-servicios .filters button {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 12px 18px;
    border: 1px solid transparent;
    transition: color .2s, border-color .2s;
  }body.page-servicios .filters button:hover { color: var(--bosque); }body.page-servicios .filters button.is-active { color: var(--bosque); border-color: var(--bosque); }body.page-servicios .grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
    margin-top: 64px;
  }@media (max-width: 900px) { .grid-cards { grid-template-columns: 1fr 1fr; gap: 48px 32px; } }@media (max-width: 600px) { .grid-cards { grid-template-columns: 1fr; gap: 56px; } }body.page-servicios .scard { display: flex; flex-direction: column; }body.page-servicios .scard .card-img { aspect-ratio: 4 / 5; margin-bottom: 22px; }body.page-servicios .scard .eyebrow { display:block; margin-bottom: 10px; }body.page-servicios .scard h3 { font-size: 24px; margin-bottom: 12px; min-height: 56px; }body.page-servicios .scard p { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; flex: 1; }body.page-servicios .scard .meta {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0;
    border-top: 1px solid var(--hairline-soft);
    border-bottom: 1px solid var(--hairline-soft);
    margin-bottom: 22px;
  }body.page-servicios .scard .price { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--bosque); }body.page-servicios .scard .duration { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute); text-align: right; }body.page-servicios .scard.hidden { display: none; }body.page-servicios .end-cta { background: var(--cream); text-align: center; }body.page-servicios /* card images */
  .img-1 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1544716278-ca5e3f4ab.jpg'); }body.page-servicios .img-2 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1455390582262-044cde.jpg'); }body.page-servicios .img-3 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1490578474895-699cd4.jpg'); }body.page-servicios .img-4 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1573497019940-1c28c8-scaled.jpg'); }body.page-servicios .img-5 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1532153975070-2e9ab7.jpg'); }body.page-servicios .img-6 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1499209974431-9dddce.jpg'); }body.page-servicios .img-7 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1529333166437-7750a6.jpg'); }body.page-servicios .img-8 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1518609878373-06d740.jpg'); }body.page-servicios .img-9 { background-image: url('https://habitodecambio.com/wp-content/uploads/2026/05/ailing-1470137237906-d8a4f7-scaled.jpg'); }

/* ===== PAGE-SPECIFIC: contacto ===== */
body.page-contacto .ct-hero {
    padding: 200px 0 var(--section-y-sm);
    background: var(--cream);
    text-align: center;
  }body.page-contacto .ct-hero .eyebrow { display:block; margin-bottom: 22px; }body.page-contacto .ct-hero h1 { margin: 0 auto 22px; max-width: 18ch; }body.page-contacto .ct-hero p.lede { font-style: italic; font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); max-width: 36ch; margin: 0 auto; }body.page-contacto .ct-cards {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    margin-top: 8px;
    align-items: start;
  }body.page-contacto .ct-direct { display: grid; gap: 24px; }body.page-contacto .ct-card {
    border: 1px solid var(--hairline);
    padding: 32px 32px;
    display: flex; flex-direction: column;
  }body.page-contacto .ct-card .eyebrow { display:block; margin-bottom: 14px; }body.page-contacto .ct-card h3 { font-size: 22px; margin-bottom: 10px; }body.page-contacto .ct-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }body.page-contacto .ct-card .btn, body.page-contacto .ct-card .btn-wa { margin-top: 4px; align-self: flex-start; padding: 14px 22px; font-size: 12px; }body.page-contacto .ct-card.wa { background: var(--bosque); border-color: var(--bosque); color: var(--cream); }body.page-contacto .ct-card.wa h3 { color: var(--white); }body.page-contacto .ct-card.wa .eyebrow { color: var(--arena); }body.page-contacto .ct-card.wa p { color: rgba(255,255,255,0.78); }body.page-contacto .ct-card.wa .btn-wa {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: white;
    font-family: var(--serif); letter-spacing: 0.18em; text-transform: uppercase;
  }body.page-contacto .ct-card.wa .btn-wa:hover { background: #1ebd5a; }body.page-contacto .ct-card.form-card { padding: 44px 48px; }body.page-contacto .ct-card.form-card h3 { font-size: 26px; margin-bottom: 12px; }body.page-contacto .ct-card.form-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }body.page-contacto .ct-card.form-card .field.full { grid-column: 1 / -1; }@media (max-width: 900px) {
    .ct-cards { grid-template-columns: 1fr; gap: 24px; }
    .ct-card.form-card .form-grid { grid-template-columns: 1fr; }
  }body.page-contacto .ct-info {
    background: var(--cream);
    text-align: center;
  }body.page-contacto .ct-info h2 { max-width: 26ch; margin: 0 auto 24px; }body.page-contacto .ct-info p { font-style: italic; color: var(--ink-soft); margin: 0 auto 12px; max-width: 50ch; }body.page-contacto .ct-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    max-width: 720px; margin: 56px auto 0;
    text-align: center;
  }body.page-contacto .ct-meta .eyebrow { display:block; margin-bottom: 10px; }body.page-contacto .ct-meta .val { font-size: 20px; font-style: italic; color: var(--bosque); }@media (max-width: 600px) { .ct-meta { grid-template-columns: 1fr; gap: 36px; } }body.page-contacto .ct-social {
    text-align: center;
    padding: var(--section-y-sm) 0;
  }body.page-contacto .ct-social h2 { margin-bottom: 32px; }body.page-contacto .ct-social .row {
    display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  }body.page-contacto .ct-social a {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--bosque);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 6px;
    transition: color .2s, border-color .2s;
  }body.page-contacto .ct-social a:hover { color: var(--arcilla); border-color: var(--arcilla); }

/* ============================================================
   GLOBAL · texto de lado a lado + letra más grande
   SOLO DESKTOP ≥1024px (preferencia Erick)
   En mobile/tablet usar containers nativos (ver RESPONSIVE FIX abajo)
   ============================================================ */
@media (min-width: 1024px) {
  /* Wraps casi full-width · solo 32px de gutter a cada lado */
  body .wrap,
  body .wrap-narrow,
  body .wrap-text {
      max-width: calc(100vw - 64px) !important;
      width: 100%;
  }

  /* Body + párrafos más grandes */
  body { font-size: 19px !important; line-height: 1.75 !important; }
  body p { max-width: 100% !important; font-size: 19px !important; }

  /* H1/H2/H3/H4 sin max-width artificial */
  body h1, body h2, body h3, body h4,
  body section h1, body section h2, body section h3, body section h4 {
      max-width: 100% !important;
  }

  /* H2 size aumentado para mejor jerarquía con párrafos 19px */
  body h2 { font-size: clamp(36px, 4.8vw, 64px) !important; }
}

/* ============================================================
   FIX · Sobre Ailing · foto retrato DENTRO del cream con aire
   Original: foto pegada al borde derecho (32px) y casi al borde inferior.
   Solución: achicar foto + centrar en su columna + padding generoso
   en hero para que respire por los 4 lados dentro del cream.
   ============================================================ */
body.page-sobre-ailing .ailing-hero {
    padding-top: 140px !important;
    padding-bottom: 120px !important;
}
body.page-sobre-ailing .ailing-hero .grid {
    padding-left: 80px !important;
    padding-right: 80px !important;
    align-items: center !important;
}
body.page-sobre-ailing .ailing-hero .portrait {
    width: 100% !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    justify-self: end !important;
    align-self: center !important;
}

/* ============================================================
   FOOTER · letras más grandes + isotipo más grande
   (preferencia Erick · 17 may 2026)
   ============================================================ */

/* Isotipo footer más grande para que sea acorde al brand name */
.site-footer .brand .iso-img { width: 64px !important; height: 64px !important; }

/* Brand name "Hábito de Cambio" más grande */
.site-footer .brand { font-size: 24px !important; }
.site-footer .brand .name small { font-size: 11px !important; }

/* Frase de cabecera italic ("Una escuela para mujeres...") */
.site-footer .quote-strip { font-size: 22px !important; }

/* Headers de columna (NAVEGACIÓN / CONTACTO / SÍGUENOS) */
.site-footer h5 { font-size: 13px !important; margin-bottom: 26px !important; }

/* Links de columnas (Inicio, La Escuela, hola@..., WhatsApp, Instagram) */
.site-footer li { font-size: 17px !important; padding: 9px 0 !important; }

/* Descripción debajo del brand ("Coaching, psicología...") */
.site-footer .col-brand p { font-size: 16px !important; max-width: 36ch !important; }

/* Legal (© 2026 + Trabaja con Ailing) */
.site-footer .legal { font-size: 14px !important; }

/* ============================================================
   HEADER + FOOTER · isotipo más grande y más cerca del brand name
   (preferencia Erick · 17 may 2026)
   ============================================================ */

/* Header: iso más grande + gap más chico para que esté pegado a "Hábito de Cambio" */
.site-header .brand { gap: 4px !important; }
.site-header .brand .iso-img { width: 56px !important; height: 56px !important; }

/* Footer: iso aún más grande + gap proporcional */
.site-footer .brand { gap: 14px !important; }
.site-footer .brand .iso-img { width: 80px !important; height: 80px !important; }

/* ============================================================
   WHATSAPP FLOAT · círculo (no cuadrado) + más arriba + más bonito
   ============================================================ */
.whatsapp-float {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;          /* CÍRCULO */
    right: 28px !important;
    bottom: 36px !important;                /* sube ~12px · no pisa el legal */
    background: #25d366 !important;
    box-shadow:
        0 12px 32px rgba(37, 211, 102, 0.45),
        0 6px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow:
        0 16px 40px rgba(37, 211, 102, 0.55),
        0 8px 16px rgba(0, 0, 0, 0.18) !important;
}
.whatsapp-float svg { width: 32px !important; height: 32px !important; }

/* ============================================================
   LOGO COMPLETO · reemplazo isologo+texto por imagen única
   (Erick subió "Logo Color 3.png" · 17 may 2026 v1.0.5)
   ============================================================ */

/* Logo en HEADER */
.site-header .brand { gap: 0 !important; }
.site-header .brand .logo-img {
    height: 72px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

/* Logo en FOOTER (más estético · pequeño) */
.site-footer .brand { gap: 0 !important; margin-bottom: 18px !important; }
.site-footer .brand .logo-img {
    height: 70px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

/* HEADER: logo a color natural (fondo cream lo deja visible) */
.site-header .logo-img { filter: none !important; }

/* FOOTER: logo todo blanco/crema (fondo bosque oscuro · evita CAMBIO invisible) */
.site-footer .logo-img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.95;
}

/* ============================================================
   RESPONSIVE FIX v1.0.11 (Erick · audit 17 may 2026)
   Breakpoints: mobile <640 · tablet 640-1023 · desktop ≥1024
   ============================================================ */

/* FIX 0 · Prevenir scroll horizontal accidental (defensivo) */
html, body { overflow-x: hidden; max-width: 100vw; }

/* FIX 1 · Tipografía escalable TABLET (640-1023px) */
@media (max-width: 1023px) {
  body { font-size: 17px !important; line-height: 1.7 !important; }
  body p { font-size: 17px !important; max-width: 64ch !important; }
  body h1, body h2, body h3, body h4 { max-width: 100% !important; }
  body h2 { font-size: clamp(28px, 4vw, 44px) !important; }
  body h3 { font-size: clamp(20px, 2.6vw, 26px) !important; }
}

/* FIX 2 · Tipografía escalable MOBILE (<640px) */
@media (max-width: 639px) {
  body { font-size: 16px !important; line-height: 1.65 !important; }
  body p { font-size: 16px !important; max-width: 100% !important; }
  body h1 { font-size: clamp(30px, 8vw, 42px) !important; }
  body h2 { font-size: clamp(24px, 6vw, 30px) !important; }
  body h3 { font-size: clamp(18px, 5vw, 22px) !important; }
  body h4 { font-size: clamp(16px, 4.5vw, 19px) !important; }
}

/* FIX 3 · Grids colapsan a 1 columna en mobile · gaps generosos (cada bloque respira) */
@media (max-width: 639px) {
  /* HOME · perfiles 2 cols → 1 col · espacio doble entre bloques (sin línea) */
  .audience { grid-template-columns: 1fr !important; gap: 112px !important; }
  .v-sep { display: none !important; }
  /* HOME · método 3 steps → 1 col */
  .method-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  /* HOME · 3 certs → 1 col */
  .certs-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  /* HOME · Ailing preview grid → 1 col */
  .ailing-preview .grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  /* Servicios · 9 cards → 1 col · doble espacio entre cards (sin línea) */
  .grid-cards { grid-template-columns: 1fr !important; gap: 96px !important; }
  body.page-servicios .scard { padding: 0 !important; border: 0 !important; }
  /* Contacto · 3 canales → 1 col */
  .ct-cards { grid-template-columns: 1fr !important; gap: 40px !important; }
  .ct-card { padding: 28px 20px !important; max-width: 100% !important; box-sizing: border-box !important; }
  .ct-card .btn-wa, .ct-card .btn { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; text-align: center; justify-content: center; }
  /* Contacto · form 2 cols → 1 col */
  .form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .form-grid input, .form-grid textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .ct-card .form-grid + .btn { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  /* La Escuela · cert-row 2 cols → 1 col · sin líneas + doble espacio */
  .cert-row { grid-template-columns: 1fr !important; gap: 28px !important; padding: 56px 0 !important; border: 0 !important; }
  .cert-row:last-child { border-bottom: 0 !important; }
  .cert-row .img { aspect-ratio: 16/10 !important; }
  /* La Escuela · diferenciales → 1 col · gap generoso */
  .diff-grid { grid-template-columns: 1fr !important; gap: 56px !important; }
  /* La Escuela · etapas (120px + texto) → 1 col */
  .etapa { grid-template-columns: 1fr !important; gap: 12px !important; padding: 24px 0 !important; }
  .etapa .num { font-size: 36px !important; }
  /* Sobre Ailing · hero grid → 1 col */
  .ailing-hero .grid { grid-template-columns: 1fr !important; gap: 32px !important; padding: 0 22px !important; }
  body.page-sobre-ailing .ailing-hero { padding-top: 100px !important; padding-bottom: 60px !important; }
  body.page-sobre-ailing .ailing-hero .portrait { max-width: 100% !important; aspect-ratio: 4/5 !important; }
  /* Sobre Ailing · trayectoria + otros grids genéricos */
  .editorial .wrap-text { padding: 0 22px !important; }
}

/* FIX 4 · Header más compacto en mobile (logo + padding reducido) */
@media (max-width: 639px) {
  .site-header .brand .logo-img { height: 44px !important; }
  .site-header { padding-top: 12px !important; padding-bottom: 12px !important; }
  /* Burger más grande para tap target */
  .site-header .burger { padding: 12px !important; }
}

/* FIX 5 · Filtros Servicios scroll horizontal en mobile/tablet */
@media (max-width: 1023px) {
  .filters {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex-shrink: 0 !important; white-space: nowrap; }
}

/* FIX 6 · Tablet · cards de servicios y contacto a 2 columnas */
@media (min-width: 640px) and (max-width: 1023px) {
  .grid-cards { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .ct-cards { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .audience { grid-template-columns: 1fr 1fr !important; }
  .method-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 20px !important; }
  .certs-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 20px !important; }
  .diff-grid { grid-template-columns: 1fr 1fr !important; }
  .form-grid { grid-template-columns: 1fr 1fr !important; }
}

/* FIX 7 · Footer mobile padding sano */
@media (max-width: 639px) {
  .site-footer { padding: 56px 0 0 !important; }
  .site-footer .quote-strip { font-size: 17px !important; padding: 0 22px 40px !important; }
  .site-footer .grid { padding: 0 22px 40px !important; gap: 32px !important; }
  .site-footer .legal { font-size: 13px !important; padding: 22px !important; }
  .site-footer h5 { font-size: 12px !important; margin-bottom: 16px !important; }
  .site-footer li { font-size: 15px !important; padding: 6px 0 !important; }
}

/* FIX 8 · Hero pages mobile padding */
@media (max-width: 639px) {
  .home-hero, .escuela-hero, .ailing-hero, .serv-hero, .ct-hero {
    padding-top: 100px !important;
  }
  .escuela-hero .inner, .serv-hero .wrap, .ct-hero .wrap {
    padding: 0 22px 40px !important;
  }
  .escuela-hero .img { height: 240px !important; margin-top: 40px !important; }
}

/* FIX 9 · Buttons + section padding sano mobile */
@media (max-width: 639px) {
  .btn { padding: 16px 24px !important; font-size: 14px !important; }
  section { padding: 56px 0 !important; }
  section.tight { padding: 40px 0 !important; }
  /* WhatsApp float un poco más chico en mobile */
  .whatsapp-float { width: 56px !important; height: 56px !important; bottom: 24px !important; right: 18px !important; }
  .whatsapp-float svg { width: 28px !important; height: 28px !important; }
}

/* FIX · Galería Sobre Ailing responsive
   Bug: en mobile el grid 6 cols con spans queda como tiras verticales delgadas
   Fix: grid uniforme 1 col mobile · 2 cols tablet · imágenes ratio 4/3 (paisaje) */
@media (max-width: 1023px) {
  body.page-sobre-ailing .galeria-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
  }
  body.page-sobre-ailing .gi {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 4 / 3 !important;
    background-size: cover !important;
    background-position: center !important;
  }
}
@media (max-width: 639px) {
  body.page-sobre-ailing .galeria-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.page-sobre-ailing .gi {
    aspect-ratio: 16 / 10 !important;
  }
  body.page-sobre-ailing .galeria h2 { margin-bottom: 32px !important; }
}

/* FIX · Pillar strip (4 valores) responsive
   Bug: en mobile/tablet 4 palabras + · separator quedan apretadas en 2 filas
   Fix: vertical stack con aire entre cada palabra · dots ocultos · aplica HOME + La Escuela */
@media (max-width: 1023px) {
  .pillar-strip { padding: 64px 32px !important; }
  .pillar-strip .words {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 22px !important;
    font-size: clamp(22px, 3vw, 28px) !important;
  }
  .pillar-strip .words .dot { display: none !important; }
  .pillar-strip .words span { padding: 0 !important; display: block !important; }
}
@media (max-width: 639px) {
  .pillar-strip { padding: 56px 22px !important; }
  .pillar-strip .words { gap: 18px !important; font-size: 22px !important; }
}

/* FIX · HOME avales (5 instituciones) · grid responsive
   Bug: en mobile las 5 cols quedaban demasiado angostas → "Universitas", "Toastmasters" se cortaban */
@media (max-width: 1023px) {
  body.page-home .avales .row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px 16px !important;
  }
  body.page-home .aval .mark { font-size: 20px !important; }
  body.page-home .aval .label { font-size: 9px !important; }
}
@media (max-width: 639px) {
  body.page-home .avales .row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px 16px !important;
  }
  body.page-home .aval .mark { font-size: 18px !important; word-break: break-word; }
  body.page-home .aval .label { font-size: 9px !important; letter-spacing: 0.18em !important; }
}

/* FIX 10 · HOME hero mobile · scroll-ind oculto + botón compacto + imagen mejor encuadre */
@media (max-width: 639px) {
  /* Ocultar scroll indicator (redundante en mobile) */
  body.page-home .home-hero .scroll-ind { display: none !important; }
  /* Botón hero más compacto */
  body.page-home .home-hero .btn {
    padding: 14px 22px !important;
    font-size: 13px !important;
    letter-spacing: 0.06em !important;
  }
  /* Padding bottom menor para acercar el botón */
  body.page-home .home-hero { padding-bottom: 60px !important; }
  /* H1 hero mobile · más chico para que respire */
  body.page-home .home-hero h1 { font-size: clamp(28px, 8vw, 38px) !important; max-width: 100% !important; }
  body.page-home .home-hero .lede { font-size: 15px !important; margin-bottom: 28px !important; }
  /* Imagen background con mejor encuadre vertical · evita el zoom extremo */
  body.page-home .home-hero::before {
    background-position: center 25% !important;
    background-size: cover !important;
    image-rendering: -webkit-optimize-contrast;
  }
}
