/* =========================================================
   APED - Agencia de Trafico Digital
   Landing con hero de video + secciones por herramienta
   ========================================================= */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  /* Marca APED */
  --aped-navy: #0d1a30;
  --aped-navy-2: #101f3a;
  --aped-navy-3: #08101f;
  --aped-yellow: #f7b928;
  --aped-yellow-2: #ffc83d;
  --aped-yellow-text: #101b32;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --body-text: #c9d0dc;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--aped-navy);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================================================
   HEADER FIJO
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: clamp(14px, 2.2vh, 22px) clamp(14px, 3vw, 32px);
  pointer-events: none;
}

.header {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s var(--ease) both;
}

.logo {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--aped-navy);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--nav-shadow);
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.04);
}

/* Ventana de recorte: 72% del circulo */
.logo-crop,
.logo-fallback {
  width: 72%;
  height: 72%;
  display: block;
}

.logo-crop {
  position: relative;
  overflow: hidden;
}

/*
  assets/logo.webp mide 583x262 e incluye el texto "APED".
  El icono ocupa x 220-322, y 11-125. Se escala la imagen para que
  un cuadrado de 115px centrado en el icono llene la ventana de recorte.
  Si reemplazas el logo por un archivo cuadrado solo-icono, cambia esto a:
  .logo-img { position: static; width: 100%; height: 100%; object-fit: contain; }
*/
.logo-img {
  position: absolute;
  top: -9.13%;
  left: -185.65%;
  width: 506.96%;
  height: auto;
  max-width: none;
  display: block;
}

.logo-crop[hidden],
.logo-fallback[hidden] {
  display: none;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

/* Indicador activo: tres puntos */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--aped-navy);
  box-shadow: -5px 0 0 var(--aped-navy), 5px 0 0 var(--aped-navy);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(18px, 2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 8px) clamp(14px, 3vw, 32px) clamp(24px, 4vh, 40px);
  overflow: hidden;
  background: var(--bg);
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Capa de color de marca sobre el video. Para quitarla: display none */
.bg-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(13, 26, 48, 0.25) 0%, rgba(8, 14, 28, 0.78) 100%),
    linear-gradient(180deg, rgba(13, 26, 48, 0.55) 0%, rgba(13, 26, 48, 0.62) 85%, var(--aped-navy) 100%);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  text-align: center;
}

.hero-logo {
  margin-bottom: clamp(6px, 1.5vh, 14px);
}

.hero-logo img {
  display: block;
  width: clamp(230px, 32vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(247, 185, 40, 0.22)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* ---------- Fila de confianza ---------- */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(14px, 2.2vh, 22px);
}

.avatars {
  display: inline-flex;
  align-items: center;
}

.avatar {
  position: relative;
  display: inline-flex;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease);
}

.avatar + .avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; }
.avatar.a3 { z-index: 4; }

.avatar.a1:hover { transform: translateY(-2px); }
.avatar.a2:hover { transform: translateY(-4px); }
.avatar.a3:hover { transform: translateY(-2px); }

.avatar-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: calc(var(--trust-size) * 0.42);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
  z-index: 3;
}

/* ---------- Titular ---------- */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 5.4vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}

