/* ==========================================================
   Jesús Sánchez — v2 "Bento aurora"
   Mobile-first. Sin dependencias.
   ========================================================== */

:root {
  --bg: #07080a;
  --card: #0f1114;
  --card-2: #14171b;
  --line: #1f242b;
  --line-2: #2a313a;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #71717a;
  --indigo: #2563eb;
  --violet: #0ea5e9;
  --pink: #1e40af;
  --grad: linear-gradient(120deg, #e0f2fe 0%, #7dd3fc 40%, #3b82f6 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
::selection { background: rgba(59, 130, 246, .35); color: #fff; }

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Aurora de fondo ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .38;
  will-change: transform;
}
.aurora .a1 { width: 520px; height: 520px; background: var(--indigo); top: -200px; right: -160px; opacity: .32; animation: float1 22s ease-in-out infinite alternate; }
.aurora .a2 { width: 420px; height: 420px; background: var(--violet); top: 40%; left: -220px; opacity: .16; animation: float2 26s ease-in-out infinite alternate; }
.aurora .a3 { width: 360px; height: 360px; background: var(--pink); bottom: -200px; right: 10%; opacity: .3; animation: float1 30s ease-in-out infinite alternate-reverse; }
.aurora::after {
  /* grano/cuadrícula sutil */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
@keyframes float1 { to { transform: translate(-80px, 90px) scale(1.15); } }
@keyframes float2 { to { transform: translate(120px, -60px) scale(1.1); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-weight: 600; font-size: 22px; letter-spacing: -.5px;
  display: flex; align-items: center; gap: 10px;
}
.preloader-mark i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.8); opacity: .5; } }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { padding: 0 24px; } }

main { padding-top: 92px; }

section { margin-bottom: 72px; }
@media (min-width: 900px) { section { margin-bottom: 110px; } }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 12px; left: 0; right: 0;
  z-index: 100;
  padding: 0 12px;
  transition: transform .4s var(--ease);
}
.header-inner {
  max-width: 1148px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 14, 17, .75);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -.3px; font-size: 16px;
}
.logo-symbol {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--grad);
  color: #0b0b0f; font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.logo-text span { color: var(--muted); font-weight: 400; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 16px; border-radius: 8px;
  font-size: 14px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.06); }
.nav .nav-cta { background: var(--text); color: #0b0b0f; font-weight: 500; margin-left: 6px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: #fff; color: #0b0b0f; }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
}
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after { top: 9px; }
.menu-open .menu-toggle .bars::before { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 5.5px; transform: rotate(-45deg); }

@media (min-width: 860px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
}

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 8, 10, .96);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px 20px calc(28px + var(--safe-b));
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-menu li {
  border-bottom: 1px solid var(--line);
  transform: translateY(20px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.menu-open .mobile-menu li { transform: none; opacity: 1; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: .1s; }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px;
  font-size: 34px; font-weight: 500; letter-spacing: -1px;
}
.mobile-menu a svg { color: var(--dim); }
.mobile-menu a[aria-current="page"] { color: #7dd3fc; }
.mobile-menu .mm-social { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 860px) { .mobile-menu { display: none; } }

/* ---------- Tarjetas ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
}
/* Luz que sigue al cursor (solo escritorio) */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px circle at var(--mx, -500px) var(--my, -500px), rgba(59, 130, 246, .13), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
@media (min-width: 900px) { .card { padding: 32px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .4px;
  color: var(--muted);
  text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font: 500 15px/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #0b0b0f; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 6px rgba(59, 130, 246, .18), 0 10px 40px -10px rgba(59, 130, 246, .6); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #3f3f48; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

/* ---------- Hero bento ---------- */
.hero {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.hero-main { grid-column: 1 / -1; order: 2; padding-top: 28px; padding-bottom: 28px; }
.hero-photo { grid-column: 1 / -1; order: 1; padding: 0; aspect-ratio: 1 / 1; max-height: 420px; }
.hero-stat { order: 3; }
.hero-loc { order: 4; }

.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 50% 30%; filter: saturate(.9) contrast(1.05); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,8,10,.85));
  pointer-events: none;
}
.photo-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,10,12,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px;
}

.roles {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 15px; color: var(--muted);
  margin-bottom: 14px;
}
.role-rotator {
  position: relative;
  display: inline-grid;
  height: 1.6em;
  overflow: hidden;
  vertical-align: bottom;
  font-family: var(--mono);
  font-size: 14px;
  color: #bae6fd;
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .3);
  padding: 0 10px;
  line-height: 1.6em;
  border-radius: 6px;
}
.role-rotator span {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: transform .5s var(--ease), opacity .5s;
}
.role-rotator span.out { transform: translateY(-100%); opacity: 0; }
.role-rotator span.in { animation: roleIn .5s var(--ease); }
@keyframes roleIn { from { transform: translateY(100%); opacity: 0; } }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 11vw, 84px);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
}
.hero-lead strong { color: var(--text); font-weight: 500; }

.stat-big {
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  margin: 14px 0 6px;
}
.small-card p { margin: 0; font-size: 14px; color: var(--muted); }
.small-card h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -.3px; }

.icon-chip {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: #7dd3fc;
}

