/* ============================================================
   KUMAverso — estilos
   Tipografía Unbounded · fondo oscuro · colores sólidos del logo
   ============================================================ */

:root {
  --bg:      #05030f;   /* fondo casi negro */
  --bg-2:    #0d0726;   /* morado muy oscuro */

  /* Paleta tomada del logo KUMA */
  --purple:  #a020d0;
  --violet:  #6a2bd6;
  --blue:    #1644c8;
  --deep:    #0a1a8a;
  --cyan:    #0a86c4;
  --green:   #83ff00;
  --yellow:  #ffce00;

  /* Acentos de marca */
  --orange:  #ff7a18;
  --pink:    #ff4fa3;

  --white:   #ffffff;
  --muted:   #b9b2d9;

  --radius:  22px;
  --shadow:  0 18px 40px rgba(0, 0, 0, .45);
  --maxw:    1180px;

  --font: 'Unbounded', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--white);
  background: transparent; /* el fondo lo pone .space-bg (el video); el body NO debe taparlo. La base oscura va en html. */
  overflow-x: clip;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; }

.container { width: min(var(--maxw), 92vw); margin: 0 auto; position: relative; z-index: 2; }
.center { text-align: center; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.accent { color: var(--orange); }

/* ============================================================
   Fondo espacial
   ============================================================ */
.space-bg {
  position: fixed; left: 0; right: 0; top: 0;
  height: 100vh; height: 100lvh; /* 100lvh = el alto MÁS grande del navegador: evita la franja negra en móvil cuando se oculta la barra de direcciones */
  z-index: -1; overflow: hidden; pointer-events: none;
}
/* En móvil agrandamos el fondo (más alto) para que el video baje y cubra la
   zona inferior que quedaba negra cuando el navegador oculta su barra. */
@media (max-width: 600px) {
  .space-bg { height: 120vh; height: 120lvh; }
  /* Mantener el tamaño que cubre, pero correr el encuadre del video hacia la izquierda */
  .space-scene { transform: none; object-position: 100% center; }
}

.space-scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}
/* Tinte oscuro: el espacio queda OSCURO (incluso cuando el video tiene momentos
   muy claros) y así resaltan las estrellas y los planetas. Flat + viñeta. */
.space-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(130% 100% at 50% 32%, transparent 40%, rgba(3,1,9,.42) 100%),
    rgba(5, 3, 13, .24);
}

/* Capa superior: estrellas/partículas y cometas por ENCIMA de las formas.
   Es ABSOLUTA y cubre todo el documento, así las partículas bajan con el scroll
   (las vas dejando atrás), no quedan fijas. */
body { position: relative; }
.fx-top { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none; overflow: hidden; }

/* Estrellas POR ENCIMA del tinte, con resplandor (glow) bien visible. */
.starfield { position: absolute; inset: 0; }
.starfield .dot {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,1), 0 0 18px 5px rgba(150,190,255,.7);
  animation: twinkle 2.2s ease-in-out infinite alternate;
}

/* Planetas grandes de las esquinas: por encima del tinte (no se oscurecen),
   pero detrás del contenido. Dan profundidad como en paranice. */
.bg-planet {
  position: absolute; z-index: 3; opacity: .97; pointer-events: none;
  animation: floatB 17s ease-in-out infinite;
}
.starfield .spark {
  position: absolute;
  filter: drop-shadow(0 0 7px var(--yellow));
  background:
    radial-gradient(closest-side, var(--yellow) 0 35%, transparent 38%) center/100% 22% no-repeat,
    radial-gradient(closest-side, var(--yellow) 0 35%, transparent 38%) center/22% 100% no-repeat;
  animation: twinkle 1.8s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .12; transform: scale(.5); } to { opacity: 1; transform: scale(1.25); } }

/* Partículas tipo estrella que flotan suavemente */
.starfield .particle {
  position: absolute; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 1px rgba(190, 215, 255, .8);
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translate(0, 30px); opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate(16px, -40px); }
  88%  { opacity: 1; }
  100% { transform: translate(-10px, -110px); opacity: 0; }
}

/* Cometas (estrellas fugaces): cabeza brillante + estela, cruzan en diagonal */
.shooting {
  position: absolute; z-index: 3; width: 180px; height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.9));
  border-radius: 2px; transform: rotate(45deg); opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.7));
  animation: shoot 7s linear infinite;
}
.shooting::after {
  content: ''; position: absolute; right: -2px; top: 50%;
  width: 6px; height: 6px; transform: translateY(-50%); border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 4px rgba(255,255,255,.95);
}
@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(45deg); opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  100% { transform: translate(72vw, 72vh) rotate(45deg); opacity: 0; }
}