.headline .line-1 { animation-delay: 0.18s; }
.headline .line-2 {
  animation-delay: 0.34s;
  color: var(--aped-yellow);
}

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.subhead {
  max-width: min(540px, 92%);
  margin: clamp(12px, 2vh, 20px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(16px, 2.6vh, 26px);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: var(--aped-yellow);
  color: var(--aped-yellow-text);
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px rgba(247, 185, 40, 0.25),
    0 0 22px rgba(247, 185, 40, 0.34),
    0 0 44px rgba(247, 185, 40, 0.14);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.cta:hover {
  background: var(--aped-yellow-2);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(247, 185, 40, 0.35),
    0 0 30px rgba(247, 185, 40, 0.5),
    0 0 60px rgba(247, 185, 40, 0.22);
}

.cta-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  margin-top: clamp(28px, 5vh, 52px);
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
}

.stat-value {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

/* =========================================================
   SECCIONES GENERICAS
   ========================================================= */
.section {
  position: relative;
  padding: clamp(64px, 10vh, 112px) clamp(16px, 4vw, 40px);
  background: var(--aped-navy);
}

.section-about {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(247, 185, 40, 0.07) 0%, rgba(247, 185, 40, 0) 70%),
    var(--aped-navy);
}

.section-tools {
  padding-bottom: clamp(40px, 6vh, 64px);
  background:
    radial-gradient(50% 45% at 0% 100%, rgba(247, 185, 40, 0.06) 0%, rgba(247, 185, 40, 0) 70%),
    var(--aped-navy-2);
}

.section-jobs {
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(247, 185, 40, 0.1) 0%, rgba(247, 185, 40, 0) 70%),
    var(--aped-navy);
}

.section + .section::before,
.tool-section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vh, 52px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aped-yellow);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: #fff;
}

.section-lead {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.65;
  color: var(--body-text);
}

/* ---------- Cards: Quienes somos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: rgba(247, 185, 40, 0.45);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(247, 185, 40, 0.12);
  color: var(--aped-yellow);
  font-size: 19px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body-text);
}

.card-accent {
  background: linear-gradient(160deg, rgba(247, 185, 40, 0.16), rgba(247, 185, 40, 0.04));
  border-color: rgba(247, 185, 40, 0.4);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--aped-yellow);
}

.card-link i {
  transition: transform 0.25s ease;
}

.card-link:hover i {
  transform: translateX(4px);
}

/* ---------- Indice de herramientas (chips) ---------- */
.tool-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: #e6e9ef;
  transition: transform 0.3s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.tool-chip img {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.tool-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* =========================================================
   SECCIONES POR HERRAMIENTA
   ========================================================= */
.tool-section {
  position: relative;
  padding: clamp(72px, 11vh, 120px) clamp(16px, 4vw, 40px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18)),
    var(--aped-navy);
}

.tool-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1080px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent);
}

/* Cuadricula sutil de fondo */
.tool-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
}

/* Manchas de color animadas */
.blob {
  position: absolute;
  z-index: -1;
  width: clamp(280px, 40vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
  will-change: transform;
}

.blob.b1 {
  top: -10%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
  animation: blobFloat 16s ease-in-out infinite alternate;
}

.blob.b2 {
  bottom: -18%;
  left: -10%;
  width: clamp(240px, 32vw, 460px);
  background: radial-gradient(circle at 60% 60%, var(--accent-2, var(--accent)), transparent 65%);
  animation: blobFloat 20s ease-in-out infinite alternate-reverse;
}

.tool-section.flip .blob.b1 {
  right: auto;
  left: -8%;
}

.tool-section.flip .blob.b2 {
  left: auto;
  right: -10%;
}

@keyframes blobFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, -8%, 0) scale(1.12); }
  100% { transform: translate3d(-5%, 6%, 0) scale(0.95); }
}

.tool-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.tool-section.flip .tool-copy {
  order: 2;
}

.tool-section.flip .tool-visual {
  order: 1;
}

.tool-copy .eyebrow {
  color: var(--accent);
}

.tool-copy .section-lead {
  margin-left: 0;
}

.tool-logo {
  display: flex;
  width: fit-content;
  align-items: center;
  height: 64px;
  margin-bottom: 22px;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.tool-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/*
  Logos con mucho margen blanco (p. ej. admanager.webp, 890x500 con el arte
  centrado): --art es la proporcion ancho/alto del arte visible y --zoom
  cuantas veces mas alta es la imagen completa que el arte.
*/
.logo-fit {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: var(--art, 4);
  overflow: hidden;
}

.tool-logo .logo-fit img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: calc(var(--zoom, 1) * 100%);
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

/* Chip con recorte al icono (solo la marca de tres trazos de Ad Manager) */
.chip-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}

