/* La invitación (Puerta cerrada / antes de abrir). Hoja propia: no hereda visita.css, que bloquea el scroll del visor 3D. */
:root {
  --fondo: #05060a; --tinta: #f3eee4; --gris: #9aa6b4; --oro: #ffc46b; --oro2: #ffdfa6; --cian: #5ce1ff;
  --borde: rgba(255,255,255,.09); --vidrio: rgba(14,16,24,.62);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", monospace;
  --muelle: cubic-bezier(.32,.72,0,1);
}
* { box-sizing: border-box; }
html { background: var(--fondo); scroll-behavior: smooth; }
body.inv { margin: 0; min-height: 100vh; color: var(--tinta); font-family: var(--sans); background: var(--fondo); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* capas fijas: panal (canvas), grano y luz que sigue al ratón */
.panal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grano { position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 1.2s steps(6) infinite; }
@keyframes grano { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }
.luz { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,107,.13) 0%, rgba(92,225,255,.05) 40%, transparent 70%); transform: translate3d(50vw, 40vh, 0);
  transition: opacity .6s var(--muelle); mix-blend-mode: screen; }

/* isla de navegación */
.isla { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; align-items: center;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(10,12,18,.55); border: 1px solid var(--borde);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); font-size: 13px;
  opacity: 0; animation: entraIsla .9s .9s var(--muelle) forwards; }
@keyframes entraIsla { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.isla-marca { font-family: var(--mono); letter-spacing: .3em; font-size: 11px; color: var(--oro); margin-right: 8px; }
.isla a { text-decoration: none; color: #cfd8e3; padding: 7px 12px; border-radius: 999px; transition: background .4s var(--muelle), color .4s var(--muelle); }
.isla a:hover { background: rgba(255,255,255,.08); color: #fff; }

main.invitacion { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 84px 16px 64px; overflow: hidden; }
.hero-foto { position: absolute; inset: -6%; z-index: 0; will-change: transform; transition: transform 1.2s var(--muelle); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05) brightness(.62);
  animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.16) translate3d(-1.5%,1%,0); } }
.hero-velo { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(90% 70% at 50% 45%, rgba(5,6,10,.25) 0%, rgba(5,6,10,.75) 60%, var(--fondo) 100%),
              linear-gradient(180deg, rgba(5,6,10,.6) 0%, transparent 30%, transparent 65%, var(--fondo) 100%); }
.hero-contenido { position: relative; z-index: 2; width: min(920px, 100%); text-align: center; }

