/* =============================================================
   BFG GROUP S.A.S. — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --navy: #0B1F3A;
  --navy-2: #112a4d;
  --navy-3: #18355f;
  --white: #FFFFFF;
  --ink: #0E0E10;
  --ink-2: #3c4250;
  --ink-3: #5d6472;
  --purple: #4B2E83;
  --purple-2: #5d3c9c;
  --lavender: #A88BE0;
  --gold: #C9A227;
  --mist: #F4F5F8;
  --line: #E3E6EC;
  --line-dark: rgba(255,255,255,.14);
  --danger: #B42318;
  --ok: #157F4B;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(80px, 12vw, 152px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 2px 8px rgba(11,31,58,.05);
  --shadow-md: 0 10px 30px -10px rgba(11,31,58,.22);
  --shadow-lg: 0 30px 60px -20px rgba(11,31,58,.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
address { font-style: normal; }
::selection { background: var(--purple); color: var(--white); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .hero :focus-visible, .process :focus-visible, .quote :focus-visible, .manifesto :focus-visible, .site-footer :focus-visible { outline-color: var(--lavender); }

/* 3. Utilities ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .7rem 1.1rem; background: var(--white); color: var(--navy); border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 1rem; }
.section { padding-block: var(--section); position: relative; }
.pending { color: var(--purple); font-weight: 600; }

/* 4. Typography ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--lavender); }
.eyebrow-chev { width: 26px; height: 13px; fill: var(--gold); flex: none; }
.h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); color: var(--navy); max-width: 18ch; }
.h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--navy); }
.h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); line-height: 1.3; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--ink-2); line-height: 1.6; }
.hl { color: var(--lavender); }
.req { color: var(--danger); font-weight: 600; }
.opt { color: var(--ink-3); font-weight: 400; font-size: .9em; }
.fineprint { margin-top: 2rem; font-size: .82rem; color: var(--ink-3); }

/* 5. Components ------------------------------------------------ */
.btn {
  --bg: var(--purple); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  background: var(--bg); color: var(--fg);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn::after { /* barrido suave */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { box-shadow: 0 10px 24px -10px rgba(75,46,131,.65); }
.btn--primary:hover { background: var(--purple-2); box-shadow: 0 16px 32px -12px rgba(75,46,131,.75); }
.btn--ghost-light { --bg: transparent; --fg: var(--white); border: 1.5px solid rgba(255,255,255,.4); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--gold-line { --bg: var(--purple); --fg: var(--white); }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: .92rem; }
.btn--text { --bg: transparent; --fg: var(--ink-2); padding-inline: .6rem; }
.btn--text:hover { --fg: var(--purple); transform: none; }
.btn-chev { width: 9px; height: 14px; fill: currentColor; transition: transform .45s var(--ease-out); }
.btn:hover .btn-chev { transform: translateX(4px); }

/* Placeholder de imagen */
.ph {
  position: relative; aspect-ratio: var(--ar, 16/9); width: 100%;
  display: grid; place-items: center; padding: 1.5rem; text-align: center;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(11,31,58,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #eef0f5, #e2e6ee);
  border: 1px dashed #c4cad6;
  color: var(--ink-3);
}
.ph::before { /* chevrones de marca de agua */
  content: ""; position: absolute; right: -6%; bottom: -8%; width: 60%; aspect-ratio: 2/1; opacity: .07;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 4 L26 30 L4 56 H18 L40 30 L18 4Z M40 4 L62 30 L40 56 H54 L76 30 L54 4Z M76 4 L98 30 L76 56 H90 L112 30 L90 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 4 L26 30 L4 56 H18 L40 30 L18 4Z M40 4 L62 30 L40 56 H54 L76 30 L54 4Z M76 4 L98 30 L76 56 H90 L112 30 L90 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border-color: rgba(168,139,224,.35); color: rgba(255,255,255,.72);
}
.ph-label { position: relative; font-size: .85rem; line-height: 1.5; max-width: 30ch; font-weight: 600; }
.ph-label small { font-weight: 400; opacity: .8; letter-spacing: .04em; }

/* Fotos */
.media { position: relative; aspect-ratio: var(--ar, 16/9); width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); box-shadow: var(--shadow-md); }
.media--dark, .hero .media { background: var(--navy-3); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media:hover img { transform: scale(1.03); }
.hero .media { box-shadow: var(--shadow-lg); }
.hero .media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(168,139,224,.25); pointer-events: none; }

/* Logo */
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 52px; width: auto; margin-left: -8px; transition: opacity .35s var(--ease-out); }
.brand-logo--color { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.logo-ph { display: none; padding: .45rem .9rem; border: 1.5px dashed currentColor; border-radius: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .logo-ph { display: inline-block; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.5rem; }
.chips li { padding: .55rem 1rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); display: inline-flex; align-items: center; gap: .5rem; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* 6. Sections -------------------------------------------------- */

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), color .4s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); color: var(--navy); }
.site-header.is-scrolled .brand-logo--neg { opacity: 0; }
.site-header.is-scrolled .brand-logo--color { opacity: 1; }