.chip-icon img {
  position: absolute;
  width: auto;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: none;
}

.chip-admanager img {
  height: 100px;
  left: -17px;
  top: -35px;
}

.do-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.do-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #e6e9ef;
}

.do-list i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-size: 11px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tool-tags li {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: #e6e9ef;
}

/* ---------- Panel (dashboard simulado) ---------- */
.tool-visual {
  position: relative;
  will-change: transform;
}

.tool-visual::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  filter: blur(40px);
  opacity: 0.8;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: panelFloat 7s ease-in-out infinite;
}

.tool-section.flip .panel {
  animation-delay: -3.5s;
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12.5px;
  font-weight: 500;
  color: #c9d0dc;
}

.win-dots {
  display: inline-flex;
  gap: 6px;
}

.win-dots::before,
.win-dots::after,
.win-dots {
  --dot: 9px;
}

.win-dots::before,
.win-dots::after {
  content: "";
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840;
}

.win-dots::after {
  display: none;
}

.win-dots {
  width: 39px;
  height: 9px;
}

.url-bar {
  flex: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #aab3c2;
}

.panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-body.split {
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

/* Metrica grande */
.big-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.big-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #aab3c2;
}

.big-value {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
}

.delta.up {
  color: #35d07f;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(53, 208, 127, 0); }
}

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpis-2 { grid-template-columns: repeat(2, 1fr); }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpis-col { grid-template-columns: 1fr; flex: 1; }

.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-label {
  font-size: 11.5px;
  color: #aab3c2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* Barras */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding: 6px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bars.slim {
  gap: 5px;
  height: 80px;
}

.bar {
  flex: 1;
  height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  transition: height 1.1s var(--ease);
  transition-delay: calc(0.15s + var(--i, 0) * 0.06s);
}

.bar:nth-child(1) { --i: 0; } .bar:nth-child(2) { --i: 1; } .bar:nth-child(3) { --i: 2; }
.bar:nth-child(4) { --i: 3; } .bar:nth-child(5) { --i: 4; } .bar:nth-child(6) { --i: 5; }
.bar:nth-child(7) { --i: 6; } .bar:nth-child(8) { --i: 7; } .bar:nth-child(9) { --i: 8; }
.bar:nth-child(10) { --i: 9; } .bar:nth-child(11) { --i: 10; } .bar:nth-child(12) { --i: 11; }
.bar:nth-child(13) { --i: 12; } .bar:nth-child(14) { --i: 13; } .bar:nth-child(15) { --i: 14; }

.in .bar {
  height: var(--h);
}

/* Filas con medidor */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.rows.compact .row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e6e9ef;
  font-weight: 500;
}

.row-meta {
  color: #aab3c2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.meter {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  transition: width 1.2s var(--ease);
}

.row:nth-child(1) .meter i { transition-delay: 0.2s; }
.row:nth-child(2) .meter i { transition-delay: 0.3s; }
.row:nth-child(3) .meter i { transition-delay: 0.4s; }
.row:nth-child(4) .meter i { transition-delay: 0.5s; }
.row:nth-child(5) .meter i { transition-delay: 0.6s; }

.in .meter i {
  width: var(--w);
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
}

.status.on {
  background: #35d07f;
  box-shadow: 0 0 10px rgba(53, 208, 127, 0.7);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #aab3c2;
}

/* Grafico de linea */
.chart {
  width: 100%;
  height: 120px;
  display: block;
}

.chart .area {
  opacity: 0;
  transition: opacity 0.8s ease 0.9s;
}

.chart .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease) 0.2s;
}

.chart .draw.slow {
  transition-delay: 0.5s;
}

.in .chart .draw {
  stroke-dashoffset: 0;
}