/* El contenido (títulos, tarjetas) va por ENCIMA de los planetas sangrados */
.section .container { position: relative; z-index: 1; }

/* Animaciones de flotación (varias para variedad).
   Usan --px/--py para que el parallax del scroll (JS) se sume sin pisar la animación. */
.float-a { animation: floatA 5s ease-in-out infinite; }
.float-b { animation: floatB 6.5s ease-in-out infinite; }
.float-c { animation: floatC 5.5s ease-in-out infinite; }

/* Planetas pequeños repartidos DENTRO de cada sección (rellenan el vacío,
   incluido el centro). Van detrás del contenido. */
.mini-planet {
  position: absolute; z-index: 6; opacity: .9; pointer-events: none;
  will-change: transform;
}
/* Rocas POR ENCIMA de todo (formas y contenido) */
.rock-deco {
  position: absolute; z-index: 6; pointer-events: none; will-change: transform;
}
@keyframes floatA {
  0%,100% { transform: translate(var(--px,0px), var(--py,0px)) rotate(-4deg); }
  50%     { transform: translate(calc(var(--px,0px) + 30px), calc(var(--py,0px) - 48px)) rotate(14deg); }
}
@keyframes floatB {
  0%,100% { transform: translate(var(--px,0px), var(--py,0px)) rotate(5deg); }
  50%     { transform: translate(calc(var(--px,0px) - 34px), calc(var(--py,0px) - 56px)) rotate(-16deg); }
}
@keyframes floatC {
  0%,100% { transform: translate(var(--px,0px), var(--py,0px)) rotate(-8deg); }
  50%     { transform: translate(calc(var(--px,0px) + 42px), calc(var(--py,0px) - 36px)) rotate(12deg); }
}
.floaty { animation: floatB 6s ease-in-out infinite; }

/* ============================================================
   Header — barra morada con logo centrado
   ============================================================ */
/* Cargador (preloader) */
.preloader {
  position: fixed; left: 0; right: 0; top: 0;
  height: 100vh; height: 100lvh; /* alto EXACTO de la pantalla física: entra la imagen completa (suelo de luna abajo) sin cortar ni dejar negro */
  z-index: 9999;
  background: #05030f; display: grid; place-items: center; overflow: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
/* Llena la pantalla, centrada (sin barras). La imagen ya viene recortada para que
   el grupo quede en su centro, así cover + center lo deja centrado en cualquier pantalla. */
/* Encuadre subido: muestra menos estrellas arriba para que el título tenga aire
   abajo y no se corte en ventanas bajas (elección del usuario). */
.preloader__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
@media (max-width: 600px) {
  /* 120lvh = más alto que la pantalla (igual que el home) → el cargador llega detrás de la barra de abajo. */
  .preloader { height: 120vh; height: 120lvh; overflow: hidden; background: #272145; }
  .preloader__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    max-width: none; object-fit: cover; object-position: center; transform: none;
  }
  /* Durante la carga, el <video> del home reproduce el video de TU imagen (se pinta detrás de las barras). */
  /* Tu imagen en el fondo del html y del home (donde el color sí se pintó detrás de las barras). */
  html.kuma-loading { background: #272145 url('assets/secciones/fondo%20responsive.jpg?v=14') center center / cover no-repeat; }
  html.kuma-loading .fx-top { visibility: hidden; }
  html.kuma-loading .bg-planet { display: none; }
  html.kuma-loading .space-bg::after { opacity: 0; }
  html.kuma-loading .space-bg { background: #272145 url('assets/secciones/fondo%20responsive.jpg?v=14') center center / cover no-repeat; }
}
/* En móvil, las formas de color suben/crecen para que el título quede SOBRE el fondo
   y no sobre la onda oscura del borde. */
/* En móvil bajamos el contenido lo justo para que el título quede SOBRE el color
   de la forma (no en el valle oscuro de la onda). Las ondas quedan como estaban. */
@media (max-width: 600px) {
  html .section:has(.section-shape) { padding-top: 185px; }
  html .section-shape { height: 114%; }        /* agranda un poco el fondo para cubrir el título */
  html .cta-final { padding-top: 185px; }       /* baja el texto del CTA para que quede sobre el color */
}
.preloader__logo { position: relative; width: clamp(120px, 18vw, 190px); height: auto; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding: clamp(26px, 4vh, 48px) 0 10px; }
.nav__bar {
  width: min(var(--maxw), 94vw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 0;
  background: rgba(42, 15, 87, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 9px 26px;
}
.nav__side { display: flex; align-items: center; gap: 22px; }
.nav__side--left { justify-content: space-between; }
.nav__side--right { justify-content: space-between; }
.nav__side a { font-size: 13px; font-weight: 400; color: var(--muted); transition: color .2s; white-space: nowrap; flex-shrink: 0; }
.nav__side a:hover { color: var(--white); }

/* Logo centrado que sobresale */
.brand { display: grid; place-items: center; }
.brand { position: relative; width: 84px; align-self: center; margin: 0 38px; }
.brand__logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0; background: var(--bg);
}
/* El logo del footer es estático (no hereda el posicionamiento del header) */
.brand__logo--sm { position: static; transform: none; width: 64px; height: 64px; margin: 0; box-shadow: none; background: none; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; position: absolute; right: 6vw; top: 24px; }
.nav__burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }

/* ============================================================
   Hero — solo video a pantalla completa
   ============================================================ */
.hero-video { position: relative; height: 100vh; min-height: 560px; width: 100%; overflow: hidden; }
/* Degradado al fondo del video: funde su borde con el espacio (sin corte) */
.hero-video::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 18%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 96%);
}
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%; z-index: 3;
  display: grid; place-items: center; font-size: 22px; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); animation: bob 2.4s ease-in-out infinite;
}
.hero-video__scroll:hover { background: rgba(255,255,255,.28); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   Sección de bienvenida (texto + personaje)
   ============================================================ */
.intro__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 36px; }
.intro__text { position: relative; z-index: 2; }
.hero__eyebrow { font-size: clamp(16px, 2.2vw, 22px); color: var(--muted); font-weight: 500; }
.hero__title { font-size: clamp(34px, 5.2vw, 64px); margin: 10px 0 20px; }
.hero__lead { font-size: clamp(14px, 1.4vw, 17px); color: var(--muted); max-width: 40ch; margin-bottom: 28px; font-weight: 300; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.intro__char { display: grid; place-items: center; position: relative; z-index: 2; }
.intro__char img { width: min(540px, 100%); animation: charGlow 3s ease-in-out infinite; }
@keyframes charGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 138, 40, .30)); }
  50%      { filter: drop-shadow(0 0 40px rgba(255, 138, 40, .65)); }
}

