/* EspaLatam Interjob — estilos */
:root {
  --navy-950: #071426;
  --navy-900: #0B1F3A;
  --navy-800: #13305A;
  --navy-700: #1D4278;
  --gold-400: #E9C06B;
  --gold-500: #D4A24C;
  --gold-600: #B8862F;
  --ivory: #FBF8F2;
  --paper: #FFFFFF;
  --ink: #1B2433;
  --muted: #5B6578;
  --line: rgba(11, 31, 58, .10);
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow-md: 0 18px 40px -18px rgba(11, 31, 58, .28);
  --shadow-lg: 0 40px 80px -30px rgba(7, 20, 38, .55);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--gold-400); color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--paper); }
.section-dark { background: radial-gradient(1200px 600px at 80% -10%, #1D4278 0%, transparent 60%), var(--navy-900); color: #E8EDF7; overflow: hidden; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker-gold { color: var(--gold-400); }
.h2 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 1.1rem; color: var(--navy-900);
}
.section-dark .h2 { color: #fff; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 1rem; }
.section-dark .lead, .section-dark p { color: #B9C4D8; }
.muted-sm { font-size: .82rem; color: var(--muted); margin: 0; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-light { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy-900); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
  box-shadow: 0 10px 24px -12px rgba(11, 31, 58, .6);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(11, 31, 58, .65); }
.btn:active { transform: translateY(0) scale(.98); }
.btn i { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-gold { --bg: linear-gradient(135deg, var(--gold-400), var(--gold-500)); --fg: var(--navy-900); box-shadow: 0 12px 30px -12px rgba(212, 162, 76, .75); }
.btn-ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px var(--gold-400); }
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Progreso y cabecera ---------- */
.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(--gold-500), var(--gold-400)); box-shadow: 0 0 12px rgba(233,192,107,.8); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(11, 31, 58, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.6);
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; font-weight: 700; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark rect { fill: url(#none); fill: var(--gold-500); }
.brand-mark path, .brand-mark circle { fill: none; stroke: var(--navy-900); stroke-width: 2.6; stroke-linecap: round; }
.brand-mark circle { fill: var(--navy-900); stroke: none; }
.brand-mark { transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: .01em; }
.brand-text em { font-style: italic; color: var(--gold-400); font-weight: 600; }
.brand-light { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) {
  position: relative; text-decoration: none; color: #E4EAF5; font-size: .95rem; font-weight: 500; padding: .3rem 0;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--gold-400); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav > a:not(.btn):hover::after, .nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(29, 66, 120, .9), transparent 60%),
    radial-gradient(800px 500px at 90% 80%, rgba(212, 162, 76, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, #0E2A52);
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.spotlight {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(233,192,107,.16), transparent 60%);
  transition: background .2s;
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.orb-1 { width: 380px; height: 380px; background: #2B5FA8; top: -80px; left: -120px; }
.orb-2 { width: 300px; height: 300px; background: var(--gold-500); bottom: -100px; right: -60px; opacity: .25; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .8rem; font-weight: 500; color: #D8E1F0;
  backdrop-filter: blur(6px); margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(233,192,107,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(233,192,107,0); } 100% { box-shadow: 0 0 0 0 rgba(233,192,107,0); } }

.hero-title {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.4rem;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) .word { animation-delay: .15s; }
.hero-title .line:nth-child(3) .word { animation-delay: .3s; }
@keyframes rise { to { transform: translateY(0); } }
.grad {
  font-style: italic;
  background: linear-gradient(100deg, #FFF3CF 0%, var(--gold-400) 35%, var(--gold-500) 60%, #FFF3CF 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #C7D2E6; max-width: 36rem; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .9rem; color: #AEBBD2; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust li::before { content: "✦"; color: var(--gold-400); font-size: .85rem; }

/* Reveal de elementos del hero */
.reveal-up { opacity: 0; transform: translateY(24px); animation: up .9s var(--ease) forwards; animation-delay: var(--d, .2s); }
@keyframes up { to { opacity: 1; transform: none; } }

/* Tarjetas del hero */
.hero-visual { perspective: 1400px; }
.float-stack { position: relative; height: 420px; max-width: 420px; margin-left: auto; }
.glass {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lg); border-radius: 22px; color: #fff;
}
.card-main { position: absolute; top: 40px; left: 0; right: 40px; padding: 1.6rem; animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.card-main h3 { font-family: var(--font-serif); font-size: 1.5rem; margin: .9rem 0 .3rem; }
.card-main .muted-sm { color: #B9C4D8; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; background: rgba(233,192,107,.18); color: var(--gold-400); }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 1.2rem 0; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); animation: fill 2.4s var(--ease) 1s forwards; }
@keyframes fill { to { width: 94%; } }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.avatars { display: flex; }
.avatars i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy-900); margin-left: -8px; background: linear-gradient(135deg, #3E74C2, #1D4278); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #7AA7E0, #2B5FA8); }
.avatars i:first-child { margin-left: 0; }
.match { font-size: .85rem; font-weight: 700; color: var(--gold-400); }

.card-mini { position: absolute; display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-radius: 16px; font-size: .9rem; animation: float 6s ease-in-out infinite; }
.card-mini strong { display: block; font-weight: 600; }
.card-mini small { color: #B9C4D8; font-size: .78rem; }
.ico-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #1F9D6B; color: #fff; font-weight: 700; flex: none; }
.ico-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); }
.card-a { top: 0; right: 0; animation-delay: -2s; }
.card-b { bottom: 10px; left: -10px; animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold-400); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy-950); color: var(--gold-400); overflow: hidden; padding: 1.2rem 0; border-block: 1px solid rgba(233,192,107,.15); }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; white-space: nowrap; }
.marquee-track b { font-style: normal; color: var(--gold-600); font-size: .9rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Layouts generales ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pillars { display: grid; gap: 1.2rem; }
.pillar {
  background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.8rem; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.pillar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--gold-400), var(--gold-600)); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.pillar:hover::before { transform: scaleY(1); }
.pillar-n { font-family: var(--font-serif); font-style: italic; color: var(--gold-600); font-size: .95rem; }
.pillar h3 { font-family: var(--font-serif); font-size: 1.4rem; margin: .2rem 0 .3rem; color: var(--navy-900); }
.pillar p { margin: 0; color: var(--muted); }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service {
  position: relative; background: var(--ivory); border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem 2rem 2rem;
  box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .5s var(--ease), border-color .5s;
}
.service::after {
  content: ""; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(closest-side, rgba(212,162,76,.25), transparent);
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.service:hover { box-shadow: var(--shadow-md); border-color: rgba(212,162,76,.45); }
.service:hover::after { opacity: 1; }
.service-ico {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); box-shadow: 0 12px 24px -10px rgba(11,31,58,.6);
  transition: transform .6s var(--ease);
}
.service:hover .service-ico { transform: rotate(-6deg) scale(1.08); }
.service-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--gold-400); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service-n { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--font-serif); font-size: 2.2rem; color: rgba(11,31,58,.08); font-weight: 700; }
.service h3 { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 .7rem; color: var(--navy-900); }
.service p { color: var(--muted); margin: 0 0 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600); transform: rotate(-45deg); }
.link { margin-top: auto; align-self: flex-start; color: var(--navy-900); font-weight: 700; text-decoration: none; background: linear-gradient(var(--gold-400), var(--gold-400)) no-repeat 0 100% / 0 2px; transition: background-size .5s var(--ease), color .3s; padding-bottom: 2px; }
.link:hover { background-size: 100% 2px; color: var(--gold-600); }

/* ---------- Proceso ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.steps-line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--navy-700)); transition: width .3s linear; }
.step { position: relative; text-align: center; padding: 0 .4rem; }
.step-dot {
  position: relative; z-index: 1; width: 58px; height: 58px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-400); font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem;
  box-shadow: 0 0 0 6px var(--ivory), 0 10px 20px -8px rgba(11,31,58,.5); transition: transform .5s var(--ease), background .5s, color .5s;
}
.step.is-on .step-dot { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); transform: scale(1.08); }
.step h3 { font-family: var(--font-serif); font-size: 1.3rem; margin: 0 0 .4rem; color: var(--navy-900); }
.step p { margin: 0 auto; color: var(--muted); max-width: 240px; font-size: .95rem; }

/* ---------- Tabs ---------- */
.tabs {
  position: relative; display: inline-flex; padding: 6px; border-radius: 999px; margin-bottom: 2.4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
}
.tab { position: relative; z-index: 1; border: 0; background: transparent; color: #C7D2E6; padding: .8rem 1.6rem; border-radius: 999px; cursor: pointer; font-weight: 600; transition: color .4s; }
.tab.is-active { color: var(--navy-900); }
.tab-indicator { position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); transition: transform .6s var(--ease), width .6s var(--ease); }
.panels { min-height: 300px; }
.panel { display: none; animation: fade .7s var(--ease); }
.panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.benefits { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.benefits li {
  display: flex; gap: 1.1rem; padding: 1.5rem; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  transition: background .4s, transform .4s var(--ease), border-color .4s;
}
.benefits li:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); border-color: rgba(233,192,107,.4); }
.benefits b { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold-400); line-height: 1; flex: none; }
.benefits strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: .25rem; }
.benefits span { color: #B9C4D8; font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--navy-900); border-bottom: 1px solid transparent; transition: border-color .3s; }
.contact-list a:hover { border-color: var(--gold-500); }
.ci { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-400); font-size: 1.1rem; flex: none; }

.form {
  background: var(--paper); border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); border: 1px solid var(--line);
  position: relative;
}
.field-group { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.field-group legend { font-weight: 600; font-size: .9rem; color: var(--navy-900); margin-bottom: .7rem; padding: 0; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role-card {
  display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--ivory); transition: all .35s var(--ease);
}
.role-card b { color: var(--navy-900); }
.role-card small { color: var(--muted); }
.role-card:hover { transform: translateY(-2px); }
.role input:checked + .role-card { border-color: var(--gold-500); background: linear-gradient(135deg, #FFF8E7, #fff); box-shadow: 0 0 0 4px rgba(212,162,76,.18); }
.role input:focus-visible + .role-card { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea {
  width: 100%; padding: 1.25rem 1rem .6rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ivory);
  color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical; outline: none;
}
.field textarea { min-height: 130px; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); font-size: 1rem; pointer-events: none;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s, top .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(212,162,76,.18); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  top: .32rem; transform: scale(.78); color: var(--gold-600); font-weight: 600;
}
.field.has-error input, .field.has-error textarea { border-color: #D64545; background: #FFF5F5; }
.field.has-error label { color: #D64545; }
.err { display: none; color: #D64545; font-size: .82rem; margin-top: .3rem; }
.field.has-error .err { display: block; animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-4px); } 40%,80% { transform: translateX(4px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-block { margin-top: .4rem; }
#submit-btn .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(11,31,58,.25); border-top-color: var(--navy-900); border-radius: 50%; animation: spin .8s linear infinite; }
#submit-btn.is-loading .spinner { display: inline-block; }
#submit-btn.is-loading .btn-label { opacity: .7; }
#submit-btn.is-sent { background: linear-gradient(135deg, #2DBE86, #1F9D6B); --fg: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { min-height: 1.4em; margin: 1rem 0 0; font-weight: 500; text-align: center; }
.form-status.ok { color: #1F7A54; }
.form-status.error { color: #C0392B; }
.privacy { font-size: .8rem; color: var(--muted); text-align: center; margin: .6rem 0 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #A9B6CC; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 48px; }
.footer-tag { margin: 1rem 0 0; color: #7F8DA6; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer ul a { text-decoration: none; color: #A9B6CC; transition: color .3s; }
.footer ul a:hover { color: var(--gold-400); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: #6F7E98; }
.to-top { text-decoration: none; color: #A9B6CC; }
.to-top:hover { color: var(--gold-400); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .4s var(--ease); animation: waPulse 2.6s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08) rotate(-4deg); }
.wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%) translateX(8px); white-space: nowrap;
  background: #fff; color: var(--navy-900); padding: .5rem .9rem; border-radius: 12px; font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 14px 30px -10px rgba(37,211,102,.7); } 70%,100% { box-shadow: 0 0 0 18px rgba(37,211,102,0), 0 14px 30px -10px rgba(37,211,102,.7); } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .float-stack { margin: 0 auto; height: 380px; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; }
  .steps-line { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 1rem 16px 1.6rem; border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-110%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; z-index: 49;
  }
  .nav.is-open { transform: none; opacity: 1; }
  .nav > a:not(.btn) { padding: 1rem .2rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.2rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 58px 1fr; column-gap: 1rem; }
  .step-dot { margin: 0; grid-row: span 2; }
  .step p { max-width: none; }
  .form-row, .role-options { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 110px; }
  .float-stack { height: 340px; max-width: 100%; }
  .card-main { right: 0; padding: 1.2rem; }
  .card-main h3 { font-size: 1.2rem; }
  .card-mini { font-size: .8rem; padding: .7rem .8rem; }
  .card-a { top: 4px; right: -6px; }
  .card-b { left: -4px; bottom: -6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: .75rem .5rem; font-size: .92rem; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .wa-tip { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
  #particles { display: none; }
}

/* ---------- Fotografías ---------- */
.hero-photo { position: absolute; inset: 0; z-index: -2; background: url('/assets/img/hero-oficina.jpg') center / cover no-repeat; opacity: .32; mix-blend-mode: luminosity; }
.hero-photo { opacity: .45; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-950) 8%, rgba(7, 20, 38, .65) 55%, rgba(7, 20, 38, .9)); }

.photo-frame { position: relative; margin: 2rem 0 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--navy-900); }
.photo-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.photo-frame:hover img { transform: scale(1.05); }
.photo-frame figcaption { position: absolute; left: 16px; bottom: 16px; padding: .45rem .9rem; border-radius: 999px; background: rgba(11, 31, 58, .82); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.photo-contact { margin: 0 0 2rem; }
.photo-contact img { aspect-ratio: 16 / 10; }

.dark-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; z-index: 0; pointer-events: none; }
.section-dark > .container { position: relative; z-index: 1; }
@media (max-width: 640px) { .photo-frame { border-radius: 16px; } .photo-frame figcaption { font-size: .75rem; } }

/* ---------- Franja con foto y parallax ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; padding: clamp(96px, 13vw, 160px) 0; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 20, 38, .86), rgba(11, 31, 58, .92)); }
.band-bg { position: absolute; inset: -12% 0; z-index: -2; background-size: cover; background-position: center; background-attachment: fixed; will-change: transform; }
.band-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.band .kicker { justify-content: center; }
.band .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.band-title { color: #fff; max-width: 20ch; margin: 0; }
.band-lead { color: #C7D2E6; max-width: 36rem; font-size: 1.1rem; margin: 0 0 .6rem; }
@media (max-width: 1024px), (hover: none) { .band-bg { background-attachment: scroll; } }
