/* =========================================================
   PALIMPULSA — Hoja de estilos
   Paleta: rojo PALI, negro tinta, piedra y rosa suave
   ========================================================= */

:root {
  --red: #C84B3C;
  --red-deep: #A8362B;
  --red-soft: #E26B5A;
  --ink: #161616;
  --ink-2: #242322;
  --ink-3: #3A3836;
  --paper: #FBF9F6;
  --white: #FFFFFF;
  --stone: #F2EFEA;
  --blush: #F8E7E3;
  --line: #E4DFD8;
  --muted: #67625D;
  --muted-light: #B9B3AD;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -30px rgba(22, 22, 22, .28), 0 12px 24px -16px rgba(22, 22, 22, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
h1 em, h2 em { font-style: italic; color: var(--red); font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; }

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

/* ---------- Tipos de apoyo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--red-soft); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  padding: 17px 26px; border-radius: 999px; border: 1.5px solid var(--bg);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--red { --bg: var(--red); box-shadow: 0 14px 28px -14px rgba(200, 75, 60, .7); }
.btn--red:hover { --bg: var(--red-deep); }
.btn--dark { --bg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link { font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; display: inline-block; transition: transform .2s var(--ease); }
.link:hover { transform: translateX(4px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(251, 249, 246, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__word { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.brand--light { color: #fff; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-3); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: var(--ink); border-radius: 50%; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper);
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
.mobile[hidden] { display: none; }
.mobile a:not(.btn) { font-family: var(--serif); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile .btn { margin-top: 22px; }

/* ---------- HERO ---------- */
.hero { padding: calc(var(--nav-h) + 56px) 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--red);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 26px; max-width: 560px; }
.hero__stats div { padding-right: 20px; }
.hero__stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero__stats dt { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.hero__stats dd { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 480px; }
.hero__photo {
  margin: 0; position: relative; z-index: 2;
  border-radius: 999px 999px 26px 26px; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.orb { position: absolute; border-radius: 50%; z-index: 1; }
.orb--lg { width: 62%; aspect-ratio: 1; background: var(--red); top: -6%; right: -14%; }
.orb--sm { width: 30%; aspect-ratio: 1; background: var(--red-deep); bottom: -6%; right: -8%; z-index: 3; opacity: .95; }
.hero__card {
  position: absolute; z-index: 4; left: -44px; bottom: 11%;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px 22px 18px;
  box-shadow: var(--shadow); min-width: 230px;
  animation: float 6s ease-in-out infinite;
}
.hero__card-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.hero__letters { display: flex; gap: 14px; margin: 6px 0 6px; }
.hero__letters b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1.05; color: var(--red-soft); }
.hero__card-foot { font-size: 11.5px; color: #cfc9c3; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- PROBLEMA ---------- */
.problem { background: var(--ink); color: #fff; padding: 110px 0; position: relative; }
.problem::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--red); }
.problem__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.problem__quote h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); margin-bottom: 26px; }
.problem__quote h2 em { color: var(--red-soft); }
.problem__quote p:last-child { color: #bdb7b1; font-size: 1.1rem; max-width: 460px; }
.problem__list li { display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.problem__list li:first-child { padding-top: 0; }
.problem__list span { flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(200, 75, 60, .16); color: var(--red-soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.problem__list h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.problem__list p { margin: 0; color: #b3ada7; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 120px 0; }
.section--stone { background: var(--stone); }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin-bottom: 20px; }
.sec-head p:last-child { color: var(--muted); font-size: 1.1rem; margin: 0; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.sec-head--split h2 { margin-bottom: 0; }

/* ---------- MÉTODO PALI ---------- */
.pali { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pali__card {
  background: var(--stone); border-radius: var(--radius); padding: 34px 30px 36px; min-height: 330px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pali__card::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--red);
  right: -90px; bottom: -90px; opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s var(--ease);
}
.pali__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pali__card:hover::after { opacity: .12; transform: scale(1); }
.pali__card--dark { background: var(--ink); color: #fff; }
.pali__card--dark p { color: #bdb7b1; }
.pali__card--dark:hover::after { opacity: .35; }
.pali__letter { font-family: var(--serif); font-size: 5.5rem; line-height: .9; color: var(--red); margin-bottom: auto; }
.pali__card h3 { font-size: 1.3rem; font-weight: 600; margin: 50px 0 10px; }
.pali__card p { margin: 0; color: var(--muted); font-size: 15.5px; position: relative; z-index: 1; }
.banner { margin: 34px 0 0; background: var(--blush); color: var(--red-deep); text-align: center; padding: 20px 24px; border-radius: var(--radius-sm); font-size: 1.05rem; }

/* ---------- PARA QUIÉN ---------- */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fit__card { background: var(--white); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.fit__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fit__badge { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.fit__card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }
.fit__card li { padding: 10px 0 10px 26px; position: relative; color: var(--ink-3); border-top: 1px solid var(--stone); font-size: 15.5px; }
.fit__card li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 2px; background: var(--red); }
.criterion { margin-top: 26px; background: var(--blush); border-radius: var(--radius-sm); padding: 24px 30px; display: flex; gap: 30px; align-items: center; }
.criterion span { flex: none; font-weight: 700; color: var(--red-deep); font-size: 14px; letter-spacing: .02em; }
.criterion p { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* ---------- SOLUCIONES ---------- */
.sol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sol__card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; min-height: 320px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.sol__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sol__num { font-family: var(--serif); font-size: 1rem; color: var(--red); margin-bottom: 44px; }
.sol__card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 14px; letter-spacing: -.01em; }
.sol__card p { color: var(--muted); font-size: 15.5px; }
.sol__card .link { margin-top: auto; }
.sol__card--feature { background: var(--red); border-color: var(--red); color: #fff; }
.sol__card--feature .sol__num, .sol__card--feature .link { color: #fff; }
.sol__card--feature p { color: rgba(255, 255, 255, .85); }
.sol__tag { position: absolute; top: 26px; right: 24px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .18); padding: 6px 10px; border-radius: 999px; }

/* ---------- PALI 90 ---------- */
.p90 { background: var(--ink); color: #fff; padding: 120px 0; position: relative; overflow: hidden; }
.p90::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--red); opacity: .07; right: -160px; top: -200px; }
.p90__top { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.p90__circle { position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; background: var(--red); display: grid; place-content: center; text-align: center; justify-self: center; }
.p90__circle strong { font-family: var(--serif); font-weight: 500; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9; }
.p90__circle span { font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 15px; margin-top: 8px; }
.p90__ring { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); transform: rotate(-90deg); }
.p90__ring circle { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; stroke-dasharray: 578; stroke-dashoffset: 578; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.p90__circle.is-in .p90__ring circle { stroke-dashoffset: 0; }
.p90__intro h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.p90__intro h2 em { color: var(--red-soft); }
.p90__intro > p { color: #bdb7b1; font-size: 1.1rem; max-width: 560px; }
.checks { margin-top: 28px; display: grid; gap: 10px; }
.checks li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm); padding: 14px 18px 14px 52px; position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks li:last-child { background: rgba(200, 75, 60, .18); border-color: rgba(200, 75, 60, .35); }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 90px; position: relative; z-index: 1; counter-reset: ph; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255, 255, 255, .18); }
.phases li { position: relative; padding-top: 36px; }
.phases li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--red); }
.phases li:first-child::before { background: var(--red); }
.phases span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red-soft); font-weight: 600; }
.phases h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; margin: 8px 0 8px; }
.phases p { color: #b3ada7; margin: 0; font-size: 15.5px; }

.p90__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 64px; position: relative; z-index: 1; }
.p90__foot > div { border-radius: var(--radius); padding: 28px 30px; }
.p90__foot > div:first-child { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); }
.p90__foot > div:last-child { background: var(--blush); color: var(--ink); }
.p90__label { display: block; font-weight: 700; color: var(--red-soft); margin-bottom: 8px; font-size: 15px; }
.p90__foot > div:last-child .p90__label { color: var(--red-deep); }
.p90__foot p { margin: 0; font-size: 1.05rem; }