/* ============================================================
   Botones (color sólido)
   ============================================================ */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  transition: transform .15s ease, filter .2s;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 0 22px rgba(255,122,24,.4); }
.btn--pink    { background: var(--pink); color: #fff; box-shadow: 0 0 22px rgba(255,79,163,.4); }
.btn--purple  { background: var(--purple); color: #fff; box-shadow: 0 0 22px rgba(160,32,208,.4); }
.btn--ghost   { background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.25); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.16); }

/* ============================================================
   Secciones
   ============================================================ */
.section { padding: 110px 0; position: relative; overflow-x: clip; overflow-y: visible; margin-top: 0; }
/* Secciones con forma (onda): más aire arriba para que el título no pegue con el borde */
.section:has(.section-shape) { padding-top: 158px; }

.section-blob { display: none; }

/* Forma de fondo de cada sección (SVG orgánico diseñado por el usuario).
   Va detrás del contenido; el espacio se ve en los márgenes y entre secciones. */
.section-shape {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 102%; object-fit: cover;
}

/* Texto NEGRO en secciones con forma clara (verde/cyan), por contraste */
.section--light .section__title,
.section--light .section__sub,
.section--light .path h3,
.section--light .path li,
.section--light.cta-final h2,
.section--light.cta-final p { color: #1c1030; }
.section--light .section__sub { color: #2e2150; }
/* En secciones claras (verde/cyan): bullets en negro y acento en morado (no naranja) */
.section--light .benefits li { color: #1c1030; }
.section--light .accent { color: var(--purple); }
/* Cualquier tarjeta/texto sobre verde-claro: legible en negro */
.section--light .card h3, .section--light .step h3 { color: #1c1030; }
.section--light .card p, .section--light .step p { color: #2e2150; }

/* La bienvenida sube y se sobrepone a la foto del hero (sin corte) */
#bienvenida { margin-top: 0; position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; }
.hero-video { position: relative; z-index: 3; }
.cta-final { position: relative; }
/* Que el header sticky no tape los títulos al saltar con los enlaces */
section[id], .hero[id], .cta-final[id], .footer[id] { scroll-margin-top: 120px; }
.section__title { font-size: clamp(28px, 4vw, 46px); text-align: center; }
/* Si el título va SEGUIDO DIRECTO de contenido (sin subtítulo), darle aire para
   que no pegue con las tarjetas. (Cuando hay .section__sub, este ya da el espacio.) */
.section__title + .products-grid,
.section__title + .hero-cards,
.section__title + .cards3,
.section__title + .cards2,
.section__title + .modules,
.section__title + .steps,
.section__title + .benefits,
.section__title + .paths,
.section__title + .blog-grid,
.section__title + .store-filters,
.section__title + .faq,
.section__title + .form { margin-top: 46px; }
.section__sub { text-align: center; color: var(--muted); max-width: 42ch; margin: 14px auto 46px; font-weight: 300; }

/* Tarjetas de 3 columnas (color sólido, sin borde) */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Productos: diagramación escalonada (cards a distinta altura) */
.products-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.products-grid > * { flex: 0 0 300px; }
.products-grid > :nth-child(even) { transform: translateY(38px); }

.card {
  background: var(--card);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: 0 0 55px 4px color-mix(in srgb, var(--card) 80%, transparent), 0 12px 30px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 80px 10px color-mix(in srgb, var(--card) 95%, transparent), 0 16px 36px rgba(0,0,0,.4); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 30px; margin-bottom: 16px;
  background: rgba(255,255,255,.16);
}
.card__icon svg { width: 58%; height: 58%; fill: #fff; display: block; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 300; }

/* ============================================================
   Tarjetas de personajes (color sólido del logo)
   ============================================================ */
.hero-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.hero-card {
  position: relative; text-align: center; padding: 0 18px 24px; overflow: hidden;
  border-radius: var(--radius);
  background: var(--card); color: #fff;
  box-shadow: 0 0 55px 4px color-mix(in srgb, var(--card) 80%, transparent), 0 12px 30px rgba(0,0,0,.35);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.hero-card:hover { transform: scale(1.05); }
.hero-card__avatar {
  width: 100%; aspect-ratio: 1 / 1; margin: 0 0 6px;
  display: flex; align-items: flex-end; justify-content: center;
  background: transparent;
}
.hero-card__avatar img {
  width: 102%; height: 102%; object-fit: contain;
  animation: floatA 7s ease-in-out infinite;
}
.hero-card:nth-child(2) .hero-card__avatar img { animation: floatB 8s ease-in-out infinite; }
.hero-card:nth-child(3) .hero-card__avatar img { animation: floatC 9s ease-in-out infinite; }
.hero-card:nth-child(4) .hero-card__avatar img { animation: floatB 7.5s ease-in-out infinite; }
.hero-card h3 { font-size: 21px; }
.hero-card__skill {
  display: inline-block; margin: 6px 0 10px; padding: 3px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(255,255,255,.2);
}
.hero-card p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.9); min-height: 40px; }
.hero-card__btn {
  display: inline-block; margin-top: 12px; padding: 9px 20px; border-radius: 999px;
  font-weight: 700; font-size: 13px; color: var(--card); background: #fff;
}

/* ============================================================
   Dos caminos (color sólido)
   ============================================================ */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 980px; margin: 0 auto; }
.path { text-align: center; }
.path ul { display: inline-block; text-align: left; margin: 0 auto 28px; }
.path h3 { font-size: clamp(24px, 3vw, 34px); }
.path {
  border-radius: 26px; padding: 42px 36px;
  background: var(--card); box-shadow: 0 0 60px 5px color-mix(in srgb, var(--card) 80%, transparent), 0 12px 30px rgba(0,0,0,.35);
}
.path h3 { font-size: 26px; margin-bottom: 18px; }
.path ul { margin-bottom: 28px; }
.path li { padding: 9px 0 9px 28px; position: relative; font-weight: 300; }
.path li::before { content: "✦"; position: absolute; left: 0; color: var(--yellow); }

/* Recuadro provisional (wireframe) donde irá la foto de cada camino.
   Marco punteado, sin relleno ni sombra. Se reemplaza por <img> luego. */
.path__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 auto 30px;
  border: 3px dashed currentColor;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .5;
}
.path__media span {
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 15px;
}

/* ============================================================
   Productos (color sólido)
   ============================================================ */
.product {
  text-align: center; padding: 0 0 26px; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 0 55px 4px color-mix(in srgb, var(--card) 80%, transparent), 0 12px 30px rgba(0,0,0,.35);
  transition: transform .2s, box-shadow .25s;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 0 80px 10px color-mix(in srgb, var(--card) 95%, transparent), 0 16px 36px rgba(0,0,0,.4); }
.product__media {
  height: 150px; display: grid; place-items: center; font-size: 60px;
  background: rgba(255,255,255,.12); margin-bottom: 18px;
}
.product h3 { font-size: 21px; }
.product p { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 300; padding: 6px 24px 16px; }
.product__btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 13px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
}
.product__btn:hover { background: #fff; color: var(--card); }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final { padding: 120px 0 240px; text-align: center; position: relative; overflow-x: clip; overflow-y: visible; z-index: 0; margin-top: 0; }
.cta-final h2 { font-size: clamp(28px, 4.5vw, 50px); margin-bottom: 12px; }
.cta-final p { color: #fff; margin-bottom: 30px; font-weight: 300; }

/* ============================================================
   Cajas por sección (sin sombras):
   - SIN caja: funciones (.card) y caminos (.path)
   - CON caja: personajes (.hero-card) y productos (.product)
   ============================================================ */
.card, .path { background: transparent; box-shadow: none; }
.card:hover, .path:hover { box-shadow: none; }
.card__icon { background: var(--card); box-shadow: none; }

.product { background: var(--card); box-shadow: none; }
.product:hover { box-shadow: none; transform: translateY(-6px); }
/* Tarjetas de personaje: resplandor con su PROPIO color (se intensifica en hover). */
.hero-card { background: var(--card); box-shadow: 0 0 45px -4px color-mix(in srgb, var(--card) 65%, transparent); }
.hero-card:hover { box-shadow: 0 0 70px 2px color-mix(in srgb, var(--card) 85%, transparent); transform: scale(1.05); }
.hero-card__skill { background: color-mix(in srgb, var(--card) 85%, transparent); }
.product__media { background: rgba(255,255,255,.14); }

/* ============================================================
   Dinamismo: animaciones en formas, tarjetas y botones
   ============================================================ */
/* Secciones: respiran suave (sin trazo ni halo). */
.section-shape {
  animation: shapeBreathe 9s ease-in-out infinite;
}
@keyframes shapeBreathe {
  0%,100% { transform: translate(-50%, -50%) scale(1); }
  50%     { transform: translate(-50%, -50%) scale(1.012); }
}

/* Tarjetas: solo borde fino (sin halo) */
.hero-card, .product {
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--card) 45%, #fff 30%);
}

/* Botones de acción: pulso suave (sin halo) */
.btn--primary, .btn--pink, .btn--purple { animation: btnPulse 2.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.035); }
}

/* Tarjetas de personaje: "resorte" sutil HACIA EL FRENTE (escala, no sube/baja).
   Keyframes amortiguados = pop adelante, se pasa, rebota y se asienta (muelle).
   Arranca tras la aparición (delay) y cada una con su ritmo = orgánico. */
.hero-card.is-visible              { animation: cardSpring 5s ease-out infinite; animation-delay: .8s; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
.hero-card.is-visible:nth-child(2) { animation-duration: 5.6s; animation-delay: 1.1s; }
.hero-card.is-visible:nth-child(3) { animation-duration: 5.2s; animation-delay: .95s; }
.hero-card.is-visible:nth-child(4) { animation-duration: 5.9s; animation-delay: 1.25s; }
/* En hover (escritorio) se apaga el resorte para que mande el pop de hover. */
.hero-card.is-visible:hover { animation: none; }
@keyframes cardSpring {
  0%        { transform: scale(1); }
  8%        { transform: scale(1.045); }   /* salta hacia el frente */
  16%       { transform: scale(0.992); }   /* se pasa de vuelta (rebote) */
  24%       { transform: scale(1.016); }   /* segundo rebote, menor */
  32%       { transform: scale(0.998); }
  40%       { transform: scale(1.005); }
  48%, 100% { transform: scale(1); }       /* se asienta y descansa */
}

/* Botón "Entrar a mi zona": pop con muelle al pasar el mouse (solo desktop). */
.hero-card__btn { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .18s ease, color .18s ease; }
@media (hover: hover) {
  .hero-card__btn:hover { transform: scale(1.09); }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid rgba(255,255,255,.08); padding: 56px 0 26px; position: relative; z-index: 2;
  background: var(--violet) url('assets/secciones/SVG/Recurso%208kuma.svg') center/cover no-repeat; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer__grid > :last-child { text-align: right; }
.footer__tag { color: var(--muted); margin-top: 12px; max-width: 24ch; font-weight: 300; }
.footer__col h4 { margin-bottom: 12px; font-size: 16px; }
.footer__col a { display: block; color: var(--muted); padding: 5px 0; font-weight: 300; }
.footer__col a:hover { color: #fff; }
.footer__copy { text-align: center; color: var(--muted); font-size: 12px; margin-top: 40px; font-weight: 300; }
.footer__credit { display: inline-block; background: #25d366; color: #fff; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; margin-left: 4px; text-decoration: none; transition: background .2s ease; }
.footer__credit:hover { background: #1fb855; color: #fff; }

/* ============================================================
   Aparición al hacer scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 18px; }
  .brand { order: 1; }
  .nav__burger { display: flex; order: 2; position: static; }
  .nav__side { order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav.open .nav__side { max-height: 320px; }
  .nav__side a { width: 100%; padding: 12px 0; font-size: 15px; }
  .brand__logo { margin-top: 0; width: 70px; height: 70px; }

  .intro__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .intro__char { order: -1; }

  .cards3 { grid-template-columns: 1fr; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :last-child { text-align: left; }

  .mini-planet { display: none; }
}

@media (max-width: 520px) {
  .hero-cards { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Botón flotante de WhatsApp (fijo, esquina inferior derecha)
   ============================================================ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: waPulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 58%; height: 58%; fill: #fff; display: block; }
.wa-float:hover { background: #1fb855; }

@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 520px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* ============================================================
   Cursor: anillo con los colores del logo (firma de marca)
   Sigue al puntero. Solo en dispositivos con mouse (pointer fino).
   ============================================================ */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  pointer-events: none; z-index: 99999; opacity: 0;
  transform: translate(-50%, -50%);
  background: url("assets/logo/Recurso%2010kuma.svg") center / contain no-repeat;
  /* Máscara: oculta el centro (las letras) y deja SOLO el anillo de colores */
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 57%);
  mask: radial-gradient(circle, transparent 52%, #000 57%);
  transition: width .15s ease, height .15s ease, opacity .25s ease;
}
.cursor-ring--big { width: 40px; height: 40px; }

/* En equipos con mouse (pointer fino): ocultar TODO cursor del sistema
   —incluida la "manito" de enlaces y botones— para que solo se vea el
   anillo de marca. En móvil/táctil no aplica (no hay anillo). */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* ============================================================
   PÁGINAS INTERNAS (multi-página) — componentes compartidos
   Misma línea gráfica del home: oscuro espacial, bordes finos,
   sin sombras (salvo glows aprobados), formas orgánicas.
   ============================================================ */

/* Kicker / eyebrow */
.kicker { display:inline-block; font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); margin-bottom:14px; font-weight:600; }
.section--light .kicker { color:#6a2bd6; }

/* Link secundario "Explorar el KUMAverso →" bajo los botones del home */
.intro__explore { display:inline-block; margin-top:18px; color:var(--yellow);
  font-weight:600; font-size:15px; }
.intro__explore:hover { color:#fff; }

/* Hero de página interna (sobre el espacio) */
.page-hero { position:relative; padding:160px 0 64px; text-align:center; }
.page-hero .container { position:relative; z-index:2; }
.page-hero h1 { font-size:clamp(30px,4.8vw,52px); line-height:1.05; margin-bottom:16px; }
.page-hero p.page-hero__lead { color:var(--muted); max-width:62ch; margin:0 auto 26px;
  font-weight:300; font-size:clamp(15px,1.6vw,19px); }
.page-hero .hero__actions { justify-content:center; }

/* Nav: enlace de la página actual */
.nav__side a.is-current { color:#fff; }
.nav__side a.is-current::after { content:""; display:block; height:2px; border-radius:2px;
  background:var(--purple); margin-top:3px; }

/* Placeholder reutilizable ("FOTO/IMG AQUÍ") */
.ph { width:100%; aspect-ratio:4/3; border:3px dashed currentColor; border-radius:24px;
  display:flex; align-items:center; justify-content:center; opacity:.45; }
.ph span { font-weight:700; letter-spacing:.14em; font-size:13px; }
.ph--wide { aspect-ratio:16/9; }
.ph--sq { aspect-ratio:1/1; }

/* Cuando el placeholder ya tiene una FOTO real: quita el marco punteado y la rellena */
.ph:has(img) { border:0; opacity:1; overflow:hidden; }
.ph img { width:100%; height:100%; object-fit:cover; display:block; }
/* La foto de la alcancía (finanzas): subimos el encuadre para que se vea el cerdito */
.ph img[src*="blog-1"] { object-position: center 72%; }
/* La foto de metodología (Startup Kids): bajamos el encuadre para no cortar la cabeza */
.ph img[src*="metodologia"] { object-position: center 28%; }
/* Foto de tarjeta de producto (cabecera de la card, a ras del borde redondeado) */
.product__photo { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; margin-bottom:16px; }
/* Foto de "Elige tu camino" */
.path__photo { width:100%; aspect-ratio:4/3; object-fit:cover; object-position:center 22%; border-radius:24px; display:block; margin:0 auto 30px; }

/* Pasos numerados */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.step { text-align:center; }
.step__n { width:66px; height:66px; border-radius:50%; display:grid; place-items:center;
  margin:0 auto 16px; font-size:26px; font-weight:800; color:#fff;
  background:var(--card,#a020d0); border:2px solid color-mix(in srgb, var(--card,#a020d0) 50%, #fff 35%); }
.step h3 { font-size:20px; margin-bottom:8px; }
.step p { color:rgba(255,255,255,.85); font-weight:300; font-size:14px; }
.section--light .step p { color:#2e2150; }

/* Módulos / "qué incluye" (cajas con borde, sin sombra) */
.modules { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:20px; }
.module { background:var(--card,#1644c8); color:#fff; border-radius:var(--radius);
  border:2px solid color-mix(in srgb, var(--card,#1644c8) 45%, #fff 30%); padding:26px; }
.module .module__ico { font-size:30px; margin-bottom:10px; }
/* Variante 2 arriba + 3 abajo (rejilla de 6 columnas) */
.modules--2-3 { grid-template-columns:repeat(6,1fr); }
.modules--2-3 > :nth-child(1), .modules--2-3 > :nth-child(2) { grid-column:span 3; }
.modules--2-3 > :nth-child(3), .modules--2-3 > :nth-child(4), .modules--2-3 > :nth-child(5) { grid-column:span 2; }
.module h3 { font-size:18px; margin-bottom:8px; }
.module p { font-size:14px; font-weight:300; color:rgba(255,255,255,.9); }

/* Beneficios con check */
.benefits { display:grid; grid-template-columns:repeat(2,1fr); gap:14px 34px;
  max-width:780px; margin:0 auto; text-align:left; }
.benefits li { list-style:none; padding-left:30px; position:relative; font-weight:300; }
.benefits li::before { content:"✦"; position:absolute; left:0; color:var(--yellow); }

/* FAQ acordeón (solo CSS con <details>) */
.faq { max-width:840px; margin:0 auto; display:grid; gap:14px; text-align:left; }
.faq__item { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius:16px; padding:2px 22px; }
.section--light .faq__item { background:rgba(255,255,255,.35); border-color:rgba(0,0,0,.12); }
.faq__item summary { cursor:pointer; list-style:none; padding:16px 0; font-weight:600;
  display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq__item summary::-webkit-details-marker { display:none; }
.faq__item summary::after { content:"+"; font-size:22px; line-height:1; transition:transform .2s; }
.faq__item[open] summary::after { transform:rotate(45deg); }
.faq__item p { padding:0 0 18px; font-weight:300; color:rgba(255,255,255,.85); }
.section--light .faq__item p { color:#2e2150; }

/* Formulario */
.form { max-width:640px; margin:0 auto; display:grid; gap:16px; text-align:left; }
.form .field { display:grid; gap:6px; }
.form .row2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form label { font-size:13px; font-weight:600; }
.form input, .form select, .form textarea { font-family:var(--font); font-size:15px;
  padding:13px 16px; border-radius:14px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06); color:#fff; }
.form textarea { min-height:120px; resize:vertical; }
.form input::placeholder, .form textarea::placeholder { color:rgba(255,255,255,.55); }
.form .btn { justify-self:center; margin-top:18px; border:0; cursor:pointer; }
/* Select: misma piel del form + flecha propia (oculta la nativa) */
.form select {
  appearance:none; -webkit-appearance:none; -moz-appearance:none; cursor:pointer;
  padding-right:44px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat; background-position:right 16px center; background-size:18px;
}
/* La lista desplegable: fondo oscuro + letra blanca (legible, igual al form) */
.form select option { background:#0d0726; color:#fff; }

/* Foco limpio en los campos (quita el borde naranja del sistema) */
.form input:focus, .form textarea:focus, .form select:focus,
.kselect__btn:focus-visible {
  outline:none; border-color:rgba(255,255,255,.6);
}
.section--light .form input:focus, .section--light .form textarea:focus,
.section--light .kselect__btn:focus-visible { border-color:rgba(0,0,0,.45); }

/* ===== Desplegable propio (mismo glass del form) ===== */
.kselect { position:relative; }
.kselect__btn {
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:12px;
  font-family:var(--font); font-size:15px; padding:13px 16px; border-radius:14px;
  border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06);
  color:#fff; cursor:pointer; text-align:left;
}
.kselect__chev { width:18px; height:18px; flex:0 0 auto; transition:transform .2s ease; }
.kselect.is-open .kselect__chev { transform:rotate(180deg); }
.kselect__list {
  position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:6;
  list-style:none; margin:0; padding:6px; border-radius:14px;
  background:rgba(38,42,120,.45); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.22);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.kselect.is-open .kselect__list { opacity:1; visibility:visible; transform:translateY(0); }
.kselect__opt { padding:11px 14px; border-radius:10px; cursor:pointer; color:#fff; font-size:15px; }
.kselect__opt:hover, .kselect__opt.is-selected { background:rgba(255,255,255,.16); }
/* Variante en secciones claras */
.section--light .kselect__btn { background:rgba(255,255,255,.75); color:#1c1030; border-color:rgba(0,0,0,.15); }
.section--light .kselect__list { background:rgba(255,255,255,.7); border-color:rgba(0,0,0,.12); }
.section--light .kselect__opt { color:#1c1030; }
.section--light .kselect__opt:hover, .section--light .kselect__opt.is-selected { background:rgba(0,0,0,.08); }
.section--light .form label { color:#1c1030; }
.section--light .form input, .section--light .form select, .section--light .form textarea {
  background:rgba(255,255,255,.75); color:#1c1030; border-color:rgba(0,0,0,.15); }
.section--light .form input::placeholder, .section--light .form textarea::placeholder { color:rgba(0,0,0,.45); }
.section--light .form select {
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1030' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); }
.section--light .form select option { background:#fff; color:#1c1030; }

/* Meta de producto (edad / jugadores / tiempo) */
.product__meta { font-size:12px; color:rgba(255,255,255,.72); margin:-4px 0 12px; font-weight:300; }

/* Filtros tipo chip (tienda) */
.store-filters { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:52px; margin-bottom:34px; }
.chip { font-family:var(--font); padding:9px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.06); color:#fff; font-size:13px; font-weight:600; cursor:pointer; }
.chip.is-active, .chip:hover { background:var(--purple); border-color:transparent; }

/* Blog / recursos */
.blog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.blog-card { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius:22px; overflow:hidden; display:flex; flex-direction:column; }
.blog-card .ph { border:0; border-radius:0; aspect-ratio:16/10; opacity:1;
  background:rgba(255,255,255,.08); color:rgba(255,255,255,.4); }
.blog-card__body { padding:20px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.blog-card__cat { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--pink); font-weight:700; }
.blog-card h3 { font-size:18px; }
.blog-card p { font-size:14px; font-weight:300; color:rgba(255,255,255,.8); flex:1; }

/* Página de artículo (lectura) */
.article { max-width:760px; margin:0 auto; text-align:left; }
.article__cover { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:24px; margin:0 0 32px; display:block; }
.article p { font-weight:300; line-height:1.7; color:rgba(255,255,255,.9); margin:0 0 18px; }
.article h2 { text-align:left; font-size:clamp(20px,2.4vw,26px); margin:30px 0 12px; }
.article ul { margin:0 0 18px; padding:0; list-style:none; }
.article li { position:relative; padding:8px 0 8px 28px; font-weight:300; color:rgba(255,255,255,.9); }
.article li::before { content:"✦"; position:absolute; left:0; color:var(--yellow); }

/* Página de personaje */
.char-hero { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.char-hero__art { display:grid; place-items:center; }
.char-hero__art img { width:min(420px,100%);
  filter:drop-shadow(0 0 34px color-mix(in srgb, var(--card,#a020d0) 60%, transparent)); }
.char-hero h1 { font-size:clamp(40px,6vw,72px); line-height:1; margin-bottom:14px; }
.char-hero .hero-card__skill { position:static; }

/* Bloque de texto + imagen alterno */
.split { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.split--rev .split__media { order:2; }
.split h2 { text-align:left; }
.split ul { margin:18px 0; }
.split li { list-style:none; padding:8px 0 8px 28px; position:relative; font-weight:300; }
.split li::before { content:"✦"; position:absolute; left:0; color:var(--yellow); }
.section--light .split li { color:#1c1030; }
.section--light .split h2, .section--light .split p { color:#1c1030; }

/* utilidades */
.mt-gap { margin-top:48px; }
.cards2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }

/* Responsive de las páginas internas */
@media (max-width: 900px) {
  .steps { grid-template-columns:1fr; }
  .benefits { grid-template-columns:1fr; }
  .char-hero, .split, .cards2 { grid-template-columns:1fr; }
  .modules--2-3 { grid-template-columns:1fr; }
  .modules--2-3 > * { grid-column:auto; }
  .split--rev .split__media { order:0; }
  .form .row2 { grid-template-columns:1fr; }
  .page-hero { padding:130px 0 50px; }
}

/* Mensaje de estado de los formularios (Web3Forms) */
.form-status{
  display:none;
  margin-top:16px;
  padding:11px 18px;
  border-radius:999px;
  font-weight:700;
  font-size:.95rem;
  text-align:center;
  line-height:1.35;
}
.form-status.is-ok{ display:block; background:var(--green); color:#05030f; }
.form-status.is-err{ display:block; background:var(--orange); color:#fff; }
