/* Portada amarilla con entrada animada (muestra del 28-11). Todo va con prefijo am-. */

/* Entrada (unos 3 segundos; un toque la salta) */
.am-intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--amarillo); cursor: pointer; animation: am-fuera .4s 2.9s ease forwards; }
@keyframes am-fuera { to { opacity: 0; visibility: hidden; } }
.am-pegatina { position: absolute; left: 50%; top: 50%; z-index: 2; margin: 0; display: flex; flex-direction: column; align-items: center; font: 900 clamp(40px, 11vmin, 104px)/1.05 Montserrat, sans-serif; letter-spacing: -.03em; color: #0b0d12; translate: -50% -50%; animation: am-pop .55s cubic-bezier(.34, 1.7, .64, 1) both, am-traga .3s 1.85s ease-in forwards; }
.am-pegatina span { background: #fff; border: .06em solid #0b0d12; border-radius: .18em; box-shadow: .09em .09em 0 #0b0d12; padding: 0 .18em; margin-top: -.03em; rotate: -5deg; }
.am-pegatina span:nth-child(2) { rotate: 3deg; font-size: 1.22em; }
.am-pegatina span:nth-child(3) { rotate: -3deg; }
@keyframes am-pop { from { opacity: 0; scale: .2; } }
@keyframes am-traga { to { opacity: 0; scale: .15; rotate: 12deg; } }
.am-pieza { position: absolute; left: 50%; top: 50%; translate: -50% -50%; opacity: 0; animation: am-estalla 1.65s calc(.42s + var(--n) * 18ms) both; }
.am-pieza img { display: block; width: clamp(66px, 15vmin, 140px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 18px 30px rgba(60, 40, 0, .35); }
.am-pieza b { display: block; white-space: nowrap; background: #0b0d12; color: #fff; border-radius: 99px; padding: .45em .9em; font: 900 clamp(14px, 3vmin, 27px) Montserrat, sans-serif; }
.am-pieza u { text-decoration: none; color: var(--amarillo); }
.am-pieza i { display: block; font-style: normal; font-size: clamp(34px, 8vmin, 76px); }
@keyframes am-estalla {
  0% { opacity: 0; transform: translate(0, 0) scale(.1) rotate(0deg); animation-timing-function: cubic-bezier(.2, 1.35, .4, 1); }
  30% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); animation-timing-function: linear; }
  76% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.09) rotate(calc(var(--r) * 1.5)); animation-timing-function: cubic-bezier(.6, -.3, .9, .5); }
  100% { opacity: 0; transform: translate(0, 0) scale(.1) rotate(160deg); }
}
.am-logo { position: absolute; left: 50%; top: 50%; width: clamp(100px, 22vmin, 190px); aspect-ratio: 1; background: #0b0d12; border-radius: 28%; padding: 2.4vmin; translate: -50% -50%; animation: am-rebote .8s 2.08s both; }
@keyframes am-rebote {
  0% { opacity: 0; scale: .2; rotate: -90deg; }
  35% { opacity: 1; scale: 1.35; rotate: 8deg; }
  62% { scale: .68; rotate: -4deg; }
  82% { scale: 1.08; rotate: 0deg; }
  100% { opacity: 1; scale: 1; }
}

/* Cabecera: amarilla arriba, oscura al bajar */
.cabecera { transition: background-color .3s, border-color .3s; }
.cabecera:not(.en-amarillo) { background: #0b0d12; }
.cabecera.en-amarillo { background: var(--amarillo); border-color: transparent; backdrop-filter: none; }
.cabecera.en-amarillo .marca { color: #0b0d12; }
.cabecera.en-amarillo .marca img { background: #0b0d12; border-radius: 10px; padding: 3px; }
.cabecera.en-amarillo .marca .pro { background: #0b0d12; color: var(--amarillo); -webkit-text-fill-color: var(--amarillo); }
.cabecera.en-amarillo .menu a { color: #1c1a10; }
.cabecera.en-amarillo .idiomas { background: rgba(0, 0, 0, .07); border-color: transparent; }
.cabecera.en-amarillo .idiomas a { color: #33300f; }
.cabecera.en-amarillo .idiomas a.activo { background: #0b0d12; color: var(--amarillo); }
.cabecera.en-amarillo .boton.secundario { background: transparent; color: #0b0d12; border: 2px solid #0b0d12; }
.cabecera.en-amarillo .boton.principal { background: #0b0d12; color: #fff; box-shadow: none; }

/* Primera pantalla */
.am-heroe { background: var(--amarillo); color: #0b0d12; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; overflow: hidden; padding: 30px 0 48px; }
.am-rejilla { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }
.am-titulo { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 20px; }
.am-titulo .am-palabra { display: inline-block; animation: am-palabra .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(3.05s + var(--i) * 70ms); }
.am-titulo .degradado { background: #0b0d12; color: var(--amarillo); -webkit-text-fill-color: var(--amarillo); padding: 0 .16em; border-radius: .18em; transform-origin: center; }
@keyframes am-palabra { from { opacity: 0; transform: translateY(.6em) rotate(5deg); } }
.am-lema { font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; max-width: 470px; margin: 0 0 28px; color: #26230c; animation: am-sube .6s 3.6s both; }
.am-botones { display: flex; flex-wrap: wrap; gap: 12px; animation: am-sube .6s 3.72s both; }
.am-boton { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 34px; border-radius: 99px; font: 800 18px Inter, sans-serif; text-decoration: none; transition: transform .15s; }
.am-boton:hover { transform: translateY(-2px) scale(1.02); }
.am-boton.negro { background: #0b0d12; color: #fff; }
.am-boton.blanco { background: #fff; color: #0b0d12; }
.am-nota { margin: 14px 0 0; font-size: 14px; font-weight: 700; color: #4a440f; animation: am-sube .6s 3.84s both; }
@keyframes am-sube { from { opacity: 0; transform: translateY(24px); } }

/* Escena: video largo → clips que salen volando → móvil con video */
.am-escena { position: relative; width: 520px; height: 570px; justify-self: center; }
.am-movil { --e: .81; position: absolute; left: 126px; top: 22px; z-index: 3; padding: 10px; background: #0b0d12; border-radius: 44px; box-shadow: 0 40px 70px rgba(60, 40, 0, .38); animation: am-movil .95s 2.95s cubic-bezier(.22, 1.2, .36, 1) both; }
.am-pantalla { position: relative; width: calc(326px * var(--e)); height: calc(580px * var(--e)); border-radius: 34px; overflow: hidden; background: #151a25; }
.am-pantalla video { position: absolute; max-width: none; width: calc(1280px * var(--e)); height: calc(720px * var(--e)); left: calc(-920px * var(--e)); top: calc(-34px * var(--e)); }
@keyframes am-movil { from { transform: translateY(110vh) rotate(14deg); } }
.am-largo { position: absolute; left: -26px; bottom: 6px; width: 270px; z-index: 4; margin: 0; padding: 7px; background: #fff; border-radius: 18px; rotate: -6deg; box-shadow: 0 22px 40px rgba(60, 40, 0, .3); animation: am-largo .7s 3.4s cubic-bezier(.22, 1.2, .36, 1) both; }
.am-largo img { display: block; width: 100%; border-radius: 12px; }
.am-largo figcaption { padding: 7px 4px 2px; font-size: 13px; font-weight: 800; color: #0b0d12; }
@keyframes am-largo { from { opacity: 0; transform: translateX(-140px) scale(.7); } }
.am-clip { position: absolute; width: 124px; z-index: 2; margin: 0; animation: am-vuela .85s cubic-bezier(.2, 1.25, .4, 1) both, am-flota 3.4s 3.2s ease-in-out infinite; }
.am-clip img { display: block; width: 100%; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 20px 34px rgba(60, 40, 0, .34); }
.am-clip span { position: absolute; top: -12px; right: -10px; background: #0b0d12; color: #fff; font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.am-clip.a { left: 0; top: 40px; transform: rotate(-12deg); --x: 90px; --y: 330px; animation-delay: 3.9s, 5s; }
.am-clip.b { right: 14px; top: 4px; transform: rotate(10deg); --x: -300px; --y: 360px; animation-delay: 4.05s, 5.5s; }
.am-clip.c { right: 6px; bottom: 28px; z-index: 4; transform: rotate(13deg); --x: -320px; --y: 40px; animation-delay: 4.2s, 6s; }
@keyframes am-vuela { from { opacity: 0; translate: var(--x) var(--y); scale: .2; rotate: -200deg; } }
@keyframes am-flota { 50% { translate: 0 -12px; } }

/* Segunda pantalla: planes */
.am-planes { background: #07080b; padding: 84px 0 70px; scroll-margin-top: 68px; }
.am-planes .contenedor { display: flex; flex-direction: column; align-items: center; text-align: center; }
.am-planes .planes-portada h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; margin-bottom: 30px; }
.am-demo { padding: 70px 0 50px; }

/* Aparición al bajar */
.am-revelar { opacity: 0; translate: 0 46px; transition: opacity .6s ease, translate .6s cubic-bezier(.22, 1.2, .36, 1); }
.am-revelar.am-visto { opacity: 1; translate: 0 0; }

@media (max-width: 960px) {
  .am-rejilla { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .am-lema { margin-inline: auto; }
  .am-botones { justify-content: center; }
}
@media (max-width: 640px) {
  /* La demo de «descargar» ensanchaba toda la página en el móvil */
  .detalle { grid-template-columns: minmax(0, 1fr); }
  .detalle > * { min-width: 0; }
  .cabecera.en-amarillo .boton.principal { display: none; }
  .am-heroe { align-items: flex-start; padding-top: 22px; }
  .am-boton { height: 52px; padding: 0 24px; font-size: 16px; }
  .am-escena { zoom: .64; margin-top: 8px; }
}
/* La entrada se ve siempre (muchos Windows traen las animaciones apagadas); solo se quita el balanceo sin fin. */
@media (prefers-reduced-motion: reduce) {
  .am-clip { animation: am-vuela .85s cubic-bezier(.2, 1.25, .4, 1) both; }
}

/* «Nuevo en CliperosPro» (nov-tarjeta) debajo de los botones */
.novedades { margin-top: 24px; max-width: 540px; animation: am-sube .6s 4.1s both; }
.nov-titulo { margin: 0 0 10px; font: 900 15px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.nov-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nov-tarjeta { display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 2px 9px; padding: 12px 13px; border-radius: 16px; background: #0b0d12; color: #fff; text-align: left; text-decoration: none; transition: transform .15s; }
.nov-tarjeta:hover { transform: translateY(-3px); }
.nov-tarjeta i { grid-row: span 3; font-style: normal; font-size: 20px; line-height: 1.3; }
.nov-tarjeta b { font: 800 15px/1.25 Inter, sans-serif; }
.nov-tarjeta span { color: #b9c1d3; font-size: 12.5px; line-height: 1.35; }
.nov-tarjeta em { justify-self: start; margin-top: 5px; padding: 2px 8px; border-radius: 99px; background: var(--amarillo); color: #0b0d12; font: 800 10.5px Inter, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
@media (min-width: 961px) {
  /* En el ordenador todo cabe en la primera pantalla */
  .am-heroe { padding: 18px 0 24px; }
  .am-titulo { font-size: clamp(40px, 4.4vw, 60px); margin-bottom: 14px; }
  .am-lema { max-width: 560px; margin-bottom: 18px; font-size: 17px; }
  .am-botones .am-boton { height: 48px; font-size: 16px; }
  .am-nota { margin-top: 10px; }
  .novedades { margin-top: 16px; max-width: 560px; }
  .nov-tarjeta { gap: 0 9px; padding: 9px 11px; }
  .nov-tarjeta i { grid-row: span 2; }
  .nov-tarjeta span { display: none; }
}
@media (max-width: 960px) { .novedades { margin-inline: auto; } }
@media (max-width: 420px) { .nov-tarjeta { grid-template-columns: 1fr; padding: 11px; } .nov-tarjeta i { grid-row: auto; } }

/* Ocho tarjetas: compactas para que no empujen el resto */
@media (min-width: 961px) {
  .novedades { max-width: 620px; }
  .nov-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .nov-tarjeta { grid-template-columns: 1fr; padding: 8px 9px; }
  .nov-tarjeta i { grid-row: auto; font-size: 17px; }
  .nov-tarjeta b { font-size: 12.5px; }
  .nov-tarjeta em { margin-top: 3px; font-size: 9px; }
}
@media (max-width: 960px) {
  .nov-rejilla { gap: 8px; }
  .nov-tarjeta { padding: 9px 10px; }
  .nov-tarjeta span { display: none; }
  .nov-tarjeta b { font-size: 13.5px; }
}
@media (min-width: 421px) and (max-width: 960px) { .nov-tarjeta i { grid-row: span 2; } }

/* Alrededor del video: una tarjeta por función (am-fx), en el sitio de las fotos */
.am-fx .fx { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 18px; border: 4px solid #fff; background: #0b0d12; box-shadow: 0 20px 34px rgba(60, 40, 0, .34); container-type: inline-size; }
.am-fx .fx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.am-clip.am-fx > span { white-space: nowrap; font-size: 12.5px; }
.fx-karaoke { position: absolute; left: 4px; right: 4px; bottom: 16%; margin: 0; text-align: center; font: 900 15cqw/1.15 Montserrat, sans-serif; text-transform: uppercase; color: #fff; text-shadow: 0 0 3px #000, 0 2px 3px #000, 2px 0 3px #000, -2px 0 3px #000; }
.fx-karaoke b { display: inline-block; }
.fx-karaoke .si { color: #0b0d12; background: #ffd400; text-shadow: none; padding: 0 5px; border-radius: 5px; animation: fx-late 1.2s ease-in-out infinite; }
@keyframes fx-late { 50% { transform: scale(1.12); } }
.am-fx .fx-vivo img.fx-cam { inset: auto 6% 5% auto; width: 66%; height: auto; border: 2px solid #fff; border-radius: 9px; box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.fx-vivo em { position: absolute; left: 7%; top: 9%; padding: 3px 7px; border-radius: 6px; background: #e0182d; color: #fff; font: normal 800 9.5cqw/1.2 Inter, sans-serif; letter-spacing: .04em; }
.fx-vivo em::before { content: '● '; }
.fx-vivo i { position: absolute; left: 7%; top: 23%; padding: 3px 6px; border-radius: 99px; background: rgba(0,0,0,.6); font: normal 9cqw/1.3 sans-serif; }
.fx-croma { background: linear-gradient(90deg, #19c43c 50%, #0b0d12 50%) !important; }
.fx-croma .fx-fondo { clip-path: inset(0 0 0 50%); }
.am-fx .fx-croma img.fx-persona { transform: scale(.78); transform-origin: 50% 100%; clip-path: polygon(45% 4.7%, 61% 5.3%, 75% 9.3%, 85% 16.6%, 90% 25.3%, 96% 32.6%, 98% 43.9%, 96% 52.5%, 89% 56.5%, 100% 60.1%, 100% 100%, 0% 100%, 0% 65.4%, 1% 58.5%, 7% 54.3%, 8% 46.8%, 3% 40.2%, 3% 30.6%, 6% 26.3%, 11% 19.7%, 17% 10.9%, 31% 5.6%); }
.fx-croma::after { content: '‹ ›'; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; translate: -50% 0; background: #fff; color: #0b0d12; display: grid; place-items: center; font: 900 15px/1 Inter, sans-serif; white-space: nowrap; text-shadow: 0 0 4px #fff, 0 0 4px #fff, 0 0 8px #fff; }
.fx-editor { overflow: hidden; border-radius: 12px; background: #0b0d12; }
.am-largo .fx-editor img { border-radius: 0; aspect-ratio: 16 / 8; object-fit: cover; }
.fx-pistas { position: relative; display: flex; flex-wrap: wrap; gap: 3px; padding: 7px 8px 8px; }
.fx-pistas i { height: 9px; border-radius: 3px; }
.fx-pistas .t { width: 38%; background: #c8741c; }
.fx-pistas .t.corta { width: 22%; margin-right: 30%; }
.fx-pistas .v { width: 36%; height: 13px; background: #2f66c9; border: 1px solid #7fa6ee; }
.fx-pistas .v.corta { width: 23%; }
.fx-pistas .m { width: 100%; background: #138a8f; }
.fx-pistas s { position: absolute; top: 3px; bottom: 3px; left: 12%; width: 2px; background: #ff4d5e; animation: fx-raya 4s linear infinite; }
@keyframes fx-raya { to { left: 92%; } }

/* Entrada: etiqueta debajo de algunas fotos */
.am-pieza small { position: absolute; left: 50%; bottom: -9px; translate: -50% 0; white-space: nowrap; background: #0b0d12; color: #fff; border: 2px solid #fff; border-radius: 99px; padding: 3px 9px; font: 800 clamp(10px, 2vmin, 15px)/1.3 Inter, sans-serif; }
@media (max-width: 480px) { .am-pieza small { font-size: 9.5px; padding: 2px 5px; } }
@media (max-width: 480px) { .am-pieza[style*="--x:37vw"] small { translate: -66% 0; } }

/* Tarjetas con foto: blancas, como las de alrededor del video */
.nov-rejilla .nov-tarjeta { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 3px; border-radius: 16px; background: #fff; color: #0b0d12; box-shadow: 0 10px 20px rgba(60, 40, 0, .24); }
.nov-rejilla .nov-tarjeta img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 13px; }
.nov-rejilla .nov-tarjeta b { padding: 7px 7px 0; }
.nov-rejilla .nov-tarjeta em { margin: auto 6px 5px; margin-left: 6px; padding: 2px 7px; }
.nov-rejilla .nov-tarjeta b { margin-bottom: 5px; }
@media (min-width: 961px) and (max-height: 860px) {
  /* Pantallas bajas: que las ocho se sigan viendo en la primera pantalla */
  .am-heroe { padding-top: 4px; }
  .am-heroe .am-titulo { font-size: clamp(36px, 3.4vw, 48px); margin-bottom: 8px; }
  .am-heroe .am-lema { margin-bottom: 10px; font-size: 15px; line-height: 1.45; }
  .am-heroe .am-botones .am-boton { height: 42px; }
  .am-heroe .am-nota { margin-top: 6px; }
  .am-heroe .novedades { margin-top: 8px; }
  .am-heroe .nov-titulo { margin-bottom: 6px; }
  .nov-rejilla .nov-tarjeta b { margin: 0; padding-top: 4px; font-size: 11.5px; }
  .nov-rejilla .nov-tarjeta em { margin-top: 3px; margin-bottom: 2px; }
}

/* Menú de idiomas (menu-idiomas): un botón que abre la lista hacia abajo */
.menu-idiomas { position: relative; }
.menu-idiomas summary { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(0, 0, 0, .07); color: #0b0d12; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; white-space: nowrap; user-select: none; }
.menu-idiomas summary::-webkit-details-marker { display: none; }
.menu-idiomas summary::after { content: '▾'; font-size: 11px; }
.menu-idiomas[open] summary { background: #0b0d12; color: var(--amarillo); }
.menu-idiomas > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-direction: column; min-width: 160px; max-height: 70vh; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 16px 34px rgba(0, 0, 0, .28); }
.menu-idiomas > div a { padding: 10px 12px; border-radius: 9px; color: #0b0d12; font-size: 15px; font-weight: 600; text-decoration: none; }
.menu-idiomas > div a:hover { background: rgba(0, 0, 0, .06); }
.menu-idiomas > div a.activo { background: #0b0d12; color: var(--amarillo); }
@media (max-width: 1080px) { .menu-idiomas { margin-left: auto; } }
@media (max-width: 420px) { .menu-idiomas summary { height: 34px; padding: 0 9px; font-size: 12px; } }

/* Con nueve idiomas, la lista del pie salta de línea */
.pie-idiomas { flex-wrap: wrap; }
/* Móviles muy estrechos: que quepan el logo, el menú y «Anmelden / Connexion» */
@media (max-width: 380px) { .cabecera .contenedor { gap: 6px; } .menu-idiomas summary { gap: 3px; padding: 0 7px; } .cabecera .boton.chico.entrar { padding: 0 8px; } }