.nav-toggle { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav-list {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--navy); color: var(--white);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility 0s .5s;
}
.nav-list a:not(.btn) { display: block; padding: .7rem 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid var(--line-dark); }
.nav-cta-item { margin-top: 1.5rem; }
.nav-cta-item .btn { width: 100%; min-height: 54px; font-size: 1rem; }
.nav-open .nav-list { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), visibility 0s; }
.nav-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
.nav-open .site-header .brand-logo--neg { opacity: 1; }
.nav-open .site-header .brand-logo--color { opacity: 0; }
.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(75,46,131,.45), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(24,53,95,.9), transparent 60%),
    var(--navy);
  padding: calc(var(--header-h) + clamp(40px, 8vw, 96px)) 0 clamp(72px, 10vw, 120px);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 8.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.08rem, 1.9vw, 1.28rem); color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin-top: 2rem; font-size: .88rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .6rem; }
.hero-note::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero-media { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.hero-badge {
  position: absolute; left: -12px; bottom: 28px;
  display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem;
  background: var(--white); color: var(--navy); border-radius: 14px; box-shadow: var(--shadow-lg);
  font-size: .82rem; font-weight: 600; line-height: 1.3;
}
.hero-badge svg { width: 40px; height: 20px; fill: var(--purple); flex: none; }

.hero-chevrons { position: absolute; inset: 0; pointer-events: none; }
.hc { position: absolute; fill: none; stroke: rgba(168,139,224,.22); stroke-width: .6; }
.hc-1 { width: min(900px, 140vw); height: auto; aspect-ratio: 2/1; right: -30%; top: 6%; }
.hc-2 { width: min(520px, 90vw); aspect-ratio: 2/1; left: -18%; bottom: -10%; stroke: rgba(201,162,39,.16); }
.hc path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s var(--ease-out) forwards; }
.hc path:nth-child(2) { animation-delay: .25s; }
.hc path:nth-child(3) { animation-delay: .5s; }
.hc-1 { animation: drift 18s ease-in-out infinite alternate; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lavender); animation: cue 1.8s var(--ease-soft) infinite; }