.in .chart .area {
  opacity: 1;
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #aab3c2;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}

/* Anillo */
.ring-wrap {
  position: relative;
  width: 150px;
  flex-shrink: 0;
}

.ring {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-fg {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.ring-fg {
  stroke: var(--accent);
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1.6s var(--ease) 0.2s;
}

.in .ring-fg {
  stroke-dasharray: var(--pct) 100;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ring-label small {
  font-size: 11px;
  font-weight: 400;
  color: #aab3c2;
}

/* Maqueta de sitio (WordPress) */
.site-mock {
  position: relative;
  gap: 14px;
  min-height: 250px;
  background: rgba(255, 255, 255, 0.03);
}

.sk {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.in .sk {
  transform: scaleX(1);
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sk-logo { width: 34px; height: 14px; background: var(--accent); }
.sk-link { width: 40px; height: 8px; }
.sk-btn { width: 56px; height: 18px; margin-left: auto; border-radius: 999px; background: var(--accent-2); }

.mock-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.sk-title { width: 68%; height: 18px; }
.sk-text { width: 88%; height: 8px; }
.sk-text.short { width: 60%; }
.sk-cta { width: 92px; height: 22px; margin-top: 4px; border-radius: 999px; background: var(--accent-2); }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sk-card { height: 54px; border-radius: 12px; }

.mock-nav .sk:nth-child(1) { transition-delay: 0.1s; }
.mock-nav .sk:nth-child(2) { transition-delay: 0.18s; }
.mock-nav .sk:nth-child(3) { transition-delay: 0.24s; }
.mock-nav .sk:nth-child(4) { transition-delay: 0.3s; }
.mock-nav .sk:nth-child(5) { transition-delay: 0.36s; }
.mock-hero .sk:nth-child(1) { transition-delay: 0.45s; }
.mock-hero .sk:nth-child(2) { transition-delay: 0.55s; }
.mock-hero .sk:nth-child(3) { transition-delay: 0.62s; }
.mock-hero .sk:nth-child(4) { transition-delay: 0.7s; }
.mock-cards .sk:nth-child(1) { transition-delay: 0.85s; }
.mock-cards .sk:nth-child(2) { transition-delay: 0.95s; }
.mock-cards .sk:nth-child(3) { transition-delay: 1.05s; }

.score-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  height: 64px;
  justify-content: center;
  border-radius: 50%;
  background: #0d1a30;
  border: 3px solid #35d07f;
  box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.18), 0 10px 24px rgba(0, 0, 0, 0.4);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: #35d07f;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease 1.2s, transform 0.6s var(--ease) 1.2s;
}

.score-badge small {
  font-size: 9px;
  font-weight: 500;
  color: #aab3c2;
  margin-top: 3px;
}

.in .score-badge {
  opacity: 1;
  transform: scale(1);
}

/* Chat (Anthropic) */
.chat {
  gap: 12px;
}

.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}

.msg p {
  margin: 0;
  min-height: 1.5em;
}

.msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-right-radius: 4px;
}

.msg.ai {
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-bottom-left-radius: 4px;
}

.in .msg {
  opacity: 1;
  transform: translateY(0);
}

.in .msg:nth-child(1) { transition-delay: 0.1s; }
.in .msg:nth-child(2) { transition-delay: 0.6s; }
.in .msg:nth-child(3) { transition-delay: 6.8s; }
.in .msg:nth-child(4) { transition-delay: 7.6s; }

.typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: caret 0.9s steps(1) infinite;
}

.typed.done::after {
  display: none;
}

@keyframes caret {
  50% { opacity: 0; }
}

/* Hoja de calculo (Gemini) */
.sheet {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr 0.8fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #e6e9ef;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.sheet-row span:not(:first-child) {
  text-align: right;
}

.sheet-row.head {
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
  color: #fff;
}

.sheet-row.total {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-weight: 600;
  color: #fff;
  border-bottom: 0;
}

.in .sheet-row {
  opacity: 1;
  transform: translateX(0);
}

.in .sheet-row:nth-child(1) { transition-delay: 0.1s; }
.in .sheet-row:nth-child(2) { transition-delay: 0.25s; }
.in .sheet-row:nth-child(3) { transition-delay: 0.4s; }
.in .sheet-row:nth-child(4) { transition-delay: 0.55s; }
.in .sheet-row:nth-child(5) { transition-delay: 0.7s; }
.in .sheet-row:nth-child(6) { transition-delay: 0.9s; }

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  font-size: 12.5px;
  line-height: 1.5;
  color: #fff;
}

