/* AMT — /informacion/: presentación cinematográfica (Λ apagado → parpadeo → encendido → montaje → firma) y el documento en papel */

/* ===== presentación (capa fija sobre la página mientras corre) ===== */
.in-intro { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #030405; color: #fff; }
.in-intro.is-gone { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
body.in-lock { overflow: hidden; }

/* sala: foco cenital y piso; se encienden con el logo */
.in-room { position: absolute; inset: 0; }
.in-spot, .in-floor { position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease; }
.in-spot { background: radial-gradient(60% 55% at 50% 44%, rgba(120, 160, 255, .16), rgba(61, 123, 255, .05) 45%, transparent 75%); }
.in-floor { background: radial-gradient(42% 16% at 50% 82%, rgba(150, 185, 255, .14), transparent 70%); }
.in-intro.is-dim .in-spot { opacity: .18; }
.in-intro.is-on .in-spot, .in-intro.is-on .in-floor { opacity: 1; }

/* el Λ: capa apagada (metal oscuro) + capa de luz (neón) que parpadea */
.in-mark { position: absolute; left: 50%; top: 46%; width: min(30vw, 260px); aspect-ratio: 453 / 477; transform: translate(-50%, -50%); }
.in-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.in-mark .in-off { fill: #101216; stroke: rgba(255, 255, 255, .07); stroke-width: 2; }
.in-mark .in-lit { fill: #f4f7ff; opacity: 0; }
/* el resplandor va dentro del SVG (filtro propio con margen en el viewBox): un filter CSS se recorta en un cuadro en Safari */
.in-mark svg.in-lit { left: -41.94%; top: -39.83%; width: 183.89%; height: 179.66%; }
.in-mark .in-lit.is-half { opacity: .45; }
.in-mark .in-lit.is-full { opacity: 1; }
/* reflejo en el piso */
.in-mark .in-refl { top: 100%; transform: scaleY(-1); opacity: 0; transition: opacity .2s;
  -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 45%); mask-image: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 45%); }
.in-intro.is-on .in-refl { opacity: .5; }
.in-intro.is-on .in-refl path { fill: #cfdcff; }
/* golpe de encendido */
.in-intro.is-boom .in-mark { animation: in-shake .42s cubic-bezier(.3, .7, .4, 1); }
@keyframes in-shake { 0% { transform: translate(-50%, -50%) scale(1.06); } 30% { transform: translate(calc(-50% + 3px), calc(-50% - 2px)) scale(1.02); }
  60% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)) scale(1.005); } 100% { transform: translate(-50%, -50%) scale(1); } }

.in-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #fff; opacity: 0; }
.in-flash.is-on { animation: in-flash .32s ease-out; }
@keyframes in-flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* final: la sala se aclara hacia la portada y el Λ se desliza a su lugar */
.in-intro { transition: background-color 1.2s ease; }
.in-intro.is-fade { background-color: transparent; pointer-events: none; }
.in-room, .in-skip, .in-mark .in-refl { transition: opacity .9s ease; }
.in-intro.is-fade .in-room, .in-intro.is-fade .in-skip, .in-intro.is-fade .in-mark .in-refl { opacity: 0; }