.terminal { width: min(520px, 100%); margin: 0 auto 22px; text-align: left; border-radius: 14px; overflow: hidden;
  background: rgba(6,8,12,.72); border: 1px solid rgba(92,225,255,.18); box-shadow: 0 30px 80px -30px rgba(92,225,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(16px); animation: entra 1s .2s var(--muelle) forwards; }
.term-barra { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: 10.5px; color: var(--gris); letter-spacing: .12em; text-transform: uppercase; }
.term-barra i { width: 8px; height: 8px; border-radius: 50%; background: #3a4150; }
.term-barra i:first-child { background: #ff6b6b; } .term-barra i:nth-child(2) { background: #ffc46b; } .term-barra i:nth-child(3) { background: #3ddc97; }
.term-barra span { margin-left: auto; color: var(--cian); }
.term-barra span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; margin-right: 6px; vertical-align: 1px; animation: late 1.4s infinite; }
@keyframes late { 50% { opacity: .25; } }
#term { margin: 0; padding: 10px 14px 12px; min-height: 104px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #bfe9f5; white-space: pre-wrap; }
#term .ok { color: #3ddc97; } #term .quien { color: var(--oro); } #term .cursorcito { display: inline-block; width: 7px; height: 14px; background: var(--cian); vertical-align: -2px; animation: late .9s steps(1) infinite; }

.ceja { font-family: var(--mono); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--oro); margin: 0 0 18px; }
.titulo { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 8.6vw, 100px); line-height: .98; letter-spacing: -.02em; margin: 0 0 14px; color: #fff6e4; }
.titulo .palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.titulo .palabra > span { display: inline-block; transform: translateY(105%); animation: sube 1.1s var(--muelle) forwards; }
.titulo .oro { background: linear-gradient(100deg, #ffc46b 0%, #fff1cf 40%, #ffc46b 60%, #d99a3d 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sube 1.1s var(--muelle) forwards, brillo 5s 2s ease-in-out infinite; }
@keyframes sube { to { transform: translateY(0); } }
@keyframes brillo { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.inv-sub { font-size: clamp(17px, 2.2vw, 22px); color: #dbe4ee; margin: 0 0 10px; }
.fecha-evento { font-size: 15px; color: var(--gris); margin: 0 0 22px; letter-spacing: .02em; }
.fecha-evento b { color: var(--oro2); font-weight: 600; }

.revela { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: entra 1s var(--muelle) forwards; }
.ceja.revela { animation-delay: 1.1s; } .inv-sub.revela { animation-delay: 1.9s; } .fecha-evento.revela { animation-delay: 2.1s; }
.cuenta.revela { animation-delay: 2.3s; } .inv-botones.revela { animation-delay: 2.6s; }
@keyframes entra { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

/* cuenta atrás (doble bisel) */
.cuenta { width: min(620px, 100%); margin: 0 auto 20px; padding: 6px; border-radius: 30px; background: rgba(255,255,255,.04); border: 1px solid var(--borde); }
.cuenta > * { position: relative; }
.cuenta::before { content: ""; position: absolute; }
.cuenta { position: relative; }
.cuenta-tit { margin: 0; padding: 18px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--oro); }
.reloj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 14px 4px; border-radius: 24px; }
.cifra { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0 12px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); box-shadow: inset 0 1px 1px rgba(255,255,255,.08); }
.cifra b { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 8.5vw, 72px); line-height: 1; color: #fff4dc; font-variant-numeric: tabular-nums; display: inline-block; }
.cifra b.tic { animation: tic .55s var(--muelle); }
@keyframes tic { from { transform: translateY(-38%) scale(.96); opacity: 0; filter: blur(4px); } to { transform: none; opacity: 1; filter: blur(0); } }
.cifra span { margin-top: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.cifra.seg svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.aro-fondo, .aro { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.aro-fondo { stroke: rgba(255,255,255,.06); }
.aro { stroke: var(--oro); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .95s var(--muelle); filter: drop-shadow(0 0 4px rgba(255,196,107,.6)); }
.cuenta-local { margin: 4px 0 0; padding: 8px 12px 16px; color: #c9d4df; font-size: 13.5px; }

/* botones: píldora con icono anidado */
.inv-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.boton { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: #1a1306; background: linear-gradient(180deg, #ffd38c, #ffbb55); box-shadow: 0 18px 50px -18px rgba(255,180,80,.7), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .5s var(--muelle), box-shadow .5s var(--muelle); will-change: transform; }
.boton i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(26,19,6,.12); transition: transform .5s var(--muelle); }
.boton:hover i { transform: translate(2px,-2px) scale(1.06); }
.boton:active { transform: scale(.98); }
.boton.secundario { color: var(--tinta); background: rgba(255,255,255,.06); border: 1px solid var(--borde); box-shadow: none; padding: 14px 22px; }

.desliza { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); opacity: 0; animation: entra 1s 3.2s var(--muelle) forwards; }
.desliza span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--oro); animation: rueda 1.8s var(--muelle) infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- bloques */
.bloque { width: min(1120px, 100%); margin: 0 auto; padding: 120px 16px 40px; }
.bloque h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; letter-spacing: -.015em; margin: 0 0 22px; color: #fff6e4; }
.bloque h2 em { font-style: italic; color: var(--oro2); }
.lead, .inv-cert { max-width: 40em; color: #c9d4df; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; margin: 0 0 34px; }
.aparece { opacity: 0; transform: translateY(48px); filter: blur(10px); transition: opacity 1s var(--muelle), transform 1.1s var(--muelle), filter 1s var(--muelle); }
.aparece.visto { opacity: 1; transform: none; filter: blur(0); }

.cert { text-align: left; }
.inv-cert .verifica { color: var(--oro2); text-decoration: none; border-bottom: 1px solid rgba(255,196,107,.4); white-space: nowrap; }
.inv-logos { display: flex; align-items: center; gap: 40px; margin: 10px 0 12px; }
.inv-logos img { height: 34px; width: auto; opacity: .92; }
.inv-nota { color: var(--gris); font-size: 12.5px; margin: 0; }
.inv-teaser { width: 100%; margin-top: 40px; border-radius: 26px; background: #000; border: 1px solid var(--borde); box-shadow: 0 40px 120px -40px rgba(255,196,107,.35); }

.agentes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.agente { padding: 6px; border-radius: 26px; background: rgba(255,255,255,.035); border: 1px solid var(--borde); transition: transform .7s var(--muelle), border-color .7s var(--muelle); }
.agente > * { margin-left: 18px; margin-right: 18px; }
.agente:hover { transform: translateY(-6px); border-color: rgba(255,196,107,.35); }
.agente-hex { width: 54px; height: 60px; margin-top: 18px; margin-bottom: 18px; display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: #1a1306;
  background: linear-gradient(160deg, #ffe0a8, #f0a840); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.agente b { display: block; font-size: 18px; }
.agente span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); margin: 6px 18px 10px; }
.agente p { color: var(--gris); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.agente:nth-child(2) { transition-delay: .08s; } .agente:nth-child(3) { transition-delay: .16s; } .agente:nth-child(4) { transition-delay: .24s; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tesela { grid-column: span 2; position: relative; overflow: hidden; padding: 28px 24px; border-radius: 28px; min-height: 220px;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012)); border: 1px solid var(--borde); box-shadow: inset 0 1px 1px rgba(255,255,255,.07);
  transition: transform .8s var(--muelle), border-color .8s var(--muelle); }
.tesela::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,107,.16), transparent 70%); transition: transform 1s var(--muelle); }
.tesela:hover { transform: translateY(-6px); border-color: rgba(255,196,107,.3); }
.tesela:hover::after { transform: scale(1.3); }
.tesela.grande { grid-column: span 4; grid-row: span 2; min-height: 454px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(5,6,10,0) 20%, rgba(5,6,10,.9) 100%), url("portada.jpg") center / cover; }
.tesela.ancha { grid-column: span 6; min-height: 180px; }
.tesela-n { font-family: var(--mono); font-size: 11px; color: var(--oro); letter-spacing: .2em; }
.tesela h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.8vw, 34px); margin: 10px 0 10px; color: #fff6e4; }
.tesela p { margin: 0; color: #c2ccd8; font-size: 15px; line-height: 1.55; max-width: 34em; position: relative; z-index: 1; }

.inv-pasos ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: paso; }
.inv-pasos li { counter-increment: paso; padding: 26px 22px; border-radius: 26px; background: rgba(255,255,255,.035); border: 1px solid var(--borde); }
.inv-pasos li::before { content: "0" counter(paso); display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--oro); margin-bottom: 18px; }
.inv-pasos li b { display: block; font-size: 17px; margin-bottom: 6px; }
.inv-pasos li span { color: var(--gris); font-size: 14.5px; line-height: 1.5; }
.inv-pasos li:nth-child(2) { transition-delay: .1s; } .inv-pasos li:nth-child(3) { transition-delay: .2s; }