.ai-note i {
  margin-top: 3px;
  color: var(--accent-2, var(--accent));
}

/* Rejilla de creatividades (OpenAI) */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #1b2a4a), color-mix(in srgb, var(--accent-2) 30%, #101f3a));
  font-size: 22px;
  color: #fff;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
  transition-delay: calc(0.15s + var(--i) * 0.14s);
}

.gen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
}

.in .gen {
  opacity: 1;
  transform: scale(1);
}

.in .gen::after {
  animation: shimmer 1.4s ease forwards;
  animation-delay: calc(0.5s + var(--i) * 0.14s);
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

/* ---------- Postula ---------- */
.jobs-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.jobs-intro .section-title,
.jobs-intro .section-lead {
  text-align: left;
  margin-left: 0;
}

.perks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: #e6e9ef;
}

.perks i {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(247, 185, 40, 0.18);
  color: var(--aped-yellow);
  font-size: 11px;
}

.jobs-intro .cta-row {
  justify-content: flex-start;
  margin-top: 28px;
}

.jobs-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.jobs-note a {
  color: var(--aped-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 18px);
}

.role {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.role:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 185, 40, 0.5);
  background: var(--card-hover);
}

.role-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(247, 185, 40, 0.14);
  color: var(--aped-yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.role-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-text);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 6vh, 64px) clamp(16px, 4vw, 40px) 28px;
  background: var(--aped-navy-3);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  width: 170px;
  height: auto;
  margin-left: -26px;
  opacity: 0.95;
}

.footer-tagline {
  margin: 0;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body-text);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aped-yellow);
}

