/* ==========================================================
   Garzonería Deluxe · hoja de estilos
   ========================================================== */
:root {
  --navy: #16213A;
  --navy-2: #1E2B48;
  --navy-3: #0F1729;
  --line-dark: #2C3A5A;
  --gold: #C7A66B;
  --gold-2: #D9BE8C;
  --gold-ink: #8A6A33;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --ink: #141B2D;
  --muted: #4A5468;
  --muted-2: #5A6478;
  --soft: #C9D0DC;
  --line: #E3E7EE;
  --ok: #1F8A4C;
  --error: #B3261E;
  --radius: 22px;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; animation: page-in .6s var(--ease) both; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }
.section { padding-top: 104px; }
.section-head { max-width: 680px; display: grid; gap: 12px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 17px; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 12px 26px rgba(199,166,107,.28); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 16px 32px rgba(199,166,107,.36); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); box-shadow: 0 12px 26px rgba(22,33,58,.25); }
.btn-ghost { border: 1px solid #45506A; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-outline { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-lg { min-height: 58px; font-size: 17px; padding: 0 32px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-ink); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Barra de progreso de lectura ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 90; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(22,33,58,.06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; transition: min-height .3s var(--ease); }
.header.is-scrolled .wrap { min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-name { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.05; }
.brand-sub { display: block; font-size: 12px; color: var(--muted-2); margin-top: 3px; font-family: var(--body); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Héroe de inicio ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-rings { position: absolute; inset: 0; pointer-events: none; }
.hero-rings span { position: absolute; border-radius: 50%; border: 1px solid var(--line-dark); right: -200px; top: 50%; translate: 0 -50%; animation: ring-pulse 8s ease-in-out infinite; }
.hero-rings span:nth-child(1) { width: 520px; height: 520px; right: -60px; }
.hero-rings span:nth-child(2) { width: 760px; height: 760px; right: -180px; animation-delay: 1.2s; }
.hero-rings span:nth-child(3) { width: 1000px; height: 1000px; right: -300px; animation-delay: 2.4s; }
@keyframes ring-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 104px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -.8px; margin: 22px 0 24px; }
.hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-lead { font-size: 18px; color: var(--soft); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; }

/* Texto que aparece palabra por palabra */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(110%); animation: word-up .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes word-up { to { transform: translateY(0); } }

/* Sello giratorio con el logo */
.seal { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.seal-text { position: absolute; inset: 0; animation: spin 28s linear infinite; }
.seal-text text { font-family: var(--body); font-size: 15.5px; font-weight: 700; letter-spacing: 5.2px; fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-logo { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px var(--navy), 0 0 0 11px #3A4766, 0 40px 80px rgba(0,0,0,.35); animation: float 6s ease-in-out infinite; }
.seal-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700; box-shadow: 0 18px 36px rgba(0,0,0,.25); animation: float 5s ease-in-out infinite; }
.chip-float::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.chip-float.c1 { left: -4%; top: 16%; animation-delay: .4s; }
.chip-float.c2 { right: -6%; top: 46%; animation-delay: 1.4s; }
.chip-float.c3 { left: 4%; bottom: 8%; animation-delay: 2.2s; }

/* ---------- Cinta en movimiento ---------- */
.marquee { background: var(--gold); color: var(--navy); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 22px; font-weight: 600; white-space: nowrap; }
.marquee-track span::after { content: "✦"; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Héroe de páginas internas ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 1px solid var(--line-dark); right: -200px; top: -320px; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line-dark); right: -60px; top: -220px; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 80px; display: grid; gap: 18px; max-width: 1180px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); max-width: 820px; }
.page-hero p { color: var(--soft); font-size: 18px; max-width: 640px; }
.breadcrumb { display: flex; gap: 10px; font-size: 14px; color: #A9B3C4; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { text-decoration: none; color: #A9B3C4; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #5A6478; }

/* ---------- Tarjetas ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease; transform-style: preserve-3d; }
.card:hover { box-shadow: 0 24px 48px rgba(22,33,58,.10); border-color: #D3D9E3; }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--gold-ink); letter-spacing: 1px; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s ease; }
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { transform: rotate(-8deg) scale(1.06); background: var(--navy-2); }
.card-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.card-list li { display: flex; gap: 10px; align-items: flex-start; }
.card-list li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 9px; }
.service-row { grid-template-columns: auto 1fr 1fr; gap: 32px; align-items: start; padding: 38px; }
.service-row + .service-row { margin-top: 22px; }
.service-row h3 { font-size: 30px; }
.service-row > div { display: grid; gap: 12px; }
.card-dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-dark p { color: var(--soft); }
.card-dark .icon-box { background: var(--navy-2); }

/* ---------- Pasos con línea animada ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.process::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: var(--line); }
.process::after { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.process.is-visible::after { transform: scaleX(1); }
.process li { position: relative; display: grid; gap: 10px; justify-items: start; }
.process .dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 20px; transition: background-color .4s ease, color .4s ease; }
.process.is-visible li:last-child .dot { background: var(--navy); color: var(--gold); }
.process strong { font-size: 18px; }
.process span { color: var(--muted); font-size: 15px; }

/* ---------- Bloque de Boris ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.about-photo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.about-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 28px; background: var(--navy); transition: inset .6s var(--ease); }
.about-photo:hover::before { inset: 30px -30px -30px 30px; }
.about-photo img { position: relative; width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: center 30%; border-radius: 28px; }
.about-badge { position: absolute; left: -22px; bottom: 36px; z-index: 2; background: var(--white); border-radius: 18px; padding: 14px 18px; box-shadow: 0 20px 40px rgba(22,33,58,.18); display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out infinite; }
.about-badge img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.about-badge strong { display: block; font-family: var(--display); font-size: 16px; }
.about-badge span { font-size: 13px; color: var(--muted-2); }
.about-text { display: grid; gap: 22px; }
.about-text h2 { font-size: clamp(30px, 4vw, 44px); }
.about-text > p { font-size: 17px; color: var(--muted); line-height: 1.75; }
.about-text b { color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 16px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; }
.quote { position: relative; border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--ink); }

/* ---------- Pestañas (tipos de evento) ---------- */
.tabs { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 14px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--paper); border-radius: 18px; }
.tab-list button { flex: 1 1 140px; min-height: 50px; border: 0; border-radius: 14px; background: transparent; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 0 10px 22px rgba(22,33,58,.22); }
.tab-panel { padding: 34px 26px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 30px; margin-bottom: 12px; }
.tab-panel p { color: var(--muted); font-size: 16.5px; }
.tab-side { background: var(--paper); border-radius: 20px; padding: 26px; display: grid; gap: 14px; }
.tab-side h4 { font-size: 17px; }

/* ---------- Valores ---------- */
.value { display: grid; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line-dark); color: var(--white); transition: transform .35s var(--ease), border-color .35s ease; }
.value:hover { transform: translateY(-6px); border-color: var(--gold); }
.value h3 { font-size: 21px; }
.value p { color: var(--soft); font-size: 15px; }
.value svg { width: 30px; height: 30px; }
.band { background: var(--navy); color: var(--white); padding: 96px 0; margin-top: 104px; position: relative; overflow: hidden; }
.band .section-head h2 { color: var(--white); }
.band .section-head p { color: var(--soft); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s ease, box-shadow .3s ease; }
.faq-item.is-open { border-color: #CBD3DF; box-shadow: 0 14px 30px rgba(22,33,58,.06); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq-q .plus { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background-color .3s ease, transform .4s var(--ease); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; transition: transform .4s var(--ease), background-color .3s; }
.faq-q .plus::after { transform: rotate(90deg); }
.faq-item.is-open .plus { background: var(--navy); transform: rotate(180deg); }
.faq-item.is-open .plus::before, .faq-item.is-open .plus::after { background: var(--gold); }
.faq-item.is-open .plus::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 24px; color: var(--muted); font-size: 16px; }

/* ---------- TikTok ---------- */
.social { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; overflow: hidden; position: relative; }
.social-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; position: relative; }
.social-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 2px solid var(--gold); opacity: 0; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.social-icon svg { width: 34px; height: 34px; }
.social h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.social p { color: var(--muted); }