.pie { text-align: center; padding: 100px 16px 60px; color: var(--gris); font-size: 13px; }
.pie-marca { font-family: var(--serif); font-size: clamp(28px, 6vw, 64px); color: rgba(255,246,228,.12); margin: 18px 0 0; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- móvil */
@media (max-width: 767px) {
  .isla a:not(:last-child) { display: none; }
  .hero { padding-top: 84px; }
  .terminal { margin-bottom: 22px; } #term { font-size: 11.5px; min-height: 104px; }
  .reloj { gap: 4px; padding: 6px 8px 2px; }
  .cifra { padding: 10px 0 8px; border-radius: 16px; }
  .bloque { padding: 84px 16px 24px; }
  .agentes { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tesela, .tesela.grande, .tesela.ancha { grid-column: span 1; grid-row: auto; min-height: 200px; }
  .tesela.grande { min-height: 320px; }
  .inv-pasos ol { grid-template-columns: 1fr; }
  .inv-logos { gap: 26px; } .inv-logos img { height: 26px; }
  .luz { display: none; }
}
@media (max-width: 380px) { .agentes { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aparece, .revela { opacity: 1; transform: none; filter: none; }
}

/* Idiomas (ES · NL · EN): puerta/web/i18n/i18n.js */
.idiomas { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(8, 12, 20, .62); border: 1px solid rgba(255, 255, 255, .14); }
.idioma { font: 600 11px/1 system-ui, sans-serif; letter-spacing: .06em; color: rgba(255, 255, 255, .72); background: transparent; border: 0; border-radius: 999px; padding: 6px 9px; cursor: pointer; }
.idioma:hover { color: #fff; }
.idioma.activo { color: #0b0f17; background: #e9c46a; }
.idiomas-flotante { position: fixed; top: 10px; right: 12px; z-index: 50; }