@media (max-width: 380px) {
  .hero-stat, .hero-loc { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
  }
  .hero-main  { grid-column: 1 / 8; grid-row: 1 / 3; order: 0; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
  .hero-photo { grid-column: 8 / 13; grid-row: 1 / 2; order: 0; max-height: none; aspect-ratio: auto; min-height: 340px; }
  .hero-stat  { grid-column: 8 / 10; order: 0; }
  .hero-loc   { grid-column: 10 / 13; order: 0; }
}

/* ---------- Marquee de habilidades ---------- */
.marquee {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: 40px;
  font-size: 15px; color: var(--muted); white-space: nowrap;
}
.marquee-track span::after { content: "/"; color: #3b82f6; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Encabezados de sección ---------- */
.section-head { margin-bottom: 24px; max-width: 640px; }
.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 900px) { .section-head { margin-bottom: 36px; } }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(12, 1fr); }
  .services .card:nth-child(1) { grid-column: span 7; }
  .services .card:nth-child(2) { grid-column: span 5; }
  .services .card:nth-child(3) { grid-column: span 5; }
  .services .card:nth-child(4) { grid-column: span 7; }
}
.service { display: flex; flex-direction: column; min-height: 260px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.service h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -.5px; line-height: 1.2; }
.service p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0; list-style: none; }
.tags li {
  font-size: 12px; font-family: var(--mono);
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--line-2);
  color: #d4d4d8;
  background: rgba(255,255,255,.02);
}

/* ---------- Cifras ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 20px; }
@media (min-width: 900px) { .fact { padding: 28px; } }
.fact .icon-chip { width: 38px; height: 38px; }
.fact-value {
  display: block;
  margin: 22px 0 4px;
  font-size: clamp(30px, 8.5vw, 48px);
  font-weight: 600; letter-spacing: -1.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact h3 { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.35; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 48px 22px;
}
.cta::after {
  content: ""; position: absolute; z-index: -2;
  width: 600px; height: 300px; left: 50%; bottom: -200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, .45), transparent);
}
.cta h2 {
  margin: 14px auto 12px; max-width: 700px;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 600;
}
.cta p { margin: 0 auto 28px; color: var(--muted); max-width: 520px; }
.cta .btn-row { justify-content: center; }
@media (min-width: 900px) { .cta { padding: 80px 40px; } }

/* ---------- Página interior (contacto / 404) ---------- */
.page-head { padding: 28px 0 28px; max-width: 760px; }
.page-head h1 {
  margin: 14px 0 12px;
  font-size: clamp(44px, 12vw, 88px);
  line-height: .98; letter-spacing: -0.045em; font-weight: 600;
}
.page-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 540px; }

.contact-grid { display: grid; gap: 12px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; align-items: start; } }

.info-list { display: grid; gap: 12px; }
@media (min-width: 600px) and (max-width: 959px) { .info-list { grid-template-columns: repeat(2, 1fr); } }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
@media (min-width: 600px) and (max-width: 959px) { .info { flex-direction: column; } }
.info h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; word-break: break-word; }
.info p { margin: 0; font-size: 14px; color: var(--muted); }
.info a:hover h3 { color: #7dd3fc; }

/* Formulario */
.form-card h2 { margin: 10px 0 6px; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; font-weight: 600; }
.form-card > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }

.field label {
  display: block; margin-bottom: 8px;
  font-size: 13px; color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  font: 16px/1.5 var(--font); /* 16px evita el zoom automático en iOS */
  color: var(--text);
  background: #0c0c0f;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #52525b; }
.field input:hover, .field textarea:hover { border-color: #3f3f48; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: #3b82f6; background: #0b0f15;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
}
.field.has-error input, .field.has-error textarea { border-color: #f87171; }
.field-error { display: block; min-height: 18px; margin-top: 6px; font-size: 12.5px; color: #fca5a5; }

.form-bottom { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
@media (min-width: 640px) { .form-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.recaptcha-wrap { min-height: 78px; max-width: 100%; }
@media (max-width: 360px) {
  .recaptcha-wrap { transform: scale(.86); transform-origin: 0 0; height: 68px; min-height: 0; }
}
.btn-send { width: 100%; }
@media (min-width: 640px) { .btn-send { width: auto; } }
.btn-send[aria-busy="true"] { opacity: .7; pointer-events: none; }

.messages:empty { display: none; }
.alert {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid;
}
.alert-success { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .35); color: #bbf7d0; }
.alert-danger  { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.alert button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

/* 404 */
.nf { text-align: center; padding: 60px 24px; }
.nf-code {
  font-size: clamp(110px, 34vw, 220px);
  font-weight: 700; letter-spacing: -0.06em; line-height: .9;
  margin: 10px 0 8px;
}
.nf h1 { margin: 0 0 10px; font-size: clamp(24px, 6vw, 34px); letter-spacing: -.8px; font-weight: 500; }
.nf p { color: var(--muted); margin: 0 auto 28px; max-width: 420px; }
.nf .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 0 0 calc(28px + var(--safe-b)); }
.footer-inner {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  font-size: 14px; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.social a:hover { color: var(--text); border-color: #4c4c57; background: rgba(255,255,255,.04); }
.footer p { margin: 0; font-size: 13px; color: var(--dim); }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed;
  right: 16px; bottom: calc(16px + var(--safe-b));
  z-index: 80;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(20, 20, 24, .8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: #3b82f6; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* Separación hero + marquee */
section.hero { margin-bottom: 12px; }
.marquee { margin: 0 0 72px; }
@media (min-width: 900px) { .marquee { margin-bottom: 110px; } }

/* ---------- Mexinea ---------- */
.agency { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .agency { grid-template-columns: 1.3fr 1fr; padding: 48px; } }
.agency h2 { margin: 12px 0 12px; font-size: clamp(28px, 6.5vw, 44px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.agency p { margin: 0 0 22px; color: var(--muted); }
.agency-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agency-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255,255,255,.02); font-size: 15px;
}
.agency-list li svg { color: #7dd3fc; }
.agency::after {
  content: ""; position: absolute; z-index: -2; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .35), transparent);
}
.info-accent { border-color: rgba(59, 130, 246, .45); }