/* ---------- Llamado final ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 36px; align-items: center; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--line-dark); left: -160px; bottom: -260px; }
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(199,166,107,.22), transparent 70%); right: -60px; top: -120px; animation: ring-pulse 6s ease-in-out infinite; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 14px; }
.cta p { color: var(--soft); font-size: 17px; max-width: 560px; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; min-width: 280px; }

/* ---------- Formularios ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: 0 30px 60px rgba(22,33,58,.06); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.input, .select, .textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.textarea { resize: vertical; min-height: 120px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23141B2D' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { background-color: #EEF1F5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); background-color: var(--white); box-shadow: 0 0 0 4px rgba(22,33,58,.08); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); background-color: #FDF3F2; }
.field .error-msg { display: none; font-size: 13px; color: var(--error); font-weight: 600; }
.field.has-error .error-msg { display: block; }

/* Opciones en tarjetas (radio / checkbox) */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-box { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); transition: border-color .25s ease, background-color .25s ease, transform .25s var(--ease), box-shadow .25s ease; }
.option-box svg { width: 26px; height: 26px; }
.option-box strong { font-size: 15.5px; }
.option-box small { font-size: 13px; color: var(--muted-2); }
.option:hover .option-box { border-color: #B9C2D0; transform: translateY(-2px); }
.option input:checked + .option-box { border-color: var(--navy); background: #F2F4F8; box-shadow: inset 0 0 0 1px var(--navy); }
.option input:focus-visible + .option-box { outline: 3px solid var(--gold); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; transition: all .25s ease; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Control deslizante */
.range-wrap { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; }
.range-value { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--navy); line-height: 1; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--gold) var(--pct, 25%), var(--line) var(--pct, 25%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); border: 4px solid var(--white); box-shadow: 0 4px 12px rgba(22,33,58,.3); cursor: pointer; transition: transform .2s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); border: 4px solid var(--white); box-shadow: 0 4px 12px rgba(22,33,58,.3); cursor: pointer; }
.range:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.range-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-2); }