/* Tipos de eventos */
.types { background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.types-track { display: flex; width: max-content; }
.types-list { display: flex; flex: none; }
.types-list li {
  display: inline-flex; align-items: center; gap: 1.25rem; padding: 1.6rem 1.25rem;
  font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: -.01em; color: var(--navy); white-space: nowrap;
}
.types-list li::after {
  content: ""; width: 20px; height: 10px; background: var(--purple); margin-left: 1.25rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 4 L26 30 L4 56 H18 L40 30 L18 4Z M40 4 L62 30 L40 56 H54 L76 30 L54 4Z M76 4 L98 30 L76 56 H90 L112 30 L90 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cpath d='M4 4 L26 30 L4 56 H18 L40 30 L18 4Z M40 4 L62 30 L40 56 H54 L76 30 L54 4Z M76 4 L98 30 L76 56 H90 L112 30 L90 4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.types-track.is-marquee { animation: marquee 40s linear infinite; }
.types-track.is-marquee:hover { animation-play-state: paused; }
/* sin JS / sin animación: lista que se envuelve */
.types-track:not(.is-marquee) { width: auto; }
.types-track:not(.is-marquee) .types-list { flex-wrap: wrap; justify-content: center; padding: .5rem var(--gutter); }
.types-track:not(.is-marquee) .types-list li { padding: .7rem .9rem; font-size: 1rem; }

/* Nosotros */
.about-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about-intro .lead { margin-bottom: 1.25rem; }
.about-intro p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.about-intro .h2 { margin-bottom: 1.5rem; }
.mv-grid { display: grid; gap: 1.25rem; margin-top: clamp(56px, 8vw, 96px); }
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--mist); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.mv-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--purple), var(--gold) 70%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.mv-card:hover::after { transform: scaleX(1); }
.mv-card .h4 { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; font-size: 1.35rem; font-weight: 800; }
.mv-icon { width: 12px; height: 18px; fill: var(--gold); }
.mv-card p { color: var(--ink-2); }

/* Manifiesto */
.manifesto { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: clamp(88px, 13vw, 160px); }
.manifesto-bg { position: absolute; right: -12%; top: 50%; width: min(1100px, 160vw); aspect-ratio: 2/1; transform: translateY(-50%); fill: rgba(255,255,255,.03); }
.manifesto-text { position: relative; }
.manifesto-text p { font-size: clamp(1.9rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: rgba(255,255,255,.92); }
.manifesto-text p + p { margin-top: .35em; }
.manifesto-close { margin-top: .9em !important; padding-top: .9em; border-top: 1px solid var(--line-dark); max-width: 22ch; }

/* Servicios */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .h2 { margin-inline: auto; }
.services { background: var(--white); }
.svc-main {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, #1d2160 100%);
  color: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.svc-main::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(75,46,131,.55), transparent); }
.svc-main-copy { position: relative; }
.svc-tag { display: inline-block; margin-bottom: 1.1rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(201,162,39,.6); color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.svc-main .h3 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.svc-main-lead { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 1.75rem; max-width: 46ch; }
.svc-list { display: grid; gap: .8rem; margin-bottom: 2.25rem; }
.svc-list li { position: relative; padding-left: 1.7rem; color: rgba(255,255,255,.82); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 13px; background: var(--lavender); clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%); }
.svc-list strong { color: var(--white); font-weight: 600; }
.svc-main-media { position: relative; max-width: 440px; width: 100%; justify-self: center; }

.svc-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.svc-card { padding: clamp(28px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(75,46,131,.25); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(75,46,131,.08); margin-bottom: 1.4rem; transition: background-color .4s, transform .5s var(--ease-out); }
.svc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.svc-card:hover .svc-icon { background: var(--purple); transform: rotate(-6deg); }
.svc-card:hover .svc-icon svg { stroke: var(--white); }
.svc-card .h4 { margin-bottom: 1rem; font-weight: 800; font-size: 1.25rem; }
.svc-mini { display: grid; gap: .55rem; }
.svc-mini li { position: relative; padding-left: 1.2rem; color: var(--ink-2); font-size: .97rem; }
.svc-mini li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Proceso */
.process { background: var(--navy); color: var(--white); overflow: hidden; }
.process .h2 { color: var(--white); }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step {
  --c: var(--navy-3);
  position: relative; padding: 28px 28px 28px 28px; border-radius: 16px; background: var(--c);
  transition: background-color .7s var(--ease-out), transform .7s var(--ease-out);
}
.step-num { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--lavender); margin-bottom: .9rem; transition: color .5s; }
.step .h4 { color: var(--white); font-weight: 800; font-size: 1.35rem; margin-bottom: .6rem; }
.step p { color: rgba(255,255,255,.78); font-size: .97rem; }
.step.is-on { --c: var(--purple); }
.step.is-on .step-num { color: var(--gold); }

