/* =========================================================
   HACESOL – Nuevo diseño corporativo
   Paleta: Azul marino + Ámbar solar
   ========================================================= */

:root {
  --navy-900: #0B1F3A;
  --navy-800: #122B4D;
  --navy-700: #16345C;
  --navy-600: #1B3A5C;
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FFB020;
  --amber-300: #FFC94D;
  --amber-soft: #FFF7E6;
  --bg: #F7F9FC;
  --bg-soft: #EEF3F9;
  --white: #FFFFFF;
  --text: #1B2A41;
  --muted: #5B6B84;
  --border: rgba(11, 31, 58, .10);
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .18);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --font-head: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; color: var(--navy-900); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.01em; }
h3 { font-size: 1.16rem; }
section[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

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

.container {
  width: min(1180px, 100% - 44px);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.text-amber { color: var(--amber-300); }

/* ---------- Eyebrows y títulos de sección ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber-300);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--amber-600); }
.section__lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; }
.section--dark .section__lead { color: #B9C7DA; }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--amber {
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(245, 158, 11, .32);
}
.btn--amber:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(245, 158, 11, .42); }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, .55); color: #fff;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn--navy { background: var(--navy-900); color: #fff; box-shadow: 0 10px 24px rgba(11, 31, 58, .28); }
.btn--navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--whatsapp {
  background: #25D366; color: #062B16; margin-top: 30px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 211, 102, .4); }
.btn--whatsapp svg { width: 20px; height: 20px; }
.btn--sm { padding: 10px 21px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  transition: background .3s ease, box-shadow .3s ease;
}
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand__logo { width: 208px; height: auto; }
.brand__word { fill: var(--navy-900); transition: fill .3s ease; }
.brand__tag { fill: #64748B; transition: fill .3s ease; }
.brand:hover .brand__word { fill: var(--amber-600); }

.header.is-scrolled,
.header.menu-open {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(11, 31, 58, .10);
}
/* Sobre el hero (header transparente): logo y links claros */
.header:not(.is-scrolled):not(.menu-open) .brand__word { fill: #fff; }
.header:not(.is-scrolled):not(.menu-open) .brand__tag { fill: rgba(255, 255, 255, .72); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 9px 13px;
  font-size: .95rem; font-weight: 500; color: var(--navy-900);
  border-radius: 8px; transition: color .2s ease, background .2s ease;
}
.header:not(.is-scrolled):not(.menu-open) .nav__list a { color: rgba(255, 255, 255, .9); }
.nav__list a:hover { color: var(--amber-500); background: rgba(245, 158, 11, .10); }
.header:not(.is-scrolled):not(.menu-open) .nav__list a:hover { color: var(--amber-300); background: rgba(255, 255, 255, .10); }
.nav__list a.is-active { color: var(--amber-500); font-weight: 600; }
.header:not(.is-scrolled):not(.menu-open) .nav__list a.is-active { color: var(--amber-300); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .12);
}
.header.is-scrolled .nav-toggle, .header.menu-open .nav-toggle { background: var(--bg-soft); }
.nav-toggle span {
  width: 21px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.header.is-scrolled .nav-toggle span, .header.menu-open .nav-toggle span { background: var(--navy-900); }
.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 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 56px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(102deg, rgba(11, 31, 58, .96) 0%, rgba(11, 31, 58, .88) 42%, rgba(18, 43, 77, .58) 100%),
    linear-gradient(to top, rgba(8, 17, 32, .85) 0%, transparent 38%);
}
.hero__content { position: relative; z-index: 2; max-width: 860px; }
.hero__title {
  font-size: clamp(2.35rem, 5.4vw, 4.15rem);
  font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.06;
}
.hero__lead {
  margin-top: 22px; max-width: 640px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: #CBD7E6;
}
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 38px;
}
.hero__badges li {
  display: flex; align-items: center; gap: 9px;
  font-size: .9rem; color: rgba(255, 255, 255, .82);
}
.hero__badges svg { width: 18px; height: 18px; color: var(--amber-300); flex: none; }

.hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 58px;
}
.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  border-radius: 18px; padding: 20px 22px;
}
.stat__num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.55rem, 2.4vw, 2rem); color: var(--amber-300); line-height: 1.1;
}
.stat__num small { font-size: .55em; font-weight: 600; }
.stat__label { display: block; margin-top: 6px; font-size: .84rem; color: #C4D1E2; line-height: 1.45; }

/* ---------- Secciones ---------- */
.section { padding: clamp(66px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(245, 158, 11, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #DCE5F0;
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

/* ---------- Grillas ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Tarjetas de servicio ---------- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service { padding: 30px 26px; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-600);
  margin-bottom: 20px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.service:hover .service__icon { background: linear-gradient(135deg, var(--amber-300), var(--amber-500)); color: var(--navy-900); transform: rotate(-6deg); }
.service__icon svg { width: 27px; height: 27px; }
.service h3 { margin-bottom: 9px; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Sistemas ---------- */
.system {
  position: relative;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px; padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.system:hover { transform: translateY(-6px); border-color: rgba(255, 201, 77, .5); background: rgba(255, 255, 255, .08); }
.system--featured {
  background: linear-gradient(170deg, rgba(245, 158, 11, .16), rgba(255, 255, 255, .05));
  border-color: rgba(255, 201, 77, .55);
}
.system__tag {
  position: absolute; top: -13px; left: 30px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  color: var(--navy-900); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .35);
}
.system__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(255, 201, 77, .14); color: var(--amber-300);
  border: 1px solid rgba(255, 201, 77, .3);
}
.system__icon svg { width: 28px; height: 28px; }
.system h3 { margin-bottom: 12px; }
.system > p { color: #B9C7DA; font-size: .96rem; }
.system__list { margin: 20px 0 26px; display: grid; gap: 10px; }
.system__list li {
  position: relative; padding-left: 28px;
  font-size: .92rem; color: #D3DEEC;
}
.system__list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.system__link {
  margin-top: auto; font-weight: 600; font-size: .95rem;
  color: var(--amber-300); transition: letter-spacing .25s ease, color .25s ease;
}
.system__link:hover { letter-spacing: .03em; color: var(--amber-400); }

/* ---------- Beneficios ---------- */
.benefits {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.benefits__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.benefits__subtitle {
  font-size: .84rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber-600); margin-bottom: 14px;
}
.check-list { display: grid; gap: 11px; }
.check-list li {
  position: relative; padding-left: 30px;
  font-size: .95rem; color: var(--text);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background-color: var(--amber-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.check-list--two { grid-template-columns: 1fr 1fr; margin: 26px 0 32px; gap: 12px 24px; }
.benefits__note {
  margin-top: 30px; background: var(--amber-soft);
  border-left: 4px solid var(--amber-500); border-radius: 0 12px 12px 0;
  padding: 16px 20px; font-size: .95rem; color: #43506B;
}
.benefits__media { position: relative; padding-bottom: 70px; }
.benefits__img { border-radius: 22px; box-shadow: var(--shadow-lg); object-fit: cover; }
.benefits__img--main { width: 100%; aspect-ratio: 4 / 3.4; }
.benefits__img--float {
  position: absolute; left: -26px; bottom: 24px;
  width: 52%; aspect-ratio: 4 / 3;
  border: 7px solid var(--white);
}
.benefits__badge {
  position: absolute; top: -22px; right: -10px;
  background: var(--navy-900); color: #fff;
  border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; max-width: 250px;
  box-shadow: var(--shadow-md);
}
.benefits__badge-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: var(--amber-300); line-height: 1;
}
.benefits__badge-txt { font-size: .8rem; line-height: 1.4; color: #C4D1E2; }

/* ---------- Proyectos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 10px 22px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border);
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: all .25s ease;
}
.filter:hover { border-color: var(--amber-500); color: var(--amber-600); transform: translateY(-2px); }
.filter.is-active {
  background: var(--navy-900); border-color: var(--navy-900);
  color: #fff; box-shadow: 0 8px 20px rgba(11, 31, 58, .25);
}
.project { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project.is-hidden { display: none; }
.project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.project:hover .project__media img { transform: scale(1.07); }
.project__cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11, 31, 58, .88); backdrop-filter: blur(6px);
  color: var(--amber-300); font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
}
.project__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.project__body p { color: var(--muted); font-size: .9rem; }
.project__cta {
  margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--amber-600);
  transition: transform .25s ease;
}
.project:hover .project__cta { transform: translateX(5px); }

/* ---------- Empresa ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 68px); align-items: center; }
.about__media { position: relative; padding: 0 40px 60px 0; }
.about__img { width: 86%; border-radius: 22px; box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4 / 3.6; }
.about__img--offset {
  position: absolute; right: 0; bottom: 0;
  width: 54%; aspect-ratio: 4 / 3.2;
  border: 8px solid var(--white);
}
.about__stamp {
  position: absolute; top: -18px; right: 6px; z-index: 2;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  color: var(--navy-900); border-radius: 16px;
  padding: 13px 17px; display: flex; align-items: center; gap: 11px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, .4);
  font-size: .82rem; font-weight: 700; line-height: 1.25;
}
.about__stamp svg { width: 26px; height: 26px; flex: none; }
.about__text p { color: var(--muted); margin-top: 16px; }
.about__text h2 + p { margin-top: 18px; }

/* ---------- Contacto ---------- */
.section--contact { padding-bottom: clamp(76px, 10vw, 128px); }
.contact { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact__list { margin-top: 36px; display: grid; gap: 24px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  width: 46px; height: 46px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 201, 77, .14); color: var(--amber-300);
  border: 1px solid rgba(255, 201, 77, .3);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-300); margin-bottom: 3px; }
.contact__list a, .contact__list span { display: block; color: #E4EBF4; font-size: 1.02rem; line-height: 1.55; }
.contact__list a:hover { color: var(--amber-300); }

.contact__form-wrap {
  background: var(--white); border-radius: 26px;
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row--captcha { align-items: end; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form__row .field { margin-bottom: 0; }
.form__row + .form__row { margin-top: 18px; }
.field label { font-size: .87rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: #F4F7FB;
  border: 1.5px solid #DEE6F1; border-radius: var(--radius-sm);
  padding: 12.5px 15px; font-size: .97rem; color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6B84' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea {
  border-color: #E11D48; background: #FFF5F7;
}
.field__error { display: block; min-height: 17px; font-size: .8rem; color: #E11D48; margin-top: 5px; }
.form__hint { font-size: .84rem; color: var(--muted); padding-bottom: 12px; margin: 0; }
.field--captcha { flex: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--block { position: relative; margin-top: 6px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(11, 31, 58, .25); border-top-color: var(--navy-900);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  margin-top: 16px; padding: 13px 17px; border-radius: var(--radius-sm);
  font-size: .94rem; font-weight: 500; display: none;
}
.form__status.is-ok { display: block; background: #E7F8EF; color: #0F7B45; border: 1px solid #B5ECD0; }
.form__status.is-err { display: block; background: #FFF1F3; color: #BE123C; border: 1px solid #FECDD3; }

/* ---------- Footer ---------- */
.footer { background: #081627; color: #93A4BE; padding-top: 64px; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 42px;
  padding-bottom: 48px;
}
.footer__brand p { margin-top: 18px; font-size: .92rem; max-width: 320px; }
.footer__col h4 {
  color: var(--amber-300); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .94rem; transition: color .2s ease; }
.footer__col a:hover { color: #fff; }
.footer__col li { font-size: .94rem; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 22px; padding-bottom: 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .84rem; color: #7C8CA6;
}
.footer__bottom a { color: var(--amber-300); }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------- Modal de proyecto ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 15, 28, .78); backdrop-filter: blur(5px);
  animation: fadeIn .25s ease;
}
.modal__dialog {
  position: relative; z-index: 1;
  width: min(940px, 100%); max-height: 92vh; overflow: auto;
  background: var(--white); border-radius: 24px;
  display: grid; grid-template-columns: 1.05fr .95fr;
  box-shadow: var(--shadow-lg);
  animation: popIn .3s cubic-bezier(.16, 1, .3, 1);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 31, 58, .75); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.modal__close:hover { background: var(--amber-500); color: var(--navy-900); transform: rotate(90deg); }
.modal__close svg { width: 19px; height: 19px; }
.modal__media { position: relative; background: var(--navy-900); min-height: 320px; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background .2s ease;
}
.modal__nav:hover { background: var(--amber-300); }
.modal__nav svg { width: 20px; height: 20px; }
.modal__nav--prev { left: 14px; }
.modal__nav--next { right: 14px; }
.modal__nav[hidden] { display: none; }
.modal__count {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(11, 31, 58, .8); color: #fff;
  font-size: .8rem; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}
.modal__body { padding: 36px 34px; }
.chip {
  display: inline-block; background: var(--amber-soft); color: var(--amber-600);
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.modal__body h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal__body p { color: var(--muted); font-size: .97rem; }
.modal__specs { margin: 22px 0 28px; display: grid; gap: 9px; }
.modal__specs li {
  position: relative; padding-left: 26px; font-size: .93rem; color: var(--text);
}
.modal__specs li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
body.modal-open { overflow: hidden; }

/* ---------- WhatsApp flotante ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .25s ease;
}
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .65);
  animation: pulse 2.2s ease-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ---------- Animaciones de entrada ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .1s; }
.js [data-delay="2"] { transition-delay: .2s; }
.js [data-delay="3"] { transition-delay: .3s; }
.js [data-delay="4"] { transition-delay: .42s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .benefits, .about, .contact { grid-template-columns: 1fr; }
  .benefits__media { max-width: 560px; }
  .about__media { max-width: 560px; }
  .check-list--two { grid-template-columns: 1fr; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__media { min-height: 260px; max-height: 46vh; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(11, 31, 58, .16);
    padding: 12px 22px 22px;
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    color: var(--navy-900) !important;
    padding: 14px 8px; font-size: 1.03rem; font-weight: 500;
    border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .nav__list a:hover { background: none; color: var(--amber-600) !important; }
  .nav__list a.is-active { color: var(--amber-600) !important; }
  .nav__cta { margin-top: 16px; text-align: center; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 72px); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .benefits__cols { grid-template-columns: 1fr; gap: 24px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__row .field { margin-bottom: 18px; }
  .form__row + .form__row { margin-top: 0; }
  .form__row--captcha .form__hint { padding-bottom: 18px; }
  .benefits__badge { position: static; margin-top: 18px; max-width: none; }
  .benefits__media { padding-bottom: 0; }
  .benefits__img--float { position: static; width: 100%; margin-top: 16px; border: 0; }
}

@media (max-width: 640px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .about__media { padding-right: 0; }
  .about__img { width: 100%; }
  .about__img--offset { display: none; }
  .about__stamp { top: auto; bottom: -20px; right: 16px; }
  .modal { padding: 12px; }
  .modal__body { padding: 26px 22px; }
  .fab-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .brand__logo { width: 172px; }
}
