/* =========================================================
   Blue Páginas Web — estilos
   Color principal: #1b212b · Acento: azul
   Secciones alternas: #ffffff y #f7f8f9
   ========================================================= */
:root {
  --navy: #1b212b;
  --navy-2: #232b37;
  --white: #ffffff;
  --alt: #f7f8f9;
  --text: #1b212b;
  --text-soft: #4d5665;
  --muted: #8a93a2;
  --on-dark: #eef2f8;
  --on-dark-soft: rgba(238, 242, 248, .7);
  --accent: #3a86ff;
  --accent-2: #74aaff;
  --accent-3: #00c2ff;
  --line: rgba(27, 33, 43, .1);
  --line-light: rgba(238, 242, 248, .14);
  --radius: 24px;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--accent); color: #fff; padding: 8px 14px; }

/* ===== Aurora boreal azul (fondo animado) ===== */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: var(--navy); }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen;
  will-change: transform;
}
.aurora i:nth-child(1) { width: 60vw; height: 38vw; left: -12vw; top: -14vw; background: #2f6bff; animation: au1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vw; height: 30vw; right: -10vw; top: 0; background: #00b4ff; opacity: .4; animation: au2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 46vw; height: 26vw; left: 22vw; bottom: -14vw; background: #5b4bff; opacity: .38; animation: au3 26s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 70vw; height: 12vw; left: 10vw; top: 30%; background: #39d0ff; opacity: .22; filter: blur(60px); animation: au4 14s ease-in-out infinite alternate; }
.aurora::after { /* velo para que el texto siempre se lea */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27, 33, 43, .15), rgba(27, 33, 43, .55));
}
@keyframes au1 { to { transform: translate(18vw, 8vw) rotate(25deg) scale(1.15); } }
@keyframes au2 { to { transform: translate(-22vw, 10vw) rotate(-20deg) scale(.9); } }
@keyframes au3 { to { transform: translate(14vw, -12vw) rotate(30deg) scale(1.2); } }
@keyframes au4 { 0% { transform: translateX(-10vw) skewY(-6deg); } 100% { transform: translateX(12vw) skewY(6deg) scaleY(1.6); } }

/* ===== Encabezado fijo ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--on-dark);
  transition: background .4s, box-shadow .4s;
}
.header.is-solid {
  background: rgba(27, 33, 43, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-light);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo img { height: 26px; width: auto; }
.header__end { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { position: relative; color: var(--on-dark-soft); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { color: #fff; background: var(--accent); padding: 10px 20px; border-radius: 999px; transition: background .3s; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: var(--accent-2); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.menu-btn__dots { display: grid; gap: 5px; }
.menu-btn__dots i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .menu-btn__dots i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn__dots i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ===== Menú pantalla completa (celular) ===== */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--navy); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { display: grid; position: relative; }
.menu__links a { overflow: hidden; font-size: clamp(34px, 9vw, 72px); line-height: 1.15; letter-spacing: -.04em; padding-bottom: .04em; }
.menu__links a:last-child { color: var(--accent-2); }
.menu__links span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.menu-open .menu__links span { transform: none; }
.menu-open .menu__links a:nth-child(n+2) span { transition-delay: .06s; }
.menu-open .menu__links a:nth-child(n+4) span { transition-delay: .12s; }
.menu-open .menu__links a:nth-child(n+6) span { transition-delay: .18s; }
.menu__foot { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 15px; }

/* ===== Hero con aurora ===== */
.hero { position: relative; isolation: isolate; color: var(--on-dark); background: var(--navy); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; padding: calc(var(--header-h) + clamp(48px, 7vw, 100px)) var(--gutter) clamp(56px, 7vw, 96px); }
.hero__crumb { margin: 0 0 20px; font-size: 14px; color: var(--on-dark-soft); }
.hero__crumb a:hover { color: var(--on-dark); }
.hero__title { font-size: clamp(44px, 7.4vw, 120px); line-height: 1; letter-spacing: -.05em; max-width: 14ch; }
.hero--page .hero__title { font-size: clamp(42px, 6.4vw, 104px); }
.hero__title em { color: var(--accent-2); }
.line { display: block; overflow: hidden; padding: .02em 0 .16em; margin-bottom: -.12em; }
.line > span { display: inline-block; transform: translateY(115%); transition: transform 1.2s var(--ease-out); }
.is-loaded .hero .line > span, .line.is-in > span { transform: none; }
.hero .line:nth-child(2) > span { transition-delay: .08s; }
.hero .line:nth-child(3) > span { transition-delay: .16s; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap;
  margin-top: clamp(28px, 3.4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-light);
  opacity: 0; transform: translateY(20px); transition: opacity 1s .5s, transform 1s .5s var(--ease-out);
}
.is-loaded .hero__meta { opacity: 1; transform: none; }
.hero__meta p { max-width: 520px; margin: 0; color: var(--on-dark-soft); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; background: var(--navy); color: #fff;
  font: 500 15px var(--sans); border: 0; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--accent { background: var(--accent); }
.btn--accent::before { background: #fff; }
.btn--accent:hover { color: var(--navy); }
.btn--ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238, 242, 248, .35); }
.btn--ghost:hover { color: #fff; box-shadow: none; }
.btn--big { font-size: 17px; padding: 18px 30px; }

/* ===== Secciones ===== */
.section { position: relative; padding: clamp(64px, 7.5vw, 112px) var(--gutter); background: var(--white); }
.section--alt { background: var(--alt); }
.section__head { display: grid; grid-template-columns: 1fr 3fr; gap: 16px 24px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 64px); }
.eyebrow { margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section__head .eyebrow { align-self: start; padding-top: .6em; }
.h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.04em; max-width: 18ch; }
.h2 em { color: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--text-soft); max-width: 52ch; margin: 0; }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-words .w { display: inline-block; opacity: .16; transition: opacity .5s; }
.reveal-words .w.on { opacity: 1; }

