/* ============================================================
   Marin IA estudio — Landing premium
   Arquetipo: Mouse-Reactive Gradient (tech/estudio)
   Vanilla, sin dependencias. Mobile-first.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tokens ---------- */
:root {
  --bg:      #08090c;      /* casi negro, ligeramente frío */
  --bg-2:    #0f1218;
  --card:    #12151d;
  --ink:     #f4f6fb;      /* casi blanco */
  --mute:    #98a2b3;
  --faint:   #5b6472;
  --line:    rgba(244,246,251,.10);
  --accent:  #4f8cff;      /* azul eléctrico */
  --accent-2:#22d3ee;      /* cian */
  --g1: #4f46e5;           /* indigo */
  --g2: #8b5cf6;           /* violeta */
  --g3: #06b6d4;           /* cian */
  --g4: #3b82f6;           /* azul */
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Fondo reactivo al ratón (fijo, detrás de todo) ---------- */
.bg-gradient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at var(--mx, 30%) var(--my, 20%), color-mix(in srgb, var(--g1) 60%, transparent) 0%, transparent 55%),
    radial-gradient(50vmax 50vmax at calc(var(--mx, 70%) + 15%) calc(var(--my, 65%) + 5%), color-mix(in srgb, var(--g2) 55%, transparent) 0%, transparent 55%),
    radial-gradient(55vmax 55vmax at 80% 15%, color-mix(in srgb, var(--g3) 45%, transparent) 0%, transparent 55%),
    radial-gradient(45vmax 45vmax at 15% 85%, color-mix(in srgb, var(--g4) 50%, transparent) 0%, transparent 55%);
  filter: blur(40px) saturate(135%);
  opacity: .55;
  transition: background .35s var(--ease);
  animation: bgDrift 26s ease-in-out infinite;
}
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes bgDrift {
  0%,100% { transform: scale(1) translate(0,0); }
  50%     { transform: scale(1.15) translate(-2%, 1%); }
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-2); font-weight: 500;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--ink); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--g2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.nav .brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--accent);
}
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a { font-size: .92rem; color: var(--mute); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav { padding: 18px 40px; } .wrap { padding: 0 40px; } }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 0 60px;
}
.hero .wrap { display: flex; flex-direction: column; gap: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: .8rem; color: var(--mute);
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.7rem, 9vw, 6rem); line-height: .98; letter-spacing: -.03em;
  text-wrap: balance; max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent-2) 60%, var(--g2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--mute); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-scroll { margin-top: 30px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 10px; }
.hero-scroll .line { width: 46px; height: 1px; background: var(--faint); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 2.4s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* ---------- Secciones genéricas ---------- */
.section { padding: clamp(70px, 12vw, 130px) 0; }
.section-head { max-width: 40ch; margin-bottom: 46px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; letter-spacing: -.025em;
  margin-top: 12px; text-wrap: balance;
}
.section-head p { color: var(--mute); margin-top: 14px; font-size: 1.05rem; }

/* ---------- SERVICIOS (acordeón de filas) ---------- */
.services { border-top: 1px solid var(--line); }
.service {
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.service:hover { background: rgba(255,255,255,.02); }
.service-head {
  width: 100%; text-align: left; background: none; border: none;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 26px 6px;
}
.service-num { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); width: 34px; }
.service-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3.5vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; }
.service-right { display: flex; align-items: center; gap: 16px; }
.service-price {
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink);
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); white-space: nowrap;
}
.service-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; transition: transform .35s var(--ease), background .3s, border-color .3s;
  color: var(--mute); font-size: 1.2rem; line-height: 1;
}
.service.open .service-toggle { transform: rotate(45deg); background: var(--accent); border-color: transparent; color: #fff; }
.service-body {
  height: 0; overflow: hidden;
  transition: height .42s var(--ease);
}
.service-inner { padding: 0 6px 30px calc(34px + 16px); display: flex; flex-direction: column; gap: 16px; }
.service-desc { color: var(--mute); max-width: 60ch; }
.service-feats { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.service-feats span {
  font-size: .85rem; color: var(--ink); padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.service-inner .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .service-head { grid-template-columns: auto 1fr; grid-auto-rows: auto; padding: 22px 4px; }
  .service-right { grid-column: 1 / -1; justify-content: space-between; padding-left: 50px; }
  .service-inner { padding-left: 6px; }
}

/* ---------- PROCESO ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step {
  padding: 28px 22px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  position: relative; overflow: hidden;
}
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity .4s;
}
.step:hover::before { opacity: 1; }
.step-num { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 14px 0 8px; letter-spacing: -.01em; }
.step p { color: var(--mute); font-size: .95rem; }

/* ---------- TRUST ROW ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  padding: 22px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); text-align: center;
}
.trust-item .ic { font-size: 1.6rem; margin-bottom: 8px; }
.trust-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.trust-item p { color: var(--mute); font-size: .85rem; }

/* ---------- CONTACTO ---------- */
.contact { text-align: center; }
.contact .eyebrow { display: block; margin-bottom: 18px; }
.contact-huge {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 5rem); line-height: 1; letter-spacing: -.03em;
  text-wrap: balance;
}
.contact-huge .grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.contact-mail {
  display: inline-block; margin-top: 36px; font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.7rem); font-weight: 500; position: relative; color: var(--ink);
}
.contact-mail::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.contact-mail:hover::after { width: 100%; }
.contact-loc { margin-top: 26px; color: var(--faint); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 40px 0;
  display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center;
}
.footer .brand { font-family: var(--font-display); font-weight: 700; }
.footer p { color: var(--faint); font-size: .84rem; }
.footer a.panel-link { color: var(--faint); font-size: .8rem; border-bottom: 1px dotted var(--faint); }
.footer a.panel-link:hover { color: var(--mute); }

