/* Mundo de Luma: colores de ElectroTecniWeb y de la app, sobre fondos claros. */
:root {
  --azul: #0667f9;
  --azul-osc: #0449b8;
  --cian: #02d9ff;
  --naranja: #ff8500;
  --naranja-osc: #c96400;
  --amarillo: #ffd426;
  --verde: #13c96f;
  --verde-osc: #0a8a4a;
  --violeta: #7657ff;
  --violeta-osc: #5337d1;
  --rosa: #f43bad;
  --tinta: #10275a;
  --texto: #2a3f6e;
  --crema: #fff7d6;
  --cielo: #eaf5ff;
  --blanco: #ffffff;
  --radio: 26px;
  --ancho: min(1200px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--blanco); color: var(--texto); font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif; font-size: 18px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--tinta); font-family: "Baloo 2", "Trebuchet MS", sans-serif; font-weight: 800; letter-spacing: -0.015em; line-height: 1.04; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); text-wrap: balance; }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
:focus-visible { outline: 4px solid var(--naranja); outline-offset: 3px; border-radius: 8px; }
.contenedor { width: var(--ancho); margin-inline: auto; }
.entrada { max-width: 760px; margin-top: 14px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 50; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--azul); font-weight: 800; }
.skip-link:focus { top: 12px; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 22px rgba(6, 103, 249, 0.12); backdrop-filter: blur(14px); }
.barra-dentro { width: var(--ancho); min-height: 72px; margin-inline: auto; display: flex; align-items: center; gap: 22px; }
.marca { display: flex; align-items: center; gap: 11px; color: var(--tinta); text-decoration: none; }
.marca img { border-radius: 13px; }
.marca strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.22rem; line-height: 1.1; }
.marca small { display: block; color: var(--azul-osc); font-size: 0.74rem; font-weight: 800; }
.barra-enlaces { display: flex; gap: 20px; margin-left: auto; }
.barra-enlaces a { color: var(--tinta); font-size: 0.96rem; font-weight: 800; text-decoration: none; }
.barra-enlaces a:hover { color: var(--azul); }
.idioma { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--azul); border-radius: 999px; color: var(--azul); background: #fff; font-size: 0.92rem; font-weight: 800; text-decoration: none; transition: transform 0.15s ease; }
.idioma:hover { transform: translateY(-2px); }
.idioma:active { transform: translateY(2px); }
.volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; color: #fff; background: var(--azul); box-shadow: 0 4px 0 var(--azul-osc); font-size: 0.92rem; font-weight: 800; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.volver:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--azul-osc); }
.volver:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--azul-osc); }