/* barras de cine */
.in-intro::before, .in-intro::after { content: ""; position: absolute; left: 0; right: 0; height: 7vh; z-index: 3; background: #000; transition: transform .8s cubic-bezier(.6, 0, .2, 1); }
.in-intro::before { top: 0; } .in-intro::after { bottom: 0; }
.in-intro.is-end::before { transform: translateY(-100%); } .in-intro.is-end::after { transform: translateY(100%); }

.in-skip { position: absolute; right: 24px; bottom: calc(7vh + 18px); z-index: 4; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(0, 0, 0, .35); color: rgba(255, 255, 255, .75); font: 500 12.5px/1 var(--font-sans, Inter, sans-serif); letter-spacing: .02em; cursor: pointer; }
.in-skip:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ===== portada (en la página): el logo encendido, «Amt Journal», desarrollada por ATS ===== */
.in-cover { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: calc(100svh - 72px);
  padding: 80px 24px; background: #030405; color: #fff; text-align: center; }
.in-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 38%, rgba(61, 123, 255, .14), transparent 70%); }
.in-final { position: relative; display: flex; flex-direction: column; align-items: center; }
.in-final > * { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.in-cover.is-in .in-final > * { opacity: 1; transform: none; }
.in-cover.is-in .in-final > :nth-child(2) { transition-delay: .35s; }
.in-cover.is-in .in-final > :nth-child(3) { transition-delay: .8s; }
.in-cover.is-in .in-final > :nth-child(4) { transition-delay: 1.3s; }
.in-final-mark { position: relative; width: clamp(92px, 11vw, 140px); aspect-ratio: 453 / 477; color: #f4f7ff; }
.in-final-mark svg { position: absolute; left: -41.94%; top: -39.83%; width: 183.89%; height: 179.66%; overflow: visible; }
body .in-final h1 { margin-top: 34px; color: #fff; font-size: clamp(40px, 6vw, 78px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.in-by { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: rgba(255, 255, 255, .26); font-size: 10.5px; letter-spacing: .06em; }
.in-by .ats-logo { width: 104px; height: auto; color: rgba(255, 255, 255, .3); }
.in-down { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(110px, 22vh, 240px); color: rgba(255, 255, 255, .6); font-size: 13px; }
.in-down svg { width: 20px; height: 20px; animation: in-bob 2.2s ease-in-out infinite; }
.in-down:hover { color: #fff; }
@keyframes in-bob { 50% { transform: translateY(5px); } }

/* ===== el documento: hoja de papel larga sobre un escritorio ===== */
.in-desk { padding: 96px 20px 120px; background: #e7e5e0; }
.in-paper { position: relative; max-width: 860px; margin: 0 auto; padding: 84px 96px 88px; background: #fbfaf6; color: #1c1b19;
  font-family: "Newsreader", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.72;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .06), 0 30px 70px -20px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.in-paper.is-in { opacity: 1; transform: none; }
/* marca de agua */
.in-paper::before { content: ""; position: absolute; left: 50%; top: 360px; width: min(420px, 70%); aspect-ratio: 453 / 477; transform: translateX(-50%); opacity: .035; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 453 477'%3E%3Cpath d='M214 0h25l214 477h-56L226.5 103 56 477H0z'/%3E%3C/svg%3E"); }
.in-doc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; border-bottom: 3px double #1c1b19; }
.in-doc-brand { display: flex; align-items: center; gap: 12px; font-family: Inter, sans-serif; }
.in-doc-brand svg { width: 26px; height: 27px; }
.in-doc-brand b { font-size: 13px; font-weight: 600; letter-spacing: .24em; }
.in-doc-ref { font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.6; color: #6b6862; text-align: right; }
.in-doc-title { margin: 48px 0 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; line-height: 1.18; letter-spacing: -.01em; text-align: center; }
.in-doc-by { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 0; font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6b6862; }
.in-doc-by .ats-logo { width: 150px; height: auto; color: #1c1b19; }
.in-doc-intro { margin: 26px auto 0; max-width: 620px; text-align: center; color: #3f3d39; }
.in-doc-parties { margin: 44px 0 0; border-top: 1px solid #d6d2c9; }
.in-doc-parties div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #d6d2c9; }
.in-doc-parties dt { font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6b6862; padding-top: 5px; }
.in-doc-parties dd { margin: 0; }
.in-doc-sec { margin: 60px 0 6px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; text-align: center; color: #6b6862; }
.in-clause { margin-top: 34px; }
.in-clause h3 { margin: 0 0 8px; font-family: "Newsreader", Georgia, serif; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.in-clause h3 span { font-variant: small-caps; letter-spacing: .06em; }
.in-clause p { margin: 0; text-align: justify; hyphens: auto; }
.in-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 88px; }
.in-sign div { display: flex; flex-direction: column; }
.in-sign-line { height: 1px; margin-bottom: 12px; background: #1c1b19; }
.in-sign b { font-size: 16px; font-weight: 600; }
.in-sign small { font-family: Inter, sans-serif; font-size: 12px; color: #6b6862; }
.in-doc-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 72px; padding-top: 40px; border-top: 1px solid #d6d2c9; font-family: Inter, sans-serif; }

@media (max-width: 760px) {
  .in-mark { width: 46vw; }
  .in-desk { padding: 48px 10px 72px; }
  .in-paper { padding: 44px 24px 52px; font-size: 16.5px; }
  .in-doc-head { flex-direction: column; align-items: flex-start; }
  .in-doc-ref { text-align: left; }
  .in-doc-parties div { grid-template-columns: 1fr; gap: 2px; }
  .in-sign { grid-template-columns: 1fr; gap: 48px; }
  .in-clause p { text-align: left; }
  .in-by { gap: 8px; }
  .in-skip { right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .in-final > *, .in-paper { opacity: 1; transform: none; transition: none; }
  .in-down svg { animation: none; }
}
/* título solo para lectores de pantalla (el dueño quitó «Amt Journal» visible de la portada) */
.in-final .in-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
