/* Verano 2027 - Llegada animada (portada y pagina de acceso), 19-11-2026.
   Mar con islas y velero, titulo que aparece letra a letra y un boton que abre el teclado del codigo desde abajo.
   Movimiento con proposito: orientar (aqui se entra) y confirmar (cada numero marcado). Solo transform/opacity. */
.ll { --ll-tinta: #1B2559; --ll-mar: #2EC4B6; --ll-mar2: #1FA79A; --ll-cielo: #5BC0F8; --ll-sol: #FFC93C; --ll-coral: #FF6B4A; --ll-arena: #FFE7B8;
  --ll-ease: cubic-bezier(.22, 1, .36, 1); position: relative; overflow: hidden; min-height: min(640px, 86vh); color: var(--ll-tinta); }
.ll-fondo { position: absolute; inset: 0; background: linear-gradient(var(--ll-cielo) 0 54%, var(--ll-mar) 54% 100%); }
.ll-sol { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--ll-sol); border: 3px solid var(--ll-tinta); right: 7%; top: 8%; }
.ll-ola { position: absolute; left: -50%; width: 200%; height: 60px; background-repeat: repeat-x; background-size: 160px 60px; }
.ll-ola.o1 { top: calc(54% - 30px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60'%3E%3Cpath d='M0 30 Q40 6 80 30 T160 30 V60 H0Z' fill='%232EC4B6' stroke='%231B2559' stroke-width='3'/%3E%3C/svg%3E"); animation: ll-deriva 9s linear infinite; }
.ll-ola.o2 { top: calc(68% - 30px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60'%3E%3Cpath d='M0 30 Q40 10 80 30 T160 30 V60 H0Z' fill='%231FA79A' stroke='%231B2559' stroke-width='3'/%3E%3C/svg%3E"); animation: ll-deriva 13s linear infinite reverse; }
@keyframes ll-deriva { to { transform: translateX(160px); } }
.ll-isla { position: absolute; z-index: 1; width: 120px; height: 70px; }
.ll-isla svg { width: 100%; height: 100%; overflow: visible; }
.ll-isla.i1 { left: 5%; top: calc(54% - 52px); }
.ll-isla.i2 { right: 8%; top: calc(68% - 42px); width: 96px; }
.ll-isla.i3 { left: 30%; top: calc(84% - 34px); width: 84px; }
.ll-flota { animation: ll-flota 3.2s ease-in-out infinite; }
.ll-isla.i2 .ll-flota { animation-delay: -1.1s; } .ll-isla.i3 .ll-flota { animation-delay: -2s; }
@keyframes ll-flota { 50% { transform: translateY(-5px); } }
.ll-velero { position: absolute; top: calc(61% - 46px); left: -80px; width: 70px; animation: ll-navega 18s linear infinite; }
@keyframes ll-navega { to { transform: translateX(calc(100vw + 160px)); } }

.ll-txt { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding: 7vh 16px 40px; text-align: center; }
.ll-chip { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #fff; border: 3px solid var(--ll-tinta); box-shadow: 0 3px 0 var(--ll-tinta); font: 600 15px "Fredoka", system-ui, sans-serif; }
.ll-txt h1 { margin: 14px 0 6px; font: 700 clamp(46px, 13vw, 92px)/.95 "Fredoka", system-ui, sans-serif; color: #fff; -webkit-text-stroke: 3px var(--ll-tinta); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ll-tinta); }
.ll-txt h1 span { display: inline-block; }
.ll-txt p.ll-lema { margin: 0 auto; max-width: 30ch; font: 800 18px/1.35 "Nunito", system-ui, sans-serif; }
.ll-entrar { margin-top: 13vh; min-height: 62px; padding: 0 34px; font-size: 1.5rem; }
.ll-pie { display: table; margin: 16px auto 0; padding: 5px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--ll-tinta); font: 800 14px "Nunito", system-ui, sans-serif; color: var(--ll-tinta); text-decoration: none; }
.ll-pie:hover { color: var(--ll-tinta); }

/* hoja con el teclado */
.ll-velo { position: fixed; inset: 0; z-index: 60; background: rgba(27, 37, 89, .38); opacity: 0; pointer-events: none; transition: opacity 260ms; }
.ll-velo.on { opacity: 1; pointer-events: auto; }
.ll-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; color: #1B2559; border-top: 3px solid #1B2559; border-radius: 26px 26px 0 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform 380ms cubic-bezier(.22, 1, .36, 1); box-shadow: 0 -8px 0 rgba(27, 37, 89, .18); }
.ll-hoja.on { transform: none; }
.ll-hoja-in { max-width: 400px; margin: 0 auto; text-align: center; }
.ll-hoja h2 { margin: 2px 0 2px; font: 600 24px "Fredoka", system-ui, sans-serif; color: #1B2559; }
.ll-hoja p { margin: 0; font: 700 15px "Nunito", system-ui, sans-serif; color: #4A4F70; }
.ll-puntos { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 14px 0 6px; min-height: 22px; }
.ll-puntos i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #1B2559; background: #fff; transition: transform 140ms cubic-bezier(.22, 1, .36, 1), background 140ms; }
.ll-puntos i.on { background: #FFC93C; transform: scale(1.15); }
.ll-puntos.mal { animation: ll-sacude 300ms; }
@keyframes ll-sacude { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ll-msg { min-height: 22px; margin: 4px 0 8px !important; color: #C2401F !important; font-weight: 800 !important; }
.ll-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ll-teclado button { min-height: 56px; border-radius: 16px; border: 3px solid #1B2559; box-shadow: 0 3px 0 #1B2559; background: #F2FBFF; color: #1B2559; font: 600 26px "Fredoka", system-ui, sans-serif; cursor: pointer; transition: transform 140ms cubic-bezier(.22, 1, .36, 1); }
.ll-teclado button:active { transform: translateY(2px) scale(.96); box-shadow: 0 1px 0 #1B2559; }
.ll-teclado .ll-borrar { background: #FFE7B8; font-size: 17px; }
.ll-teclado .ll-ok { background: #FF6B4A; color: #fff; font-size: 19px; }
.ll-teclado .ll-ok[disabled] { opacity: .45; cursor: default; }
.ll-cerrar { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #1B2559; background: #fff; color: #1B2559; font: 600 20px "Fredoka", system-ui, sans-serif; cursor: pointer; }

/* entradas (una vez) */
.ll-pop { animation: ll-pop 560ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ll-pop { 0% { opacity: 0; transform: scale(.4) translateY(30px); } 70% { opacity: 1; transform: scale(1.06); } }
.ll-sube { animation: ll-sube 520ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 400ms); }
@keyframes ll-sube { from { opacity: 0; transform: translateY(16px); } }

@media (min-width: 900px) { .ll { min-height: 720px; } .ll-txt { padding-top: 48px; } .ll-entrar { margin-top: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .ll *, .ll-hoja, .ll-hoja *, .ll-velo { animation: none !important; transition: none !important; }
}