/* Botones de caramelo, como los de la app */
.botones { display: flex; flex-wrap: wrap; gap: 14px; }
.boton { display: inline-flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 22px 12px; border-radius: 20px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.boton > i { font-size: 1.85rem; }
.boton small { display: block; font-size: 0.82rem; font-weight: 800; line-height: 1.15; }
.boton strong { display: block; font-family: "Baloo 2", sans-serif; font-size: 1.26rem; font-weight: 800; line-height: 1.15; }
.boton:hover { transform: translateY(-3px); }
.boton:active { transform: translateY(4px); }
.boton-verde { color: #05371f; background: #3fe08f; box-shadow: 0 7px 0 var(--verde-osc), 0 16px 24px rgba(10, 138, 74, 0.25); }
.boton-verde:hover { box-shadow: 0 10px 0 var(--verde-osc), 0 18px 26px rgba(10, 138, 74, 0.28); }
.boton-verde:active { box-shadow: 0 3px 0 var(--verde-osc); }
.boton-azul { color: #fff; background: var(--azul); box-shadow: 0 7px 0 var(--azul-osc), 0 16px 24px rgba(6, 103, 249, 0.26); }
.boton-azul:hover { box-shadow: 0 10px 0 var(--azul-osc), 0 18px 26px rgba(6, 103, 249, 0.3); }
.boton-azul:active { box-shadow: 0 3px 0 var(--azul-osc); }
.boton-blanco { color: var(--tinta); background: #fff; box-shadow: 0 7px 0 rgba(16, 39, 90, 0.28); }
.boton .bi-apple { color: #111; }
.boton-blanco:hover { box-shadow: 0 10px 0 rgba(16, 39, 90, 0.28); }
.boton-blanco:active { box-shadow: 0 3px 0 rgba(16, 39, 90, 0.28); }
.boton-blanco > i { color: var(--verde-osc); }

/* Portada */
.portada { position: relative; min-height: min(860px, calc(100vh - 72px)); padding: 54px 0 124px; overflow: hidden; background: #bfe6ff url(../img/apps/luma/luma-panorama.webp) center bottom / cover no-repeat; isolation: isolate; }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 42%, rgba(255, 255, 255, 0) 70%); }
.portada-cielo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nube { position: absolute; display: block; width: 190px; height: 58px; border-radius: 60px; background: #fff; opacity: 0.85; animation: deriva 26s ease-in-out infinite alternate; }
.nube::before { content: ""; position: absolute; left: 34px; top: -28px; width: 88px; height: 72px; border-radius: 50%; background: #fff; }
.n1 { top: 9%; right: 8%; }
.n2 { top: 26%; right: 36%; transform: scale(0.62); animation-duration: 34s; }
@keyframes deriva { from { translate: -22px 0; } to { translate: 34px 0; } }
.portada-rejilla { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: 20px; }
.portada h1 { max-width: 780px; font-size: clamp(3.1rem, 6.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; }
.portada-lead { max-width: 640px; margin: 20px 0 28px; color: var(--tinta); font-size: clamp(1.2rem, 1.9vw, 1.55rem); font-weight: 700; line-height: 1.32; }
.portada-luma { display: block; justify-self: center; width: min(100%, 430px); filter: drop-shadow(0 18px 20px rgba(16, 39, 90, 0.24)); }
.portada-luma img { width: 100%; }
.sellos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sellos li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; color: var(--tinta); background: #fff; box-shadow: 0 5px 16px rgba(16, 39, 90, 0.14); font-size: 0.98rem; font-weight: 800; }
.sellos i { color: var(--azul); }
.sellos li:nth-child(2) i { color: var(--naranja); }
.sellos li:nth-child(3) i { color: var(--verde-osc); }
.sellos li:nth-child(4) i { color: var(--violeta); }
.ola { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; display: block; width: 100%; height: clamp(44px, 7vw, 90px); }
.ola-arriba { top: -1px; bottom: auto; transform: scaleY(-1); }
.ola-pie { position: relative; bottom: -1px; }

/* Cifras */
.cifras { padding: 12px 0 58px; background: var(--crema); }
.cifras-fila { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cifra { padding: 24px 18px 22px; border-radius: var(--radio); color: #fff; text-align: center; }
.cifra strong { display: block; font-family: "Baloo 2", sans-serif; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 800; line-height: 1; }
.cifra span { display: block; margin-top: 4px; font-size: 1.08rem; font-weight: 800; }
.c-azul { background: var(--azul); box-shadow: 0 8px 0 var(--azul-osc); }
.c-naranja { color: #3d1f00; background: #ffa53a; box-shadow: 0 8px 0 var(--naranja-osc); }
.c-verde { color: #05371f; background: #3fe08f; box-shadow: 0 8px 0 var(--verde-osc); }
.c-violeta { background: var(--violeta); box-shadow: 0 8px 0 var(--violeta-osc); }

/* Mundos */
.mundos { padding: 62px 0 0; background: var(--crema); }
.selector { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 28px 0 34px; }
.selector button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 12px; border: 0; border-radius: 22px; color: var(--tinta); background: #fff; box-shadow: 0 5px 0 rgba(16, 39, 90, 0.14); font: 800 0.92rem/1.14 "Nunito Sans", sans-serif; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease; }
.selector img { width: 100%; aspect-ratio: 1; border-radius: 16px; object-fit: cover; }
.selector button:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--c); }
.selector button:active { transform: translateY(3px); }
.selector button[aria-selected="true"] { color: #fff; background: var(--c); box-shadow: 0 7px 0 rgba(16, 39, 90, 0.3); transform: translateY(-3px); }
.escena { position: relative; padding: clamp(36px, 5vw, 66px) 0 clamp(70px, 8vw, 110px); background-color: var(--c); background-position: center; background-size: cover; background-repeat: no-repeat; }
.escena[hidden] { display: none; }
.js .escena.entra .escena-tarjeta, .js .escena.entra .telefono, .js .escena.entra .escena-luma { animation: subir 0.5s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
.js .escena.entra .telefono { animation-delay: 0.07s; }
.js .escena.entra .escena-luma { animation-delay: 0.14s; }
@keyframes subir { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.escena-rejilla { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(20px, 4vw, 54px); }
.escena-tarjeta { padding: clamp(24px, 3vw, 38px); border: 6px solid #fff; border-radius: 32px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 44px rgba(16, 39, 90, 0.22); }
.escena-tarjeta h3 { color: var(--c); font-size: clamp(2rem, 3.6vw, 3rem); filter: brightness(0.72); }
.escena-tarjeta > p { margin: 8px 0 18px; color: var(--tinta); font-size: 1.14rem; font-weight: 700; }
.juegos { display: flex; flex-wrap: wrap; gap: 9px; }
.juegos li { padding: 7px 13px; border-radius: 13px; color: var(--tinta); background: var(--cielo); font-size: 0.98rem; font-weight: 800; }
.juegos li.demo { background: #bff5d8; }
.juegos li.demo::after { content: "Demo"; margin-left: 8px; padding: 1px 8px; border-radius: 8px; color: #fff; background: var(--verde-osc); font-size: 0.78rem; }
.telefono { justify-self: start; width: min(100%, 300px); margin: 0; padding: 12px 12px 10px; border-radius: 38px; background: #fff; box-shadow: 0 22px 44px rgba(16, 39, 90, 0.32); }
.telefono img { width: 100%; aspect-ratio: 3 / 4; border-radius: 26px; background: var(--cielo); object-fit: cover; }
.telefono figcaption { padding: 9px 8px 2px; color: var(--tinta); font-size: 0.92rem; font-weight: 800; }
.escena-luma { position: absolute; right: -24px; bottom: -58px; width: 158px; filter: drop-shadow(0 12px 14px rgba(16, 39, 90, 0.3)); }
.escena-luma img { width: 100%; }
.js .escena-tarjeta { min-height: 310px; }

/* Pantallas */
.pantallas { position: relative; padding: clamp(76px, 9vw, 120px) 0 clamp(76px, 9vw, 120px); background: var(--amarillo); }
.pantallas .ola-arriba path { fill: var(--cielo); }
.pantallas h2 { color: var(--tinta); }
.pantallas .entrada { color: var(--tinta); font-weight: 700; }
.carrusel { display: flex; gap: 20px; margin-top: 28px; padding: 8px max(20px, calc((100% - 1200px) / 2)) 20px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--azul) transparent; }
.carrusel li { flex: 0 0 clamp(190px, 21vw, 262px); scroll-snap-align: center; transition: transform 0.18s ease; }
.carrusel li:hover { transform: translateY(-6px) rotate(-1deg); }
.carrusel li:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.carrusel img { width: 100%; border: 8px solid #fff; border-radius: 34px; box-shadow: 0 14px 28px rgba(102, 72, 0, 0.3); }
.carrusel span { display: block; margin-top: 12px; color: var(--tinta); font-family: "Baloo 2", sans-serif; font-size: 1.14rem; font-weight: 800; line-height: 1.15; text-align: center; }

/* Edades */
.edades { position: relative; padding: clamp(76px, 9vw, 120px) 0; background: var(--cielo); }
.edades .ola-arriba path { fill: var(--amarillo); }
.edades-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.edad { position: relative; display: flex; flex-direction: column; min-height: 410px; padding: 24px 22px 0; overflow: hidden; border-radius: var(--radio); }
.edad strong { font-family: "Baloo 2", sans-serif; font-size: 3.1rem; font-weight: 800; line-height: 1; }
.edad strong small { font-size: 1.1rem; }
.edad h3 { margin: 10px 0 8px; color: inherit; font-size: 1.5rem; }
.edad p { font-size: 1.02rem; font-weight: 600; line-height: 1.42; }
.edad img { align-self: flex-end; width: 124px; margin: auto -6px -12px 0; padding-top: 10px; transition: transform 0.25s ease; }
.edad:hover img { transform: translateY(-8px) rotate(-3deg); }
.e-azul { color: #082a60; background: #a7dcff; }
.e-naranja { color: #4a2500; background: #ffc988; }
.e-verde { color: #063c22; background: #a8efc9; }
.e-violeta { color: #2a1973; background: #cfc5ff; }

/* Madres y padres */
.familias { padding: clamp(66px, 8vw, 110px) 0; background: #fbfdff; }
.familias-rejilla { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(26px, 5vw, 64px); }
.familias-imagen { margin: 0; }
.familias-imagen img { width: 100%; border: 10px solid #fff; border-radius: 34px; box-shadow: 0 22px 50px rgba(6, 103, 249, 0.18); object-fit: cover; }
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 24px 0; }
.datos li { display: flex; gap: 11px; align-items: flex-start; }
.datos i { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--azul-osc); background: #dcefff; font-size: 1.14rem; }
.datos li:nth-child(4n+2) i { color: #065f37; background: #d3f8e4; }
.datos li:nth-child(4n+3) i { color: var(--violeta-osc); background: #e6e0ff; }
.datos li:nth-child(4n) i { color: #8a4b00; background: #ffebce; }
.datos strong { display: block; color: var(--tinta); font-size: 1.03rem; line-height: 1.2; }
.datos span { display: block; font-size: 0.97rem; line-height: 1.32; }
.enlace { display: inline-flex; align-items: center; gap: 8px; color: var(--azul-osc); font-weight: 800; }

/* Versiones */
.versiones { padding: clamp(66px, 8vw, 104px) 0; background: #dff6ff; }
.versiones-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.version { position: relative; padding: 34px 34px 38px; overflow: hidden; border-radius: 34px; }
.version img { position: absolute; right: 14px; top: 16px; width: 142px; transition: transform 0.25s ease; }
.version:hover img { transform: rotate(4deg) translateY(-5px); }
.version h3 { max-width: 62%; color: inherit; font-size: clamp(2rem, 3.4vw, 3rem); }
.version ul { max-width: 68%; margin: 16px 0 26px; }
.version li { padding: 4px 0 4px 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9.2 17.6 4.4 12.8l1.9-1.9 2.9 2.9 8.5-8.5 1.9 1.9z'/%3E%3C/svg%3E") left 8px / 20px no-repeat; font-size: 1.08rem; font-weight: 700; }
.v-demo { color: #fff; background: #0c9c56; }
.v-completa { color: #fff; background: var(--azul); }
.nota { margin-top: 22px; color: var(--tinta); font-weight: 700; }

/* Preguntas */
.preguntas { padding: clamp(66px, 8vw, 104px) 0 clamp(50px, 6vw, 80px); background: #fff; }
.preguntas-rejilla { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 54px); }
.preguntas-titulo img { width: 210px; margin-top: 20px; }
.preguntas-lista { display: grid; gap: 11px; align-content: start; }
details { padding: 15px 20px; border-radius: 20px; background: var(--cielo); }
details[open] { background: var(--crema); }
summary { color: var(--tinta); font-size: 1.14rem; font-weight: 800; cursor: pointer; }
details p { margin-top: 8px; }
details a { color: var(--azul-osc); font-weight: 800; }

/* Pie */
.pie { position: relative; background: #fff; }
.pie-fondo { color: #fff; background: var(--azul); }
.pie-dentro { padding: 12px 0 34px; }
.pie-nombre { color: #fff; font-family: "Baloo 2", sans-serif; font-size: clamp(3rem, 11.5vw, 11rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.96; text-align: center; white-space: nowrap; }
.pie-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 20px; }
.pie-enlaces a { color: #fff; font-weight: 800; }
.pie-derechos { margin-top: 14px; font-size: 0.95rem; text-align: center; }

/* Entradas al desplazarse */
.revelar { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease var(--retraso, 0ms), transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1) var(--retraso, 0ms); }
.revelar.visto { opacity: 1; transform: none; }
.selector button.revelar.visto { transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, opacity 0.5s ease; }
.selector button[aria-selected="true"].revelar.visto { transform: translateY(-3px); }

@media (max-width: 1260px) {
  .escena-luma { right: 0; }
}

@media (max-width: 1040px) {
  .barra-enlaces { display: none; }
  .idioma { margin-left: auto; }
  .selector { grid-template-columns: repeat(7, 118px); overflow-x: auto; margin-inline: -20px; padding: 6px 20px 14px; }
  .edades-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .familias-rejilla { grid-template-columns: 1fr; }
  .datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .volver span { display: none; }
  .volver { min-width: 46px; justify-content: center; padding: 8px; }
  .portada { min-height: 0; padding: 30px 0 330px; background-position: 42% bottom; background-size: auto 62%; background-color: #dff1ff; }
  .portada::before { background: linear-gradient(180deg, #e9f6ff 0%, #e9f6ff 54%, rgba(233, 246, 255, 0) 66%); }
  .portada-rejilla { display: block; }
  .portada h1 { font-size: clamp(2.9rem, 13.6vw, 3.8rem); }
  .botones .boton { width: 100%; }
  .portada-luma { position: absolute; right: 8px; bottom: 44px; width: 214px; }
  .n1, .n2 { display: none; }
  .cifras-fila { grid-template-columns: repeat(2, 1fr); }
  .escena-rejilla { grid-template-columns: 1fr; }
  .telefono { width: min(74%, 270px); }
  .telefono figcaption { font-size: 0.86rem; }
  .escena-luma { right: -10px; bottom: -54px; width: 112px; }
  .js .escena-tarjeta { min-height: 0; }
  .edad { min-height: 370px; }
  .edades-rejilla { grid-template-columns: 1fr; }
  .edad { min-height: 0; padding-right: 128px; padding-bottom: 20px; }
  .edad img { position: absolute; right: 2px; bottom: -8px; margin: 0; }
  .datos { grid-template-columns: 1fr; }
  .versiones-rejilla { grid-template-columns: 1fr; }
  .version { padding: 26px 22px 30px; }
  .version img { width: 100px; right: 6px; top: 8px; }
  .version h3, .version ul { max-width: 100%; }
  .version h3 { max-width: 70%; }
  .version .boton { width: 100%; }
  .preguntas-rejilla { grid-template-columns: 1fr; }
  .preguntas-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .preguntas-titulo img { width: 92px; margin: 0; }
  .pie-nombre { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