/* Contratación */
.contracting { background: var(--mist); }
.contracting-grid { display: grid; gap: clamp(24px, 5vw, 80px); }
.contracting-copy p:not(.lead) { color: var(--ink-2); }

/* Valores */
.values-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.value { position: relative; padding: 2rem 0 2rem 4rem; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.value-n { position: absolute; left: 0; top: 2.15rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--purple); }
.value .h4 { font-weight: 800; font-size: 1.3rem; margin-bottom: .35rem; transition: color .3s, transform .5s var(--ease-out); }
.value p { color: var(--ink-2); }
.value::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.value:hover::before { transform: scaleX(1); }
.value:hover .h4 { color: var(--purple); transform: translateX(4px); }

/* Equipo */
.team-grid { display: grid; gap: clamp(24px, 4vw, 40px); }
.person { display: grid; gap: 1.5rem; padding: clamp(20px, 3vw, 28px); border-radius: 24px; border: 1px solid var(--line); background: var(--white); transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.person:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.person-photo { max-width: 260px; border-radius: 18px; }
.person .h4 { font-size: 1.4rem; font-weight: 800; }
.person-role { margin: .35rem 0 1rem; color: var(--purple); font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.person-role::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.person-body p:last-child { color: var(--ink-2); font-size: .98rem; }

/* Cotizar */
.quote { background: linear-gradient(170deg, var(--navy) 0%, #0f2547 55%, #1a1f55 100%); color: var(--white); overflow: hidden; }
.quote-bg { position: absolute; left: -15%; bottom: -10%; width: min(900px, 150vw); aspect-ratio: 2/1; fill: rgba(255,255,255,.025); }
.quote-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
.quote .h2 { color: var(--white); margin-bottom: 1.25rem; }
.quote-intro > p { color: rgba(255,255,255,.78); }
.quote-points { margin-top: 2rem; display: grid; gap: .9rem; }
.quote-points li { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.88); font-weight: 600; }
.quote-points svg { width: 9px; height: 14px; fill: var(--gold); flex: none; }
.quote-card { background: var(--white); color: var(--ink); border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }

.qform-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.75rem; }
.qp { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; border-bottom: 3px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-3); transition: color .4s, border-color .5s var(--ease-out); }
.qp b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .8rem; transition: background-color .4s, color .4s; }
.qp.is-active, .qp.is-done { color: var(--navy); border-color: var(--purple); }
.qp.is-active b, .qp.is-done b { background: var(--purple); color: var(--white); }

