:root {
  --bg: #070b12;
  --bg-alt: #0c1320;
  --surface: #111a2b;
  --surface-2: #16223a;
  --line: rgba(160, 190, 230, 0.14);
  --text: #e8eef7;
  --muted: #9fb0c8;
  --accent: #19b4f0;
  --accent-2: #3d7bff;
  --silver: #c9d3e0;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.hidden { display: none; }
.small { font-size: .85rem; color: var(--muted); }
.grad {
  background: linear-gradient(90deg, #7fe0ff, var(--accent) 45%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font: 600 .78rem/1 var(--body);
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 1rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #001; padding: 8px 14px; border-radius: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--body); color: #021018;
  background: linear-gradient(135deg, #5fd6ff, var(--accent) 50%, var(--accent-2));
  box-shadow: 0 10px 30px -10px rgba(25, 180, 240, .7);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(25, 180, 240, .9); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn--light { background: #fff; color: #06223a; box-shadow: none; }
.btn--sm { padding: .7em 1.2em; font-size: .92rem; }
.btn--block { width: 100%; }
.link { font-weight: 600; }

/* Barra superior */
.topbar { background: linear-gradient(90deg, #0b3a6b, #0a5b8f); font-size: .9rem; }
.topbar__inner { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 8px 0; text-align: center; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 18, .78); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(7, 11, 18, .92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { width: 170px; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a:not(.btn) { color: var(--silver); font-weight: 500; font-size: .95rem; }
.nav__menu a:not(.btn):hover { color: #fff; text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: grid; align-items: center; overflow: hidden; padding: 80px 0; }
.hero__bg { position: absolute; inset: 0; background: url("img/hero.webp") 72% 58% / cover no-repeat; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,11,18,.97) 0%, rgba(7,11,18,.85) 40%, rgba(7,11,18,.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__inner { position: relative; }
.hero h1 { max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: .5em 1em; border-radius: 999px; background: rgba(25,180,240,.1); border: 1px solid rgba(25,180,240,.3); color: #bfe9fb; font-size: .88rem; }

/* Por qué */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why__item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Secciones */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sub { color: var(--muted); font-size: 1.08rem; }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(25,180,240,.45); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__body .link { margin-top: auto; padding-top: 10px; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; background: var(--accent); color: #021018; margin-bottom: 14px; }
.tag--alt { background: var(--surface-2); color: var(--silver); border: 1px solid var(--line); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 1.7em; margin-bottom: .5em; font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Bloque dividido */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.split__text > p { color: var(--muted); }
.split__text strong { color: var(--text); }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.caption { font-size: .85rem; color: var(--muted); margin-top: .8em; text-align: center; }
.callout { background: var(--surface); border: 1px solid rgba(25,180,240,.3); border-left: 4px solid var(--accent); border-radius: 14px; padding: 24px 26px; margin: 28px 0; }
.callout .ticks { margin-bottom: 1em; }

/* Modalidades */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.plan__body { padding: 28px; }
.plan__body > p { color: var(--muted); }
.plan__line { font-weight: 600; color: var(--accent) !important; font-size: .92rem; }
.plan--featured { border-color: rgba(25,180,240,.55); box-shadow: 0 0 0 1px rgba(25,180,240,.25), var(--shadow); }
.plan__badge { position: absolute; top: 16px; right: 16px; background: var(--accent); color: #021018; font-weight: 700; font-size: .78rem; padding: .45em .9em; border-radius: 999px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.steps li p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps h3 { font-size: 1.05rem; }
.steps__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 700 1.1rem var(--head); color: #021018; background: linear-gradient(135deg, #5fd6ff, var(--accent-2)); margin-bottom: 16px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { padding: 14px 18px; font-size: .9rem; color: var(--muted); }

/* Banda de llamado a la acción */
.band { background: linear-gradient(120deg, #0a4f86, #0c79b8 55%, #19b4f0); padding: 56px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: .25em; color: #fff; }
.band p { margin: 0; color: #dff3ff; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(25,180,240,.45); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list li > span { font-size: 1.3rem; color: var(--accent); width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.contact__list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact__list a { color: var(--text); overflow-wrap: anywhere; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .9rem; font-weight: 500; color: var(--silver); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(25,180,240,.2); }
.form ::placeholder { color: #5f708a; }
.form textarea { resize: vertical; }
.form .small { margin: 0; text-align: center; }

/* Footer */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer img { width: 190px; margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: .93rem; max-width: 40ch; }
.footer__h { font: 600 .85rem var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1em; }
.footer__inner a { display: block; color: var(--silver); margin-bottom: 8px; font-size: .95rem; }
.footer__copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 32px; height: 32px; }

/* Animación */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,11,18,.98); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 14px; }
  .cards, .plans, .gallery { grid-template-columns: 1fr; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 4 / 3; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 56px 0 64px; min-height: auto; }
  .hero__bg { background-position: 62% center; opacity: .55; }
  .hero__cta .btn { width: 100%; }
  .why__grid, .steps { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .nav__logo img { width: 140px; }
  .topbar { font-size: .82rem; }
}

/* ---------- Íconos ---------- */
.ic { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--solid { fill: currentColor; stroke: none; }
.topbar .ic { margin-right: 4px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips .ic { color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 6px; }
.link .ic { transition: transform .2s; }
.link:hover .ic { transform: translateX(4px); }

.card__icon, .why__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  color: var(--accent); background: rgba(25,180,240,.1); border: 1px solid rgba(25,180,240,.28);
}
.card__icon .ic, .why__icon .ic { width: 24px; height: 24px; }

/* ---------- Bloque de ley ---------- */
.law { padding: 0 0 40px; margin-top: -40px; position: relative; z-index: 2; }
.law__box {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(25,180,240,.3); border-radius: 24px; padding: 40px; box-shadow: var(--shadow);
}
.law__head { max-width: 760px; margin-bottom: 28px; }
.law__head p:last-child { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.stat .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; display: block; }
.stat strong { display: block; font: 700 1.6rem/1.1 var(--head); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }

.plan__badge { display: inline-flex; align-items: center; gap: 6px; z-index: 1; }
.plan__body .card__icon { margin-top: -52px; position: relative; background: var(--surface-2); }

.contact__list li > span .ic { width: 22px; height: 22px; }
.form__note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; }
.form__note .ic { margin-top: 3px; color: var(--accent); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--silver); margin: 0; }
.social a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.social .ic { width: 20px; height: 20px; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; padding: 90px 0 70px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("/img/real-contenedor.webp") center / cover; opacity: .18; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,18,.4), var(--bg)); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--silver); }
.prose { color: var(--muted); }
.prose h2 { color: var(--text); margin-top: 1.6em; }
.prose h3 { color: var(--text); margin-top: 1.4em; }
.prose strong { color: var(--text); }
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.req h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.req h3 .ic { color: var(--accent); width: 22px; height: 22px; }
.req ul { margin: 0; padding-left: 1.2em; }
.req li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { color: var(--text); font-family: var(--head); font-weight: 600; background: var(--surface); }
.notice { display: flex; gap: 14px; padding: 18px 22px; border-radius: 14px; background: rgba(25,180,240,.07); border: 1px solid rgba(25,180,240,.3); font-size: .9rem; color: var(--muted); margin: 28px 0; }
.notice .ic { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.cta-box { text-align: center; background: linear-gradient(120deg, #0a4f86, #0c79b8 55%, #19b4f0); border-radius: 24px; padding: 48px 28px; margin-top: 56px; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #dff3ff; max-width: 52ch; margin: 0 auto 24px; }
.cta-box .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Gracias / 404 */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.thanks__logo { width: 200px; margin: 0 auto 40px; }
.thanks__check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 24px; color: #021018; background: linear-gradient(135deg, #5fd6ff, var(--accent-2)); }
.thanks__check .ic { width: 38px; height: 38px; stroke-width: 3; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.thanks p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.thanks .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .law { margin-top: 0; }
  .law__box { padding: 26px 20px; }
  .stats, .reqs { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
}
.card__img img.pos-low { object-position: 30% 72%; }
