/* ============================================================
   KG-Guardian — tema NEGRO (v2.2 estructura · paleta teal/verde)
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #000000;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --ink: #ffffff;        /* títulos */
  --text: #ffffff;       /* cuerpo claro sobre negro */
  --muted: #b7b7b7;
  --muted-2: #8c8c8c;

  --accent: #039B93;     /* teal principal KG-Guardian */
  --accent-2: #199B91;   /* teal secundario */
  --accent-strong: #02807a;
  --accent-ink: #00130f; /* texto oscuro sobre teal */

  --red: #e63946;            /* rojo de acento (palabras destacadas + estados del mapa) */
  --red-2: #f05561;
  --map-soon: #464344;       /* gris de los demás estados */

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-weight: 300; color: var(--text);
  background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%); top: 8px; z-index: 200; background: var(--accent); color: #fff; padding: .6rem 1.1rem; border-radius: 8px; font-weight: 600; transition: transform .25s var(--ease); }
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(3,155,147,.8); }
.btn--accent:hover { background: #04b3a9; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(3,155,147,.8); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--accent-strong); }
.btn--light:hover { background: #eafaf8; transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__wa { flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); height: 84px; }
.header__inner { display: flex; align-items: center; gap: 1.5rem; width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.brand__logo { height: 100px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 62px; }
.nav { display: none; }
.nav a { font-size: .95rem; color: var(--muted); font-weight: 400; position: relative; padding: .25rem 0; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent); transition: width .28s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; color: #fff; }
.phone__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(3,155,147,.16); color: var(--accent); }
.phone:hover .phone__icon { background: var(--accent); color: #fff; }
.nav-toggle { display: flex; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99; background: rgba(10,10,10,.97); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: .9rem .5rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.mobile-nav a.btn { color: #fff; margin-top: .75rem; border: none; justify-content: center; }

/* ---------- Hero (video a pantalla completa detrás del texto) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { animation: heroZoom 18s ease-out forwards; }
.hero__video { z-index: 1; opacity: 0; transition: opacity .9s var(--ease); }
.hero__video.is-playing { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.34) 38%, rgba(10,10,10,.9) 100%),
    radial-gradient(120% 75% at 50% 115%, rgba(3,155,147,.22), transparent 55%);
}
.hero__content { padding-block: clamp(2rem, 5vh, 3.5rem); max-width: 820px; }
.hero__title { margin-bottom: .35rem; }
.hero__arma { display: block; color: var(--red); font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 9.5rem); line-height: .86; letter-spacing: -0.02em; }
.hero__resto { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5.6vw, 3.6rem); letter-spacing: -0.01em; margin-top: .12em; }
.hero__tagline { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.75rem); color: #fff; margin-top: .6rem; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: #e7e7e7; margin: 1.1rem 0 1.9rem; max-width: 46ch; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.eyebrow { font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; color: var(--accent); margin-bottom: .9rem; }
.accent-word { color: var(--accent); }
.hl-red { color: var(--red); }

/* ---------- Sections base ---------- */
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.section-head .eyebrow { color: var(--accent); }
.section-head__lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Barra de confianza (solo DGSP) ---------- */
.trust { background: #0d0d0d; border-block: 1px solid var(--line); padding-block: clamp(2rem, 4.5vw, 3rem); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem; text-align: center; }
.trust__item { display: inline-flex; align-items: center; gap: .9rem; }
.trust__item svg { flex: 0 0 auto; width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust__item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.2; }
.trust__item span { font-size: .85rem; color: var(--muted); }
.trust__permit { display: inline-flex; flex-direction: column; align-items: center; }
.trust__permit .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-2); }
.trust__permit .code { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--accent); letter-spacing: .02em; }

/* ---------- Beneficios ---------- */
.benefits { padding-block: clamp(4rem, 9vw, 7rem); }
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.4rem; transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.pillar__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow: 0 10px 24px -12px rgba(3,155,147,.7); margin-bottom: 1.2rem; }
.pillar__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .92rem; }

/* ---------- Divisiones ---------- */
.divisions { padding-block: clamp(4rem, 9vw, 7rem); background: #0d0d0d; }
.divisions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.div-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.div-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.div-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.div-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .7s var(--ease); }
.div-card:hover .div-card__media img { transform: scale(1.07); }
.div-card__body { padding: 1.5rem 1.5rem 1.8rem; }
.div-card__eyebrow { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.div-card__body h3 { font-size: 1.4rem; margin: .35rem 0 .9rem; color: var(--accent); }
.div-card__body p { color: var(--muted); font-size: .95rem; }

/* ---------- IEXE (plan de carrera) ---------- */
.iexe { padding-block: clamp(4rem, 9vw, 7rem); }
.iexe__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.iexe__text h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .4rem 0 1.2rem; }
.iexe__text p { color: #e3e3e3; font-size: 1.08rem; margin-bottom: 1.5rem; }
.iexe__text strong { color: #fff; font-weight: 600; }
.iexe__badge { display: inline-flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.iexe__logo-img { height: 46px; width: auto; }
.iexe__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -34px rgba(0,0,0,.9); border: 1px solid var(--line); }
.iexe__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }

/* ---------- Requisitos ---------- */
.reqs { padding-block: clamp(4rem, 9vw, 7rem); background: #0d0d0d; }
.reqs__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.reqs__intro h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .35rem 0 1.75rem; }
.reqs__list { display: flex; flex-direction: column; gap: 1rem; }
.reqs__list li { display: flex; align-items: flex-start; gap: .85rem; color: #e3e3e3; font-size: 1.05rem; }
.reqs__list svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 4px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.reqs__help { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.25rem); }
.reqs__help h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.reqs__help p { color: var(--muted); margin-bottom: 1.5rem; }
.reqs__help strong { color: #fff; font-weight: 600; }

/* ---------- Cobertura / mapa (panel blanco + verde) ---------- */
.coverage { padding-block: clamp(4rem, 9vw, 7rem); }
.coverage__mapwrap { max-width: 880px; margin-inline: auto; background: #0d0d0d; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.mx-map { width: 100%; height: auto; display: block; }
.mx-state { fill: var(--map-soon); stroke: rgba(255,255,255,0.10); stroke-width: 0.6; transition: fill .25s var(--ease), filter .25s var(--ease); }
.mx-state.is-hiring { fill: var(--red); cursor: pointer; }
.mx-state.is-hiring:hover, .mx-state.is-hiring:focus-visible { fill: var(--red-2); outline: none; filter: drop-shadow(0 0 6px rgba(230,57,70,.6)); }
.coverage__legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: .45rem; }
.lg::before { content: ""; width: 14px; height: 14px; border-radius: 4px; }
.lg--hiring::before { background: var(--red); }
.lg--soon::before { background: var(--map-soon); }
.coverage__note { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: 1rem; }
.coverage__note a { color: var(--accent); font-weight: 600; }

/* ---------- Convenios (aliados) ---------- */
.allies { padding-block: clamp(4rem, 9vw, 7rem); background: #0d0d0d; }
.allies__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ally { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.35rem; text-align: center; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.ally:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 22px 44px -26px rgba(0,0,0,.6); }
.ally__logo { display: grid; place-items: center; min-height: 96px; margin-bottom: 1.2rem; border-radius: var(--radius-sm); background: #fff; padding: 1.1rem 1.35rem; }
.ally__logo img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.ally p { color: var(--muted); font-size: .95rem; }
.allies__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }
.allies__hint { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
.allies__hint strong { color: var(--accent); }
.allies__note { text-align: center; color: var(--muted-2); font-size: .82rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem) 5.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.footer__logo { height: 56px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted-2); max-width: 34ch; font-size: .95rem; }
.footer__channels h3, .footer__fraud h3 { font-size: 1.15rem; margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; color: #fff; }
.footer__channels ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__channels a { color: var(--muted); transition: color .2s; width: fit-content; }
.footer__channels a:hover { color: var(--accent); }
.footer__fraud p { color: var(--muted-2); font-size: .92rem; max-width: 38ch; }
.footer__fraud strong { color: #ff9a9a; font-weight: 600; }
.footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .25s, transform .25s, background .25s; }
.footer__social a:hover { border-color: var(--accent); background: rgba(3,155,147,.14); transform: translateY(-2px); }
.footer__social img { width: 20px; height: 20px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .88rem; }
.footer__privacy { color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.footer__privacy:hover { color: #fff; border-color: var(--accent); }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #042b16; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.fab-whatsapp:hover { transform: scale(1.1) translateY(-2px); }
.fab-whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.7);opacity:0} }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .phone span { display: none; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .divisions__grid { grid-template-columns: 1fr 1fr; }
  .allies__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 90px; }
  .brand__logo { height: 66px; }
  .site-header.is-scrolled { height: 68px; }
  .site-header.is-scrolled .brand__logo { height: 50px; }
  .iexe__grid { grid-template-columns: 1fr; }
  .iexe__media { order: -1; }
  .reqs__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .divisions__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .hero { min-height: 92svh; }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
  .allies__grid { grid-template-columns: 1fr; }
  .trust__inner { flex-direction: column; gap: 1.25rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__poster { animation: none; }
  .hero__video { display: none; }
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 9vw, 7rem); }
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color .2s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.6rem; line-height: 1; font-weight: 400; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--accent); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { color: var(--muted); font-size: .96rem; margin: 0; line-height: 1.6; }

/* ---------- Footer: "Parte de Kauil Group" ---------- */
.footer__parent { margin-top: .9rem; }
.footer__parent a { color: var(--muted); font-size: .9rem; }
.footer__parent a:hover { color: var(--accent); }
.footer__parent strong { color: var(--text); font-weight: 600; }
