/* ==========================================================
   Plenitud Financiera — Hoja de estilos principal
   Colores tomados del logotipo
   ========================================================== */
:root {
  --blue: #2a5fc1;
  --blue-dark: #1a3f8a;
  --blue-deep: #0f2a5e;
  --green: #8bc34a;
  --green-dark: #6fa332;
  --orange: #f5a623;
  --cream: #fffaf2;
  --gray-50: #f4f6fa;
  --gray-100: #e9edf3;
  --gray-200: #dfe3ea;
  --text: #2d3340;
  --muted: #6b7280;
  --white: #fff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 42, 94, .06);
  --shadow: 0 10px 30px rgba(15, 42, 94, .10);
  --shadow-lg: 0 20px 50px rgba(15, 42, 94, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--blue); font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(139, 195, 74, .35); }
.btn--green:hover { background: var(--green-dark); box-shadow: 0 12px 26px rgba(139, 195, 74, .45); }
.btn--outline { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--blue); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.header.is-scrolled { --header-h: 68px; height: 68px; box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .96); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo { display: flex; align-items: center; gap: .6rem; }
.header__logo img { height: 52px; width: auto; transition: height .35s var(--ease); }
.header.is-scrolled .header__logo img { height: 44px; }
.header__brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 2.2rem; }
.nav__link {
  position: relative; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
  padding: .4rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .65rem 1.3rem; font-size: .85rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; width: 24px; height: 2.5px; background: var(--blue); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (fondo blanco, letras azul/verde, logo a color) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: var(--text);
  padding: calc(var(--header-h) + 2.5rem) 0 5rem; overflow: hidden; isolation: isolate;
  background: #fff;
}
.hero__content { max-width: 900px; }
.hero__title br { display: none; }
@media (min-width: 700px) { .hero__title br { display: inline; } }
.hero__logo { width: clamp(170px, 20vw, 230px); margin: 0 auto 1.6rem; animation: fadeUp 1s var(--ease) both; }
.hero__title { color: var(--blue); font-size: clamp(1.8rem, 4.6vw, 3.3rem); font-weight: 800; margin-bottom: 1rem; animation: fadeUp 1s .15s var(--ease) both; }
.hero__title span { color: var(--green); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 620px; margin: 0 auto 2rem; animation: fadeUp 1s .3s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; animation: fadeUp 1s .45s var(--ease) both; }
.hero .btn--outline { border-color: var(--blue); color: var(--blue); }
.hero .btn--outline:hover { background: var(--blue); color: #fff; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; animation: fadeUp 1s .6s var(--ease) both; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  font-size: .85rem; font-weight: 600; color: var(--blue);
}
.hero__chips svg { width: 18px; height: 18px; fill: var(--green); }
.hero__scroll { position: absolute; bottom: 1.8rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--blue); border-radius: 20px; opacity: .6; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--blue); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); }
.section__head--light .section__title { color: #fff; }
.eyebrow { display: inline-block; color: var(--green-dark); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.section__icon svg { width: 60px; height: 60px; fill: var(--green); margin-bottom: .5rem; }
.pill-title {
  display: block; width: fit-content; margin: 0 auto 3rem; padding: .55rem 2.5rem;
  background: var(--green); color: #fff; border-radius: 12px; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: .02em; box-shadow: 0 10px 24px rgba(139, 195, 74, .3);
}
.link-arrow { display: inline-flex; gap: .4rem; color: var(--blue); font-weight: 700; margin-top: .5rem; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Quiénes somos ---------- */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 6rem); }
.about__media { position: relative; }
.about__media > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 3px solid var(--green); border-radius: var(--radius-lg); z-index: -1; }
.about__badge {
  position: absolute; left: -1.2rem; bottom: 1.5rem; display: flex; align-items: center; gap: .75rem;
  background: #fff; padding: .7rem 1.1rem .7rem .7rem; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700; color: var(--blue); line-height: 1.3;
  animation: float 5s ease-in-out infinite;
}
.about__badge img { width: 48px; height: 48px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.about__text p { color: var(--muted); text-align: justify; hyphens: auto; }
.about__text strong { color: var(--blue); }

.mv {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 3.5rem clamp(1.5rem, 4vw, 3.5rem) 2.5rem; margin-top: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.mv__item { position: relative; }
.mv__tag {
  position: absolute; top: -5.2rem; left: 50%; translate: -50% 0;
  background: var(--green); color: #fff; padding: .35rem 2.4rem; border-radius: 10px; font-size: 1.6rem; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.mv__item p { font-size: .95rem; opacity: .95; margin: 0; }

/* ---------- Valores ---------- */
.values { background: var(--gray-50); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 3.2rem 1.6rem 1.8rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--blue)); transform: scaleX(0); transition: transform .45s var(--ease); }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value:hover::after { transform: scaleX(1); }
.value__num { position: absolute; top: 1rem; left: 50%; translate: -50% 0; font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--green-dark); background: rgba(139, 195, 74, .14); padding: .25rem .7rem; border-radius: 999px; line-height: 1.2; }
.value h3 { font-size: 1.15rem; text-transform: uppercase; position: relative; }
.value p { color: var(--muted); font-size: .9rem; margin: 0; position: relative; }
.values__grid .value:last-child:nth-child(3n + 1) { grid-column: 1 / -1; max-width: 380px; justify-self: center; width: 100%; }