.footer-col a {
  font-size: 14px;
  color: var(--body-text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1080px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-small {
  margin-top: 10px !important;
  font-size: 11.5px !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   PAGINA DE POLITICAS
   ========================================================= */
.policy-hero {
  padding: calc(var(--header-h) + clamp(32px, 6vh, 64px)) clamp(16px, 4vw, 40px) clamp(32px, 5vh, 48px);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(247, 185, 40, 0.12) 0%, rgba(247, 185, 40, 0) 70%),
    var(--aped-navy-2);
  border-bottom: 1px solid var(--line);
}

.policy-hero .section-title {
  font-size: clamp(30px, 4.5vw, 54px);
}

.policy-updated {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(36px, 6vh, 64px) clamp(16px, 4vw, 40px) clamp(48px, 8vh, 96px);
}

.policy-aside {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.policy-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.policy-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.policy-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.policy-link.active {
  background: rgba(247, 185, 40, 0.16);
  color: var(--aped-yellow);
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.policy-back:hover {
  color: #fff;
}

.policy-content {
  min-width: 0;
}

.policy-section {
  padding-bottom: clamp(32px, 5vh, 56px);
  margin-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.policy-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.policy-section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  color: #fff;
}

.policy-section h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.policy-section p,
.policy-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body-text);
}

.policy-section p {
  margin: 0 0 12px;
}

.policy-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.policy-section li {
  margin-bottom: 6px;
}

.policy-section strong {
  color: #fff;
  font-weight: 600;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.policy-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--body-text);
}

.policy-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-cta {
  justify-content: flex-start;
  margin-top: 20px;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.anim.pulse {
  animation-name: revealPulse;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   TABLET (hasta 960px)
   ========================================================= */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tool-section.flip .tool-copy {
    order: 1;
  }

  .tool-section.flip .tool-visual {
    order: 2;
  }

  .tool-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .jobs-intro {
    text-align: center;
  }

  .jobs-intro .section-title,
  .jobs-intro .section-lead {
    text-align: center;
    margin-left: auto;
  }

  .jobs-intro .cta-row {
    justify-content: center;
  }

  .perks {
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-aside {
    position: static;
  }

  .policy-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* =========================================================
   MOVIL (hasta 720px)
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --header-h: 76px;
  }

  .nav,
  .contact-btn {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: 100%;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
    transition: background 0.25s ease;
  }

  .burger-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s var(--ease), opacity 0.2s ease, background 0.25s ease;
  }

  .burger[aria-expanded="true"] {
    background: #fff;
  }

  .burger[aria-expanded="true"] .burger-bar {
    background: #000;
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(2) {
    opacity: 0;
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 16px 16px;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: overlayIn 0.28s ease both;
  }

  .mobile-overlay[hidden] {
    display: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 360px;
    padding: 22px 18px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: menuIn 0.38s var(--ease) both;
  }

  .mobile-link {
    position: relative;
    display: block;
    padding: 12px 10px 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--nav-text);
    opacity: 0;
    animation: linkIn 0.4s var(--ease) forwards;
    animation-delay: calc(0.08s + var(--i, 0) * 0.05s);
  }

  .mobile-link:not(.active) {
    color: rgba(46, 46, 46, 0.55);
  }

  .mobile-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 3px;
    height: 3px;
    margin-left: -1.5px;
    border-radius: 50%;
    background: var(--aped-navy);
    box-shadow: -5px 0 0 var(--aped-navy), 5px 0 0 var(--aped-navy);
  }

  .mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--pill-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    animation: linkIn 0.4s var(--ease) forwards;
    animation-delay: calc(0.08s + var(--i, 0) * 0.05s);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero-logo img {
    width: clamp(200px, 60vw, 280px);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
    font-size: clamp(30px, 9vw, 52px);
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .cta {
    width: min(100%, 320px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }

  .about-grid,
  .roles {
    grid-template-columns: 1fr;
  }

  .tool-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .tool-logo {
    height: 56px;
    padding: 10px 14px;
  }

  .tool-logo img {
    max-width: 180px;
  }

  .kpis,
  .kpis-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-body.split {
    flex-direction: column;
  }

  .ring-wrap {
    width: 130px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .row .meter {
    grid-column: 1 / -1;
    order: 3;
  }

  .rows.compact .row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .gen {
    font-size: 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    margin-left: -18px;
  }
}

/* ---------- hasta 420px ---------- */
@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
    font-size: clamp(30px, 10.5vw, 44px);
  }

  .sheet-row {
    grid-template-columns: 1.4fr 0.9fr 0.6fr 0.7fr;
    padding: 8px;
    font-size: 11px;
  }
}

/* ---------- Pantallas bajas ---------- */
@media (max-height: 700px) {
  .hero-logo img {
    width: clamp(180px, 24vw, 260px);
  }

  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
  }

  .cta-row {
    margin-top: 14px;
  }

  .stats {
    margin-top: 22px;
    padding-top: 12px;
  }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .reveal,
  .header,
  .headline .line,
  .mobile-link,
  .mobile-contact,
  .msg,
  .sheet-row,
  .gen,
  .score-badge {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .bar { height: var(--h) !important; }
  .meter i { width: var(--w) !important; }
  .chart .draw { stroke-dashoffset: 0 !important; }
  .chart .area { opacity: 1 !important; }
  .ring-fg { stroke-dasharray: var(--pct) 100 !important; }
  .sk { transform: none !important; }

  .headline .line-1 {
    color: #fff;
  }
}