.qstep { border: 0; min-width: 0; }
.qstep-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 1.25rem; letter-spacing: -.01em; }
.js .qstep:not(.is-active) { display: none; }
.js .qstep.is-active { animation: stepIn .55s var(--ease-out); }
html:not(.js) .qstep + .qstep { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
html:not(.js) [data-next], html:not(.js) [data-prev], html:not(.js) .qform-progress { display: none; }

.fgrid { display: grid; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .2rem; }
.field label, .checks legend { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 12px;
  border: 1.5px solid #cfd4de; background: var(--white); color: var(--ink); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234B2E83' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb5c3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(75,46,131,.14); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field.is-valid input, .field.is-valid select { border-color: #8cc5a6; }
.ferr { min-height: 0; font-size: .85rem; color: var(--danger); font-weight: 600; }
.ferr:empty { display: none; }

.checks { border: 0; margin: 1.25rem 0 1rem; min-width: 0; }
.checks legend { margin-bottom: .7rem; }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.check { position: relative; display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; font-size: .93rem; line-height: 1.4; }
.checks-grid .check { padding: .75rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .25s, background-color .25s; align-items: center; }
.checks-grid .check:hover { border-color: #b9bfcc; }
.checks-grid .check:has(input:checked) { border-color: var(--purple); background: rgba(75,46,131,.06); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border: 1.5px solid #aab1bf; border-radius: 6px; background: var(--white); display: grid; place-items: center; transition: background-color .2s, border-color .2s; margin-top: 1px; }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform .25s var(--ease-out); }
.check input:checked { background: var(--purple); border-color: var(--purple); }
.check input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.check input:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.check--consent { font-size: .88rem; color: var(--ink-2); margin-top: .75rem; }
.check--consent a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field--consent.is-invalid .check input { border-color: var(--danger); }

.qactions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.qactions:has(> :only-child) { justify-content: flex-end; }
.qactions [data-submit] { flex: 1; max-width: 260px; margin-left: auto; }
.btn-loading { display: none; }
.is-sending .btn-label { display: none; }
.is-sending .btn-loading { display: inline-flex; align-items: center; gap: .6rem; }
.is-sending .btn-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white); animation: spin .8s linear infinite; }
.is-sending [data-submit] { pointer-events: none; opacity: .85; }
.qform-status { margin-top: 1rem; font-size: .92rem; font-weight: 600; color: var(--danger); }
.qform-status:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qsuccess { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.qsuccess:focus { outline: none; }
.qsuccess-icon { width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%; background: rgba(21,127,75,.1); display: grid; place-items: center; }
.qsuccess-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawShort .8s .2s var(--ease-out) forwards; }
.qsuccess .h3 { margin-bottom: .8rem; }
.qsuccess p { color: var(--ink-2); max-width: 40ch; margin: 0 auto 1rem; }
.qsuccess-note:empty { display: none; }
.qsuccess-note { font-size: .85rem; padding: .7rem 1rem; border-radius: 10px; background: #fff7e0; color: #6b5300 !important; }
.qsuccess .btn--ghost-light { --fg: var(--navy); border-color: var(--line); margin-top: .5rem; }
.qsuccess .btn--ghost-light:hover { border-color: var(--purple); background: rgba(75,46,131,.05); }

/* Contacto */
.contact-grid { display: grid; gap: 1rem; }
.contact-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: 1.4rem 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--white); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(75,46,131,.3); }
.contact-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); }
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.contact-card:hover .contact-icon { background: var(--purple); }
.contact-k { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-v { font-weight: 600; color: var(--navy); word-break: break-word; line-height: 1.45; }
.contact-v--hours { display: flex; flex-direction: column; font-size: clamp(.74rem, 2.6vw, .86rem); letter-spacing: -.01em; word-break: normal; }
.contact-v--hours > span { white-space: nowrap; }
.contact-card { min-width: 0; }
@media (max-width: 539px) {
  .contact-card:has(.contact-v--hours) { grid-template-columns: 1fr; row-gap: .25rem; }
  .contact-card:has(.contact-v--hours) .contact-icon { grid-row: auto; margin-bottom: .6rem; }
  .contact-v--hours { font-size: clamp(.66rem, calc((100vw - 92px) / 21), .9rem); }
}
@media (min-width: 540px) and (max-width: 1279px) {
  .contact-card--wide { grid-column: 1 / -1; }
  .contact-v--hours { font-size: .9rem; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .contact-grid { grid-template-columns: 1fr 1fr !important; }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #1f7a4d; color: var(--white); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #186a42; box-shadow: 0 16px 30px -10px rgba(0,0,0,.45); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(64px, 9vw, 104px) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.brand--footer { color: var(--white); margin-bottom: 1.25rem; }
.footer-legal { color: rgba(255,255,255,.85); line-height: 1.6; }
.footer-legal strong { color: var(--white); font-weight: 800; letter-spacing: .02em; }
.footer-tag { margin-top: .6rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-h { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); margin-bottom: 1rem; }
.footer-list { display: grid; gap: .55rem; }
.footer-list a, .footer-small a { transition: color .25s; }
.footer-list a:hover, .footer-small a:hover { color: var(--white); }
.footer-social { display: flex; gap: .6rem; margin-bottom: 1.25rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); transition: border-color .3s, background-color .3s, transform .4s var(--ease-out); }
.footer-social a:hover { border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-social a { width: auto; padding: 0 .9rem 0 .7rem; gap: .5rem; display: inline-flex; align-items: center; }
.social-handle { font-weight: 600; font-size: .9rem; }
.person-photo--img { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: var(--mist); }
.person-photo--img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.person:hover .person-photo--img img { transform: scale(1.03); }
.person-monogram {
  position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 80% 0%, rgba(75,46,131,.65), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--navy));
}
.person-monogram span { position: relative; font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; color: var(--white); }
.person-monogram-chev { position: absolute; right: -14%; bottom: 8%; width: 90%; aspect-ratio: 2/1; fill: rgba(168,139,224,.14); transition: transform .8s var(--ease-out); }
.person:hover .person-monogram-chev { transform: translateX(6px); }
.footer-small { font-size: .88rem; }
.footer-small a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: clamp(48px, 7vw, 80px); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-chev { width: 44px; height: 22px; fill: var(--gold); opacity: .8; flex: none; }

/* 7. Effects --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawShort { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-3%, 2%, 0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* 8. Responsive (mobile-first) --------------------------------- */
@media (min-width: 540px) {
  .checks-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .person { grid-template-columns: 200px 1fr; align-items: start; }
  .person-photo { max-width: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .hero-badge { left: -28px; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .nav-toggle { display: none; }
  .nav-list {
    position: static; inset: auto; flex-direction: row; align-items: center; gap: .25rem;
    padding: 0; background: none; color: inherit; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav-list a:not(.btn) { position: relative; padding: .6rem .85rem; font-size: .95rem; font-weight: 600; letter-spacing: 0; border: 0; }
  .nav-list a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
  .nav-list a:not(.btn):hover::after, .nav-list a.is-current::after { transform: scaleX(1); }
  .nav-cta-item { margin: 0 0 0 .75rem; }
  .nav-cta-item .btn { width: auto; min-height: 46px; }
  .nav-open { overflow: auto; }

  .hero { min-height: 100svh; display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .scroll-cue { display: block; }

  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .svc-main { grid-template-columns: 1.3fr .7fr; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .step {
    border-radius: 0; padding: 40px 48px 40px 56px;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%, 32px 50%);
    margin-right: -18px;
  }
  .step:first-child { clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%); padding-left: 36px; border-radius: 16px 0 0 16px; }
  .step:last-child { margin-right: 0; }
  .contracting-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 100%; aspect-ratio: 5/4 !important; }
  .quote-grid { grid-template-columns: .8fr 1.2fr; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: auto; }
  .wa-float { right: 28px; bottom: 28px; }
}

@media (min-width: 960px) {
  .team-grid--single { grid-template-columns: 1fr; max-width: 980px; }
  .team-grid--single .person { grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; padding: 28px; }
  .team-grid--single .person-photo { aspect-ratio: 4/5 !important; }
  .team-grid--single .person-body p:last-child { font-size: 1.05rem; }
}

@media (min-width: 1280px) {
  .person { grid-template-columns: 220px 1fr; }
  .person-photo { aspect-ratio: 4/5 !important; }
}

/* 9. Reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hc-1, .scroll-cue span { animation: none; }
  .hc path { animation: none; stroke-dashoffset: 0; }
  .types-track.is-marquee { animation: none; }
  .js .reveal { transform: none; transition: opacity .5s linear; }
  .js .qstep.is-active { animation: none; }
}