/* Formulario por pasos */
.quote-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }
.stepper { display: flex; gap: 10px; margin-bottom: 32px; list-style: none; padding: 0; }
.stepper li { flex: 1; display: grid; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted-2); }
.stepper .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stepper .bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.stepper li.is-done .bar::after, .stepper li.is-current .bar::after { transform: scaleX(1); }
.stepper li.is-current .bar::after { background: var(--gold); }
.stepper li.is-current, .stepper li.is-done { color: var(--ink); }
.step { display: none; }
.step.is-active { display: grid; gap: 26px; animation: step-in .5s var(--ease); }
.step.is-back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 28px; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 24px; }
.summary { position: sticky; top: 96px; background: var(--navy); color: var(--white); border-radius: 28px; padding: 32px; display: grid; gap: 20px; overflow: hidden; }
.summary::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line-dark); right: -110px; top: -110px; }
.summary > * { position: relative; }
.summary h3 { font-size: 15px; letter-spacing: 2.5px; color: var(--gold); font-family: var(--body); font-weight: 700; text-transform: uppercase; }
.staff { display: grid; gap: 4px; }
.staff-row { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.staff-row:last-child { border-bottom: 0; }
.staff-num { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--gold); min-width: 64px; transition: transform .3s var(--ease); }
.staff-num.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.18); } }
.staff-row.is-off { opacity: .35; }
.summary-meta { display: grid; gap: 8px; font-size: 14px; color: var(--soft); }
.summary-meta div { display: flex; justify-content: space-between; gap: 12px; }
.summary-meta b { color: var(--white); text-align: right; }
.summary small { font-size: 12.5px; color: #8E99AD; line-height: 1.5; }

/* Estado de éxito */
.success { display: none; text-align: center; justify-items: center; gap: 16px; padding: 30px 10px; }
.success.is-visible { display: grid; animation: step-in .5s var(--ease); }
.success-icon { width: 84px; height: 84px; border-radius: 50%; background: #E4F1E8; display: grid; place-items: center; }
.success-icon svg { width: 42px; height: 42px; }
.success-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { font-size: 30px; }
.success p { color: var(--muted); max-width: 440px; }

/* Bloque de contacto */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; text-decoration: none; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease; }
a.contact-item:hover { transform: translateX(6px); border-color: var(--navy); box-shadow: 0 14px 30px rgba(22,33,58,.08); }
.contact-item .icon-box { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
.contact-item .icon-box svg { width: 24px; height: 24px; }
.contact-item small { display: block; font-size: 13px; color: var(--muted-2); font-weight: 600; }
.contact-item strong { font-size: 17px; }
.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--line); height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* Requisitos (trabaja con nosotros) */
.req { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.req:last-child { border-bottom: 0; }
.req svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.req strong { display: block; font-size: 17px; margin-bottom: 2px; }
.req span { color: var(--soft); font-size: 15px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-3); color: #A9B3C4; font-size: 15px; margin-top: 104px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: #8E99AD; }
.footer p { margin-top: 18px; max-width: 320px; line-height: 1.7; }
.footer h4 { font-family: var(--body); font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #C9D0DC; text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #1F2940; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 22px; font-size: 13.5px; }

/* ---------- Botones flotantes ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 62px; height: 62px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FA855; animation: ping 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-tip { position: absolute; right: 74px; top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 24px rgba(22,33,58,.18); opacity: 0; transform: translateX(8px); transition: opacity .3s ease, transform .3s var(--ease); pointer-events: none; }
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: none; }
.to-top { position: fixed; right: 30px; bottom: 100px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(22,33,58,.12); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; translate: -50% 0; background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 14px; font-size: 15px; font-weight: 600; box-shadow: 0 18px 40px rgba(0,0,0,.25); opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 24px 40px rgba(22,33,58,.12); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s; }
  .header:not(.is-scrolled) .nav-links { top: 80px; }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease), visibility 0s; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 0; font-size: 17px; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold-ink); }
  .hero .wrap, .about, .tab-panel, .quote-layout, .contact-layout, .cta, .social { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; gap: 48px; }
  .seal { width: min(360px, 88%); }
  .grid-3 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 18px; padding: 30px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before, .process::after { display: none; }
  .summary { position: relative; top: 0; }
  .cta-actions { min-width: 0; }
  .about { gap: 64px; }
}
/* ---------- Celular ---------- */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .brand-sub { display: none; }
  .nav .btn-cta span { display: none; }
  .nav .btn-cta { width: 46px; padding: 0; }
  .section { padding-top: 80px; }
  .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; border-radius: 24px; }
  .tabs { padding: 10px; }
  .tab-panel { padding: 26px 12px 14px; gap: 24px; }
  .cta { padding: 44px 24px; border-radius: 26px; }
  .social { padding: 28px 22px; }
  .chip-float.c1 { left: -2%; }
  .chip-float.c2 { right: -2%; }
  .about-photo { width: calc(100% - 22px); justify-self: start; }
  .about-badge { left: 12px; bottom: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
  .map { height: 280px; }
  .to-top { right: 30px; bottom: 96px; }
}