/* ---------- SOBRE PAULINA ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.about__photo { position: relative; }
.about__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; box-shadow: var(--shadow); }
.about__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1.5px solid var(--red); border-radius: var(--radius); z-index: -1; }
.about__seal { position: absolute; right: -34px; top: 40px; width: 150px; height: 150px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-content: center; text-align: center; padding: 18px; box-shadow: var(--shadow); }
.about__seal strong { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }
.about__seal span { font-size: 12px; line-height: 1.3; margin-top: 4px; }
.about__copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 26px; }
.about__copy > p { color: var(--ink-3); }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.creds li { background: var(--stone); border-radius: var(--radius-sm); padding: 18px; }
.creds strong { display: block; color: var(--red); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.creds span { font-size: 14.5px; line-height: 1.35; display: block; }

/* ---------- MANIFIESTO ---------- */
.manifesto { background: var(--red); color: #fff; padding: 110px 0; position: relative; overflow: hidden; }
.manifesto::before, .manifesto::after { content: ""; position: absolute; border-radius: 50%; background: var(--red-deep); }
.manifesto::before { width: 360px; height: 360px; left: -140px; bottom: -200px; }
.manifesto::after { width: 200px; height: 200px; right: 6%; top: -110px; opacity: .8; }
.manifesto p { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.3; letter-spacing: -.01em; max-width: 1000px; margin: 0 auto; text-align: center; }
.manifesto em { font-style: italic; }

/* ---------- CONTACTO / FORMULARIO ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.contact__info h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 22px; }
.contact__info > p { color: var(--muted); font-size: 1.08rem; }
.contact__list { margin: 34px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.ic { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--red); display: grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; }
.contact__list small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.contact__list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--red); }
.contact__note { border-left: 3px solid var(--red); padding-left: 18px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-3); }

.form-card { background: var(--white); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; left: 44px; right: 44px; top: 0; height: 4px; background: var(--red); border-radius: 0 0 4px 4px; }
.form-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin-bottom: 6px; }
.form-card__sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23161616' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(200, 75, 60, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red-deep); background: #fff7f5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin-top: 2px; }
.check.is-invalid span { color: var(--red-deep); }
.check a { color: var(--red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 18px; }
.alert[hidden] { display: none; }
.alert--ok { background: #EAF4EC; color: #1F5A2E; border: 1px solid #CBE4D1; }
.alert--err { background: var(--blush); color: var(--red-deep); border: 1px solid #F0CFC8; }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink); color: #cfc9c3; padding: 90px 0 36px; font-size: 14.5px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot__brand p { margin-top: 18px; max-width: 300px; color: #a9a39d; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.foot__col a { text-decoration: none; word-break: break-word; }
.foot__col a:hover { color: #fff; }
.foot__col span { color: #a9a39d; }
.foot__disclaimer { font-size: 13px; color: #8d8781; margin: 32px 0; max-width: 900px; line-height: 1.6; }
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #8d8781; }
.foot__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot__bottom a { text-decoration: none; }
.foot__bottom a:hover { color: #fff; }

/* ---------- WhatsApp + Cookies ---------- */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 95; max-width: 430px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; color: var(--muted); }
.cookie a { color: var(--red); }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--nav-h) + 70px) 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.legal p, .legal li { color: var(--ink-3); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--red); }
.legal .box { background: var(--stone); border-radius: var(--radius-sm); padding: 22px 26px; margin: 20px 0; }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 28px 80px; }
.notfound strong { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); font-weight: 500; color: var(--red); line-height: 1; display: block; }
.notfound h1 { font-size: 2rem; margin: 10px 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .p90__ring circle { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .pali, .sol { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 36px); padding-bottom: 80px; }
  .hero__grid, .problem__grid, .p90__top, .about, .contact, .sec-head--split { grid-template-columns: 1fr; gap: 56px; }
  .sec-head--split { gap: 18px; }
  .hero__visual { max-width: 420px; margin-right: 40px; }
  .hero__card { left: -20px; }
  .fit { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .phases::before { display: none; }
  .about__photo { max-width: 460px; }
  .section, .p90, .problem { padding: 90px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero::before, .problem::before { width: 6px; }
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .hero__stats dt { font-size: 2rem; }
  .hero__stats dd { font-size: 12px; }
  .hero__stats div + div { padding-left: 12px; }
  .hero__stats div { padding-right: 8px; }
  .hero__visual { margin-right: 24px; }
  .hero__card { left: -8px; min-width: 0; padding: 16px 18px; }
  .hero__letters b { font-size: 2rem; }
  .pali, .sol, .phases, .p90__foot, .creds, .form__row, .foot__top { grid-template-columns: 1fr; }
  .pali__card { min-height: 0; }
  .pali__card h3 { margin-top: 30px; }
  .sol__card { min-height: 0; }
  .sol__num { margin-bottom: 24px; }
  .criterion { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
  .about__seal { right: -10px; top: -30px; width: 120px; height: 120px; }
  .about__seal strong { font-size: 2.4rem; }
  .about__photo::before { inset: 16px -12px -16px 16px; }
  .form-card { padding: 32px 22px; }
  .form-card::before { left: 22px; right: 22px; }
  .section, .p90, .problem, .manifesto { padding: 76px 0; }
  .sec-head { margin-bottom: 40px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; }
  .wa { right: 14px; bottom: 14px; }
}

/* =========================================================
   Ajustes para la estructura del copy institucional
   ========================================================= */
.hero__actions { margin-bottom: 0; }
.hero__card { min-width: 0; padding: 18px 24px 16px; }

.sec-head h2 { max-width: 880px; }
.sec-head:has(+ .pali) { max-width: 900px; }
.pali__card { min-height: 280px; }
.pali__card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin: 60px 0 0; letter-spacing: -.01em; position: relative; z-index: 1; }
.pali__letter { font-size: 6.5rem; }

.sol__card { min-height: 230px; justify-content: space-between; }
.sol__num { margin-bottom: 0; font-size: 1.1rem; }
.sol__card h3 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.sol__card::after { content: ""; position: absolute; right: 26px; top: 30px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.sol__card--feature::after { background: #fff; }

.about__first { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--ink) !important; margin-bottom: 1.1em; }
.about__copy > p { font-size: 1.08rem; }
.about__dot { position: absolute; right: -40px; top: 36px; width: 130px; height: 130px; border-radius: 50%; background: var(--red); box-shadow: var(--shadow); }
.about__dot::after { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--red-deep); right: -18px; bottom: -22px; }

.contact { align-items: stretch; }
.contact__list { margin-bottom: 0; }
.contact__list b { font-weight: 600; }
.legal-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; align-self: end; }
.legal-card::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--red); opacity: .16; right: -80px; top: -90px; }
.legal-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin-bottom: 26px; }
.legal-card dl { margin: 0; display: grid; gap: 0; position: relative; z-index: 1; }
.legal-card dl div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.legal-card dt { color: var(--red-soft); font-weight: 600; font-size: 14.5px; }
.legal-card dd { margin: 0; color: #e6e1dc; }

.foot { padding: 64px 0 40px; }
.foot__top { grid-template-columns: none; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 36px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: #fff; }
.foot__links span { color: #6a6560; }
.foot__copy { margin: 30px 0 14px; color: #cfc9c3; font-size: 14px; }
.foot__disclaimer { margin: 0; }

@media (max-width: 960px) {
  .about__dot { right: -16px; top: -24px; width: 100px; height: 100px; }
  .legal-card { align-self: auto; }
}
@media (max-width: 640px) {
  .pali__card { min-height: 0; }
  .pali__card h3 { margin-top: 26px; font-size: 1.6rem; }
  .pali__letter { font-size: 4.5rem; }
  .sol__card { min-height: 0; gap: 26px; }
  .legal-card { padding: 32px 22px; }
  .legal-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}

.about__copy > p.about__first { font-size: 1.45rem; }
html { overflow-x: clip; }
@media (max-width: 640px) {
  .orb--lg { right: -6%; }
  .about__copy > p.about__first { font-size: 1.25rem; }
}
@media (max-width: 640px) {
  .pali { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pali__card { padding: 24px 20px; }
  .pali__card h3 { font-size: 1.25rem; margin-top: 18px; }
  .pali__letter { font-size: 3.6rem; }
}

/* Rodapé: información legal */
.foot__info { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot__info h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.foot__info dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
.foot__info dt { color: var(--red-soft); font-size: 12.5px; font-weight: 600; }
.foot__info dd { margin: 2px 0 0; color: #e6e1dc; }
.foot__info a { text-decoration: none; }
.foot__info a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 960px) { .foot__info dl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .foot__info dl { grid-template-columns: 1fr; gap: 14px; } }

/* Logo */
.brand__logo { height: 34px; width: auto; display: block; }
.foot .brand__logo { height: 38px; }
@media (max-width: 640px) { .brand__logo { height: 28px; } }