/* ---------- Reveal on scroll (robusto: solo activo con JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* Gate SOLO lo intrusivo bajo reduced-motion (no los reveals ni micro-interacciones) */
@media (prefers-reduced-motion: reduce) {
  .bg-gradient { animation: none; }
  .hero-scroll .line::after { animation: none; }
  .hero-badge .pulse { animation: none; }
}

/* ============================================================
   AÑADIDOS v2
   ============================================================ */

/* ---------- SPLASH ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
  /* Red de seguridad CSS: se va sola a los 3.5s aunque el JS falle */
  animation: splashSafety .01s 3.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-inner { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.splash-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  animation: splashPulse 1.1s ease-in-out infinite;
}
@keyframes splashPulse { 0%,100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.5); opacity: .5 } }
.splash-name { opacity: .9; }

/* ---------- BARRA DE PROGRESO ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .1s linear;
}

/* ---------- MENÚ MÓVIL ---------- */
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 860px) { .nav-burger { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 30px 26px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  padding: 14px 0; border-bottom: 1px solid var(--line); letter-spacing: -.02em;
}
.mobile-menu a.btn { border-bottom: none; margin-top: 22px; font-size: 1rem; justify-content: center; }
@media (min-width: 860px) { .mobile-menu { display: none; } }

/* ---------- HERO: lienzo animado + orbe ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; pointer-events: none; }
.hero-orb {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(62vw, 560px); aspect-ratio: 1;
  right: -14%; top: 46%; transform: translateY(-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--g4), var(--g2), var(--g3), var(--g1), var(--g4));
  filter: blur(58px); opacity: .3;
  animation: orbSpin 22s linear infinite;
}
@keyframes orbSpin { to { transform: translateY(-50%) rotate(360deg); } }
@media (max-width: 720px) { .hero-orb { right: -35%; top: 30%; opacity: .26; } }

/* ---------- SOBRE MÍ ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.about-text h2 {
  font-family: var(--font-display); font-weight: 700; margin: 12px 0 18px;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance;
}
.about-text p { color: var(--mute); margin-bottom: 14px; max-width: 56ch; }
.about-text .btn { margin-top: 10px; }
.about-card { display: grid; gap: 12px; }
.about-stat {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  transition: border-color .3s, transform .3s var(--ease);
}
.about-stat:hover { border-color: rgba(255,255,255,.25); transform: translateX(4px); }
.about-stat .ic { font-size: 1.5rem; line-height: 1; }
.about-stat h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.about-stat p { color: var(--mute); font-size: .88rem; }

/* ---------- CTA BAND ---------- */
.cta-band { padding: clamp(56px, 9vw, 90px) 0; text-align: center; border-block: 1px solid var(--line); position: relative; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 130% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.6vw, 2.7rem); letter-spacing: -.025em; text-wrap: balance; }
.cta-band p { color: var(--mute); margin: 12px 0 26px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--ink); transition: color .2s;
}
.faq-q:hover { color: var(--accent-2); }
.faq-ic {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem; color: var(--mute);
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.faq-item.open .faq-ic { transform: rotate(45deg); background: var(--accent); border-color: transparent; color: #fff; }
.faq-a { height: 0; overflow: hidden; transition: height .38s var(--ease); }
.faq-a p { color: var(--mute); padding: 0 4px 24px; max-width: 68ch; }

/* ---------- FORMULARIO ---------- */
.contact-form { max-width: 620px; margin: 44px auto 0; text-align: left; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; gap: 16px; } }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: .85rem; color: var(--mute); margin-bottom: 7px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  color: var(--ink); outline: none; transition: border-color .25s, background .25s;
  font-size: 1rem;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.05); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .invalid input, .contact-form .invalid textarea { border-color: #ef4444; }
.field-error { display: block; color: #f87171; font-size: .8rem; margin-top: 5px; min-height: 1em; }
.btn-block { width: 100%; }
.form-note { color: var(--faint); font-size: .85rem; text-align: center; margin-top: 14px; }
.form-success {
  margin-top: 18px; padding: 16px; border-radius: 12px; text-align: center; font-weight: 600;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #4ade80;
}

/* ---------- FOOTER v2 ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px 0 24px; display: block; text-align: left; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.3fr 1fr; } }
.brand-f { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.brand-f .dot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.footer p { color: var(--mute); font-size: .9rem; }
.footer .faint { color: var(--faint); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--mute); font-size: .92rem; width: fit-content; transition: color .2s; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: var(--maxw); margin: 30px auto 0; padding: 18px 22px 0;
  border-top: 1px solid var(--line); display: flex; align-items: center;
  justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
@media (min-width: 860px) { .footer-bottom { padding: 18px 40px 0; } }
.share-btn {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--mute);
  padding: 8px 15px; border-radius: 999px; font-size: .85rem; transition: .25s;
}
.share-btn:hover { color: var(--ink); border-color: rgba(255,255,255,.28); }

/* ---------- BOTONES FLOTANTES ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: 0 10px 26px -6px rgba(37,211,102,.6);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 16px 34px -6px rgba(37,211,102,.7); }
.fab-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.15rem;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .25s;
}
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { background: rgba(255,255,255,.14); }

/* ---------- Página legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 110px 22px 70px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(1.9rem,5vw,2.8rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.legal h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--mute); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-2); }
.legal .back { display: inline-block; margin-bottom: 26px; color: var(--mute); }
.legal .warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); color: #fbbf24; padding: 14px 16px; border-radius: 12px; font-size: .9rem; }