/* ---------- Banner ---------- */
.banner { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.banner__figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner__figure img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.banner__figure:hover img { transform: scale(1.04); }
.banner__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 2rem 1.5rem; color: #fff; font-size: clamp(1rem, 2vw, 1.3rem);
  background: linear-gradient(0deg, rgba(15, 42, 94, .85), transparent);
}
.banner__caption strong { color: var(--green); }

/* ---------- Filosofía ---------- */
.philosophy__text { text-align: center; color: var(--muted); font-size: 1.05rem; }
.quote {
  position: relative; margin: 3rem 0 0; padding: 2rem 2.5rem; text-align: center;
  background: var(--blue); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote::before { content: "“"; position: absolute; top: -2.2rem; left: 1.5rem; font-size: 6rem; line-height: 1; color: var(--green); font-family: Georgia, serif; }
.quote p { margin: 0; font-style: italic; font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* ---------- Servicios ---------- */
.services { background: var(--cream); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service {
  background: #fff; border-radius: var(--radius-lg); padding: 2.2rem 1.8rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; border: 1px solid var(--gray-100);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, var(--green), var(--green-dark)); transition: transform .5s var(--ease), background .4s;
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.service__icon svg { width: 32px; height: 32px; fill: #fff; }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--muted); font-size: .93rem; flex: 1; }
.service__link { color: var(--blue); font-weight: 700; font-size: .9rem; display: inline-flex; gap: .4rem; }
.service__link span { transition: transform .3s var(--ease); }
.service__link:hover span { transform: translateX(5px); }

/* ---------- Proceso ---------- */
.process { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: rgba(139, 195, 74, .12); top: -200px; right: -150px; }
.process .eyebrow { color: var(--green); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.step { text-align: center; padding: 1rem; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; left: calc(50% + 2.6rem); right: calc(-50% + 2.6rem); border-top: 2px dashed rgba(255, 255, 255, .3); }
.step__num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 1.5rem; font-weight: 800; box-shadow: 0 0 0 8px rgba(139, 195, 74, .2);
}
.step h3 { color: #fff; font-size: 1.1rem; }
.step p { opacity: .85; font-size: .92rem; margin: 0; }

/* ---------- Calculadora ---------- */
.calc { background: var(--gray-50); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.calc__intro p { color: var(--muted); }
.calc__note { font-size: .8rem; font-style: italic; }
.calc__card { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.calc__card .field label { display: flex; justify-content: space-between; }
.calc__card output { color: var(--blue); font-weight: 800; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--green) var(--p, 50%), var(--gray-200) var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: var(--shadow-sm); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; padding: 1.2rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.calc__result span { display: block; font-size: .8rem; opacity: .85; }
.calc__result strong { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--text); }
.field label small { color: var(--muted); font-weight: 400; }
.field input:not([type="range"]), .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px; background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(42, 95, 193, .12); }
.field.is-invalid input, .field.is-invalid select { border-color: #e04848; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__msg { margin: .8rem 0 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form__msg.is-error { color: #d13c3c; }
.form__msg.is-ok { color: var(--green-dark); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 1.1rem; margin: 1.8rem 0; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a, .contact__list address { font-weight: 600; color: var(--blue); line-height: 1.5; }
.contact__list a:hover { color: var(--green-dark); }
.contact__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(42, 95, 193, .1); }
.contact__ico svg { width: 22px; height: 22px; fill: var(--blue); }
.contact__ico--wa { background: rgba(37, 211, 102, .12); }
.contact__ico--wa svg { fill: #25d366; width: 26px; height: 26px; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; background: var(--gray-100); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }
.contact__form { background: #fff; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border-top: 5px solid var(--green); }
.contact__form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: rgba(255, 255, 255, .9); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer__brand img { width: 110px; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer li { margin-bottom: .55rem; }
.footer a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .2); padding: 1.2rem 0; text-align: center; font-size: .82rem; }
.footer__bottom p { margin: 0; }

/* ---------- Botones flotantes ---------- */
.fab-wa {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 120; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .35s var(--ease);
  animation: fabIn .6s 1s var(--ease) both;
}
.fab-wa::before, .fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.4s infinite; }
.fab-wa::after { animation-delay: 1.2s; }
.fab-wa svg { width: 34px; height: 34px; fill: #fff; }
.fab-wa:hover { transform: scale(1.1); }
.fab-wa__tip {
  position: absolute; right: calc(100% + 14px); top: 50%; translate: 0 -50%; white-space: nowrap;
  background: #fff; color: var(--text); font-size: .85rem; font-weight: 600; padding: .55rem .95rem; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.fab-wa__tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: #fff; }
.fab-wa:hover .fab-wa__tip, .fab-wa.show-tip .fab-wa__tip { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fabIn { from { opacity: 0; transform: scale(.4) translateY(30px); } to { opacity: 1; transform: none; } }

.to-top {
  position: fixed; right: 1.85rem; bottom: 6.2rem; z-index: 110; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(15px); transition: opacity .35s, transform .35s var(--ease), visibility .35s, background .3s;
}
.to-top svg { width: 24px; height: 24px; fill: #fff; }
.to-top:hover { background: var(--green); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services__grid, .values__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__list { gap: 1.4rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px);
    clip-path: circle(0 at calc(100% - 42px) 36px); transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 42px) 36px); visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.6rem; }
  .nav__link { font-size: 1.2rem; }
  .header__logo img { height: 44px; }
  .header__brand { font-size: 1.1rem; }
  .about__grid, .calc__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-inline: auto; }
  .mv { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 2.2rem; margin-top: 0; text-align: center; }
  .mv__tag { position: static; translate: none; display: inline-block; margin-bottom: 1rem; }
  .about__text p { text-align: left; hyphens: manual; }
  .process__steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .step::after { display: none; }
}
@media (max-width: 600px) {
  .services__grid, .values__grid, .footer__grid, .field-row, .process__steps { grid-template-columns: 1fr; }
  .hero__chips li { font-size: .78rem; }
  .about__badge { left: .5rem; }
  .about__media::before { inset: 1rem -.6rem -.8rem 1rem; }
  .banner__figure img { aspect-ratio: 4 / 3; }
  .pill-title { padding: .5rem 1.6rem; }
  .mv__tag { font-size: 1.3rem; }
  .quote { padding: 1.8rem 1.4rem; }
  .fab-wa { width: 56px; height: 56px; right: 1rem; bottom: 1rem; }
  .fab-wa__tip { display: none; }
  .to-top { right: 1.35rem; bottom: 5.2rem; width: 42px; height: 42px; }
}

/* Accesibilidad: respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