/* ===== Texto + imagen redondeada ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev .split__media { order: -1; }
.split__text .eyebrow { margin-bottom: 22px; }
.statement { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.22; letter-spacing: -.025em; margin: 0 0 24px; }
.split__text .lead { margin-top: 8px; }
.split__media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4;
  background: var(--alt); box-shadow: 0 30px 60px -30px rgba(27, 33, 43, .35);
  clip-path: inset(12% 6% 12% 6% round var(--radius)); transition: clip-path 1.4s var(--ease);
}
.split__media.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.split__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.split__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 1; padding: 10px 16px; border-radius: 999px;
  background: rgba(27, 33, 43, .72); color: #fff; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ===== Servicios (inicio) ===== */
.services__list { list-style: none; margin: 0; padding: 0; }
.service {
  display: grid; grid-template-columns: 56px 1.2fr 1.6fr auto; gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line);
}
.services__list li:last-child .service { border-bottom: 1px solid var(--line); }
.service__n { color: var(--muted); font-size: 14px; }
.service h3 { font-size: clamp(26px, 3.2vw, 46px); letter-spacing: -.035em; line-height: 1.05; transition: color .4s, transform .6s var(--ease); }
.service p { margin: 0; color: var(--text-soft); max-width: 44ch; }
.service__price { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--accent); white-space: nowrap; }
.service__arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text); transition: background .4s, border-color .4s, color .4s, transform .5s var(--ease);
}
.service:hover h3 { color: var(--accent); transform: translateX(10px); }
.service:hover .service__arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ===== Tarjetas ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius); background: var(--alt);
  border: 1px solid var(--line); transition: transform .6s var(--ease-out), box-shadow .6s;
}
.section--alt .feature { background: var(--white); }
.feature:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(27, 33, 43, .2); }
.feature__n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; font-size: 14px; font-weight: 500; }
.feature h3 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.025em; margin: 18px 0 8px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* ===== Proceso ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 28px 0 0; border-top: 2px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--accent);
  transition: width 1.2s var(--ease-out) .2s;
}
.steps li.is-in::before { width: 100%; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--accent); line-height: 1; }
.steps h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 16px; }

