/* Titan Studio — estilos comunes */
:root {
  --bg: #0B0D12;
  --surface: #151922;
  --border: #262B36;
  --text: #F2F4F8;
  --muted: #9AA3B2;
  --accent: #FF2D55;
  --accent-hover: #ff4d6f;
  --radius: 16px;
  --radius-sm: 6px;
  --max: 1200px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.2; }

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* Barra de aviso */
.announce {
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  padding: 10px 16px;
}
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* Cabecera */
.site-top { position: sticky; top: 0; z-index: 50; }
.site-header {
  position: relative;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo img { display: block; height: 36px; width: auto; }
.logo--footer img { height: 32px; }
@media (max-width: 600px) { .logo img { height: 28px; } }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-links li.mobile-cta { padding-top: 16px; }
  .nav-links li.mobile-cta a { border: 0; }
}
@media (min-width: 861px) { .nav-links li.mobile-cta { display: none; } }

/* Secciones */
section { padding: 72px 0; }
.section-tight { padding: 16px 0; }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; }

/* Portada */
.hero-card {
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(40px, 8vw, 88px) clamp(24px, 6vw, 56px);
  display: grid; gap: 22px;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,85,.22), transparent 65%);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .lead { max-width: 560px; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Ventajas */
.perks { background: var(--surface); padding: 28px 0; }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.perk { display: flex; align-items: center; gap: 14px; }
.perk svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--accent); }
.perk strong { display: block; }
.perk span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks-grid { grid-template-columns: 1fr; } }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 10px; align-content: start;
  transition: transform .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); border-color: var(--border); }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,45,85,.12); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.service-icon svg { width: 22px; height: 22px; }
.service p { color: var(--muted); }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { display: grid; gap: 6px; align-content: start; padding-top: 20px; border-top: 1px solid var(--border); }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.15rem; font-family: var(--font-body); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Llamada a la acción */
.cta-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  display: grid; gap: 16px; justify-items: center;
}
.cta-card p { max-width: 520px; }

/* Páginas interiores */
.page-hero { padding: 64px 0 24px; }
.page-hero .kicker { margin-bottom: 12px; display: block; }
.page-hero p.lead { margin-top: 18px; max-width: 640px; font-size: 1.125rem; color: var(--muted); }
.prose { max-width: 720px; display: grid; gap: 18px; font-size: 1.075rem; }
.prose p { color: #d5d9e1; }
.prose strong { color: var(--text); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 14px;
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: #d5d9e1; }
.check-list svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }

/* Formularios */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field 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) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,45,85,.2);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; min-height: 1.5em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--accent); }

/* Pie */
.site-footer { background: var(--surface); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-grid h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); max-width: 360px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0 32px; font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Accesibilidad */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.footer-grid .logo { color: var(--text); }

/* Páginas legales */
.legal { gap: 14px; }
.legal h2 { font-family: var(--font-body); text-transform: none; font-size: 1.3rem; margin-top: 22px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: #d5d9e1; }
.legal a, .consent a { color: var(--accent); }
.pending { background: #ffd60a; color: #000; padding: 0 4px; border-radius: 3px; }

/* Vídeo de entrada (encima del banner y el menú, solo en la portada) */
.intro { position: relative; width: 100%; overflow: hidden; line-height: 0; background: #0B0D12; padding: 0; }
.intro-video { display: block; width: 100%; height: auto; max-height: 100vh; max-height: 100svh; object-fit: cover; }
.intro-scroll {
  position: absolute; left: 50%; bottom: 6%;
  transform: translate(-50%, 12px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 16px; line-height: 1;
  color: #F4F5F7; text-decoration: none;
  opacity: 0; pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.intro.ended .intro-scroll { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.intro-scroll span {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .28em; padding-left: .28em; font-size: clamp(14px, 1.4vw, 20px);
}
.intro-scroll svg { width: 30px; height: 30px; color: var(--accent); }
.intro.ended .intro-scroll svg { animation: swipe 1.4s ease-in-out infinite; }
@keyframes swipe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .intro.ended .intro-scroll svg { animation: none; } }


/* Animación de los tres pasos (portada): línea de progreso con puntos */
.ts-steps { position: relative; padding-bottom: 46px; }
.ts-steps > .step { border-top: 0; padding-top: 0; }
.ts-steps > .step {
  opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .7s ease;
}
.ts-steps.ts-in > .step { opacity: 1; transform: none; filter: none; }
.ts-line { position: absolute; left: 0; right: 22px; bottom: 16px; height: 4px; pointer-events: none; }
.ts-line__track {
  position: absolute; inset: 0; border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(154,163,178,.45) 0 16px, transparent 16px 30px);
}
.ts-line__fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #FF2D55, #FF5A78);
  box-shadow: 0 0 14px rgba(255,45,85,.6);
  transition: width var(--ts-dur, 2.2s) linear .15s;
}
.ts-line__fill::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: #FF2D55;
  box-shadow: 0 0 0 4px rgba(255,45,85,.25), 0 0 22px 6px rgba(255,45,85,.65);
  opacity: 0; transition: opacity .25s ease .15s;
}
.ts-steps.ts-in .ts-line__fill { width: 100%; }
.ts-steps.ts-in .ts-line__fill::after { opacity: 1; }
.ts-node {
  position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #2A303C; transform: scale(.7);
  transition: background .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .3s ease;
}
.ts-steps.ts-in .ts-node { background: #F4F5F7; transform: scale(1); box-shadow: 0 0 12px rgba(255,255,255,.45); }
.ts-goal {
  position: absolute; top: 50%; right: -22px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  border: 2px solid rgba(154,163,178,.45);
  transition: border-color .4s ease var(--d, 0s), box-shadow .4s ease var(--d, 0s);
}
.ts-goal::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: #2A303C; transition: background .4s ease var(--d, 0s);
}
.ts-steps.ts-in .ts-goal { border-color: #FF2D55; box-shadow: 0 0 26px rgba(255,45,85,.55), inset 0 0 12px rgba(255,45,85,.35); }
.ts-steps.ts-in .ts-goal::after { background: #FF2D55; }
/* Versión vertical (móvil) */
.ts-steps.ts-v { padding-bottom: 46px; padding-left: 40px; }
.ts-v .ts-line { left: 16px; right: auto; top: 0; bottom: 22px; width: 4px; height: auto; }
.ts-v .ts-line__track { background: repeating-linear-gradient(180deg, rgba(154,163,178,.45) 0 16px, transparent 16px 30px); }
.ts-v .ts-line__fill { width: 100%; height: 0; transition: height var(--ts-dur, 2.2s) linear .15s; }
.ts-v.ts-in .ts-line__fill { width: 100%; height: 100%; }
.ts-v .ts-line__fill::after { right: auto; left: 50%; top: auto; bottom: -9px; margin: 0 0 0 -9px; }
.ts-v .ts-node { top: auto; left: 50% !important; margin: -9px 0 0 -9px; }
.ts-v .ts-goal { right: auto; top: auto; left: 50%; bottom: -22px; margin: 0 0 0 -22px; }
.ts-v > .step { transform: translateX(-18px); }
@media (prefers-reduced-motion: reduce) {
  .ts-steps *, .ts-steps > .step, .ts-goal::after { transition: none !important; }
}
