/* =========================================================
   Prado Software — hoja de estilo única
   Paleta tomada de MIANTRO Arcade: el salón de noche, el
   neón del logo y el amarillo de las marquesinas.
   Tipografía: Archivo (variable), ancha para los títulos
   como las letras de una marquesina, normal para leer.
   ========================================================= */

@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/Archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/Archivo-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noche:     #140B22;
  --noche2:    #1E1331;
  --noche3:    #291C40;
  --linea:     #3A2B52;
  --azul:      #4AA8FF;
  --rosa:      #FF5AD2;
  --marquesina:#FFC933;
  --marquesina-d:#C18F0C;
  --texto:     #EEE8F7;
  --apagado:   #A99FBD;
  --tenue:     #8A80A1;
  --ancho:     1180px;
  --letra:     'Archivo', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

/* idioma: el mismo HTML trae los dos; se muestra el elegido */
html[data-idioma="es"] [data-l="en"],
html[data-idioma="en"] [data-l="es"] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--noche); color: var(--texto);
  font-family: var(--letra); font-size: 17px; line-height: 1.62;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marquesina); text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }
::selection { background: var(--rosa); color: #fff; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-stretch: 125%; font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p + p { margin-top: 1em; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.saltar { position: absolute; left: -9999px; top: 0; background: var(--marquesina); color: #000; padding: 10px 18px; font-weight: 700; z-index: 999; }
.saltar:focus { left: 12px; top: 12px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 90;
  background: rgba(20, 11, 34, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera-int { display: flex; align-items: center; gap: 28px; height: 66px; }
.marca { display: inline-flex; flex: none; }
.marca img { height: 30px; width: auto; transition: opacity .18s ease; }
.marca:hover img { opacity: .75; }
.menu { margin-left: auto; display: flex; gap: 26px; }
.menu a { color: var(--apagado); font-size: .92rem; font-weight: 600; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--texto); }
.idiomas { display: flex; gap: 2px; background: var(--noche2); border: 1px solid var(--linea); border-radius: 9px; padding: 3px; }
.idiomas button {
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
  background: none; border: 0; color: var(--apagado); padding: 4px 10px; border-radius: 6px;
}
.idiomas button[aria-pressed="true"] { background: var(--noche3); color: var(--texto); }

/* ---------- Botones: como los de un tablero de arcade ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-stretch: 112%; font-weight: 800; font-size: 1.02rem;
  padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--marquesina); color: #1A1206;
  box-shadow: 0 5px 0 var(--marquesina-d), 0 10px 28px rgba(255, 201, 51, .18);
  transition: transform .1s ease, box-shadow .1s ease, background .18s ease;
}
.btn:hover { background: #FFD65C; color: #1A1206; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--marquesina-d); }
.btn--fantasma { background: transparent; color: var(--texto); border: 2px solid var(--linea); box-shadow: none; }
.btn--fantasma:hover { border-color: var(--texto); background: rgba(255,255,255,.04); color: var(--texto); }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.letra-chica { font-size: .88rem; color: var(--apagado); margin-top: 16px; }

/* ---------- Neón: las dos líneas del logo de MIANTRO, de separador ---------- */
.neon { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 0; }
.neon i { display: block; height: 4px; border-radius: 4px; }
.neon i:first-child { width: min(520px, 70%); background: #FFB7EE; box-shadow: 0 0 6px var(--rosa), 0 0 18px var(--rosa), 0 0 42px rgba(255,90,210,.55); }
.neon i:last-child  { width: min(230px, 34%); background: #BDE7FF; box-shadow: 0 0 6px var(--azul), 0 0 18px var(--azul), 0 0 42px rgba(74,168,255,.55); }

/* ---------- Bandas ---------- */
.banda { padding: 92px 0; }
.banda--media { background: var(--noche2); }
/* la pared del salón: ladrillo en penumbra */
.banda--ladrillo {
  background:
    linear-gradient(rgba(20,11,34,.9), rgba(20,11,34,.94)),
    url(../img/ladrillo.jpg) center / 640px auto;
}
.entradilla { color: var(--apagado); font-size: 1.12rem; max-width: 60ch; margin-top: 16px; }

/* ---------- Portada ---------- */
.portada { position: relative; min-height: clamp(600px, 86vh, 880px); display: flex; align-items: center; padding: 64px 0 84px; overflow: hidden; }
.portada-fondo { position: absolute; inset: 0; }
.portada-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.portada-fondo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,11,34,.97) 0%, rgba(20,11,34,.86) 38%, rgba(20,11,34,.25) 72%, rgba(20,11,34,.1) 100%),
    linear-gradient(to top, var(--noche) 0%, transparent 34%);
}
.portada .contenedor { position: relative; z-index: 1; width: 100%; }
.portada-caja { max-width: 600px; }
/* el logo de neón se funde con la escena: su fondo azul se vuelve el resplandor del tubo */
.logo-neon {
  width: min(400px, 78%); margin: -10px 0 8px -26px;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 52%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 58% at 50% 52%, #000 52%, transparent 100%);
}
.presenta { color: var(--apagado); font-weight: 600; font-size: .98rem; }
.portada h1 { margin-top: 6px; }
.lema { font-size: 1.2rem; color: #DCD4EA; margin-top: 18px; max-width: 44ch; }

/* ---------- Estudio ---------- */
.estudio { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.principios { list-style: none; display: grid; gap: 26px; }
.principios li { padding-left: 22px; border-left: 3px solid var(--azul); box-shadow: -6px 0 14px -10px var(--azul); }
.principios h3 { margin-bottom: 6px; }
.principios p { color: var(--apagado); font-size: .98rem; }

/* ---------- Lo que hacemos (catálogo) ---------- */
.producto {
  display: grid; grid-template-columns: 1.2fr 1fr; margin-top: 40px;
  background: var(--noche2); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden;
}
.producto-img { position: relative; min-height: 340px; background: #000; }
.producto-img img { width: 100%; height: 100%; object-fit: cover; }
.producto-txt { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.producto-txt .logo-neon { width: 220px; margin: -18px 0 0 -18px; }
.producto-txt p { color: var(--apagado); }
.producto-txt .numero { color: var(--tenue); font-size: .85rem; font-weight: 600; margin-top: 18px; }
.taller {
  margin-top: 22px; border: 2px dashed var(--linea); border-radius: 20px; padding: 36px;
  text-align: center; color: var(--apagado);
}
.taller h3 { color: var(--texto); }
.taller p { max-width: 50ch; margin: 8px auto 0; }

/* ---------- Página del producto: tramos de texto y captura ---------- */
.tramo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.tramo + .tramo { margin-top: 110px; }
.tramo--invertido .tramo-txt { order: 2; }
.tramo-txt p { color: var(--apagado); }
.tramo-txt h2 { margin-bottom: 18px; }
.captura { margin: 0; }
.captura img { border-radius: 14px; border: 1px solid var(--linea); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.captura figcaption { color: var(--tenue); font-size: .9rem; margin-top: 12px; }
.lista { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.lista li { position: relative; padding-left: 22px; color: var(--apagado); }
.lista li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--marquesina); box-shadow: 0 0 8px var(--marquesina); }
.pasos { counter-reset: paso; list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 40px; color: var(--apagado); }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800; color: #1A1206; background: var(--marquesina);
}
.tramo-txt h3 { margin-top: 30px; }
.nota { margin-top: 18px; padding: 14px 18px; background: var(--noche2); border: 1px solid var(--linea); border-radius: 12px; color: var(--apagado); font-size: .95rem; }
kbd {
  font: inherit; font-size: .84em; font-weight: 700; color: var(--texto);
  background: var(--noche3); border: 1px solid var(--linea); border-bottom-width: 3px;
  border-radius: 6px; padding: 1px 7px;
}

/* ---------- Descargar ---------- */
.descarga {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: linear-gradient(160deg, var(--noche3), var(--noche2));
  border: 1px solid var(--linea); border-radius: 22px; padding: 52px;
}
.descarga h2 { margin-bottom: 14px; }
.descarga p { color: var(--apagado); }
.datos { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; font-size: .95rem; }
.datos dt { color: var(--tenue); font-weight: 600; }
.datos dd { color: var(--texto); }
.datos code { font-size: .78rem; word-break: break-all; color: var(--apagado); }

/* ---------- Texto largo (legal) ---------- */
.texto { max-width: 74ch; padding-top: 72px; padding-bottom: 96px; }
.texto h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.texto h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.texto p, .texto li { color: var(--apagado); }
.texto ul, .texto ol { margin: 12px 0 12px 22px; display: grid; gap: 8px; }
.texto strong { color: var(--texto); }

/* ---------- Pie ---------- */
.pie { background: #0E0718; border-top: 1px solid var(--linea); padding: 56px 0 30px; font-size: .93rem; }
.pie-rejilla { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.pie .marca img { height: 34px; }
.pie-lema { color: var(--tenue); margin-top: 14px; max-width: 34ch; }
.pie h4 { font-size: .95rem; font-weight: 700; color: var(--texto); margin-bottom: 12px; }
.pie ul { list-style: none; display: grid; gap: 8px; }
.pie a { color: var(--apagado); }
.pie a:hover { color: #fff; }
.pie-abajo { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--linea); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--tenue); font-size: .85rem; }

/* ---------- Un solo momento de movimiento: el neón se enciende al abrir ---------- */
@keyframes encender {
  0% { opacity: 0; } 8% { opacity: .9; } 11% { opacity: .15; } 18% { opacity: 1; } 22% { opacity: .4; } 30%, 100% { opacity: 1; }
}
.portada .logo-neon { animation: encender 1.6s ease-out .2s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada .logo-neon { animation: none; }
  .btn { transition: none; }
}

/* ---------- Adaptable ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .idiomas { margin-left: auto; }
  .estudio, .producto, .tramo, .descarga { grid-template-columns: 1fr; }
  .estudio { gap: 36px; }
  .tramo { gap: 28px; }
  .tramo--invertido .tramo-txt { order: 0; }
  .tramo + .tramo { margin-top: 76px; }
  .producto-img { min-height: 240px; }
  .producto-txt, .descarga { padding: 30px; }
  .pie-rejilla { grid-template-columns: 1fr 1fr; }
  .banda { padding: 66px 0; }
  .portada-fondo::after {
    background: linear-gradient(to top, rgba(20,11,34,.98) 0%, rgba(20,11,34,.86) 55%, rgba(20,11,34,.45) 100%);
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .contenedor { padding: 0 16px; }
  .pie-rejilla { grid-template-columns: 1fr; }
  .acciones .btn { width: 100%; justify-content: center; }
  .datos { grid-template-columns: 1fr; gap: 2px; }
  .datos dd { margin-bottom: 10px; }
  .logo-neon { margin-left: -16px; }
}
.pie-nota { color: var(--tenue); font-size: .85em; margin-left: 4px; }

/* aviso: qué es y qué no es MIANTRO Arcade (frontend, sin juegos) */
.aviso-frontend {
  margin-top: 18px; padding: 12px 16px 12px 18px; max-width: 58ch;
  background: rgba(74, 168, 255, .08); border: 1px solid rgba(74, 168, 255, .35); border-left: 4px solid var(--azul);
  border-radius: 10px; color: #CFC8DE; font-size: .93rem; line-height: 1.5;
}
.aviso-frontend strong { color: var(--texto); }
.descarga .aviso-frontend { margin: 0 0 16px; }