/* ===== Planes ===== */
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius);
  background: var(--alt); color: var(--text); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.section--alt .plan { background: var(--white); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(27, 33, 43, .25); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.plan h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.plan__tag { flex: none; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan__price { font-size: clamp(42px, 4vw, 58px); letter-spacing: -.045em; line-height: 1.05; margin: 22px 0 0; color: var(--navy); }
.plan__period { display: block; font-size: 14px; letter-spacing: 0; color: var(--muted); margin: 6px 0 0; }
.plan__desc { color: var(--text-soft); margin: 16px 0 20px; font-size: 16px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.plan li { padding: 11px 0 11px 30px; border-top: 1px solid var(--line); position: relative; font-size: 15px; color: var(--text-soft); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(58, 134, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a86ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan .btn { width: 100%; }
.plan--featured { background: var(--navy) !important; color: var(--on-dark); border-color: var(--navy); overflow: hidden; }
.plan--featured::before {
  content: ""; position: absolute; width: 120%; height: 70%; right: -40%; top: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 134, 255, .45), transparent 65%); pointer-events: none;
}
.plan--featured > * { position: relative; }
.plan--featured .plan__price { color: #fff; }
.plan--featured .plan__period, .plan--featured .plan__desc { color: var(--on-dark-soft); }
.plan--featured li { border-color: var(--line-light); color: var(--on-dark); }
.plan--featured li::before { background-color: rgba(116, 170, 255, .2); }
.plan--featured .btn { background: var(--accent); }
.plan--featured .btn::before { background: #fff; }
.plan--featured .btn:hover { color: var(--navy); }
.plans__note { margin: 24px 0 0; color: var(--muted); font-size: 15px; }

/* ===== Preguntas frecuentes (acordeón animado) ===== */
.faq__list { max-width: 980px; margin-left: auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -.015em; transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  flex: none; position: relative; width: 42px; height: 42px; border-radius: 50%; color: var(--text);
  border: 1px solid var(--line); transition: background .5s var(--ease), border-color .5s, color .5s, transform .6s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: currentColor; transition: transform .6s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item summary:hover .faq__icon { border-color: var(--accent); color: var(--accent); }
.faq__item.is-open .faq__icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body p {
  margin: 0; padding: 0 66px 26px 0; color: var(--text-soft); max-width: 66ch;
  opacity: 0; transform: translateY(-12px); transition: opacity .45s, transform .6s var(--ease-out);
}
.faq__item.is-open .faq__body p { opacity: 1; transform: none; transition-delay: .1s; }

/* ===== Solicitar una asesoría ===== */
.contact { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--navy); padding: clamp(64px, 7.5vw, 112px) var(--gutter); }
.contact > :not(.aurora) { position: relative; z-index: 1; }
.contact .aurora i { opacity: .32; }
.contact .eyebrow { color: var(--on-dark-soft); }
.contact__title { font-size: clamp(42px, 6.4vw, 100px); line-height: 1; letter-spacing: -.05em; margin: 20px 0 clamp(32px, 4vw, 56px); }
.contact__title em { color: var(--accent-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__intro p { margin: 0 0 24px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 32ch; }
.contact__intro ul { list-style: none; margin: 0; padding: 0; }
.contact__intro li { padding: 13px 0 13px 28px; border-top: 1px solid var(--line-light); position: relative; color: var(--on-dark-soft); }
.contact__intro li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent-2); }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: rgba(35, 43, 55, .72); border: 1px solid var(--line-light);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--on-dark-soft); }
.form__full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: 400 17px var(--sans); color: var(--on-dark); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-light); padding: 10px 0; border-radius: 0; outline: none; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { border-color: var(--accent-2); }
.form textarea { resize: vertical; }
.form .btn { grid-column: 1 / -1; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form__status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; color: var(--on-dark); }
.form__status.is-error { color: #ff9a9a; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Pie de página con degradado ===== */
.footer { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: #10141b; padding: clamp(56px, 6vw, 88px) var(--gutter) 24px; }
.footer::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: conic-gradient(from 180deg at 50% 100%, #10141b 0deg, #1d3d8f 60deg, #3a86ff 110deg, #00c2ff 150deg, #5b4bff 200deg, #10141b 260deg);
  filter: blur(80px); opacity: .5; animation: footerFlow 16s linear infinite alternate;
}
.footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 20, 27, .2), #10141b 75%); }
@keyframes footerFlow { to { transform: translateX(8%) rotate(8deg) scale(1.1); } }
.footer__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(58, 134, 255, .22), rgba(0, 194, 255, .08));
  border: 1px solid rgba(116, 170, 255, .25);
}
.footer__cta h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.035em; line-height: 1.1; }
.footer__cta h2 em { color: var(--accent-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding: clamp(40px, 5vw, 64px) 0; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; margin-bottom: 14px; }
.footer__logo img { height: 28px; width: auto; }
.footer__grid p { margin: 0; max-width: 36ch; color: var(--on-dark-soft); }
.footer__grid h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.footer__grid nav { display: grid; gap: 8px; align-content: start; }
.footer__grid nav a { color: var(--on-dark-soft); transition: color .3s, transform .3s; width: fit-content; }
.footer__grid nav a:hover { color: #fff; transform: translateX(4px); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 14px; color: var(--muted); }

/* ===== Volver arriba ===== */
.to-top {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 12px 30px -8px rgba(58, 134, 255, .6);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease-out);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ===== Pantallas medianas y pequeñas ===== */
@media (max-width: 1180px) {
  .nav a:not(.nav__cta) { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; }
  .split, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .service__arrow { display: none; }
  .features, .plans__grid { grid-template-columns: 1fr; }
  .features--4, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .form, .features--4, .steps { grid-template-columns: 1fr; }
  .faq__body p { padding-right: 0; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .logo span { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .line > span, .hero__meta { opacity: 1 !important; transform: none !important; }
  .reveal-words .w { opacity: 1; }
  .split__media { clip-path: none !important; }
}
