/* ============================================================================
   PANDORAW · lanzador.css  —  la portada como app
   Amber 💎 · 31/10/2026 · pedido de oktanuz

   ---------------------------------------------------------------------------
   QUE ES ESTO
   ---------------------------------------------------------------------------
   La portada deja de ser una pagina web larga y se vuelve un LANZADOR:
   cinco tarjetas grandes, una por mundo. Nada de lore: el lore ya vive en
   su propia pagina (borderlands.html, eldenring.html, etc).

   ANTES: 21,636 px de scroll con todo duplicado.
   AHORA: ~2,500 px, puro menu.

   CADA MUNDO TIENE SU PROPIO DEGRADADO (su "color de casa"):
     Borderlands  naranja/amarillo  (el cel-shading de Gearbox)
     Elden Ring   dorado/oliva      (el Arbol Aureo)
     Arkham       azul acero/negro  (Gotham de noche)
     Cyberpunk    amarillo/cian     (Night City)
     Cloudpunk    violeta/rosa      (Nivalis de noche)
   ============================================================================ */


/* ============================================================================
   1. PORTADA — logo, titulo, lema. Corta.
   ============================================================================ */
.pw-portada {
  padding: 3.2rem 0 1.6rem;
  text-align: center;
  position: relative;
  z-index: 3;
}

.pw-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px rgba(230,33,41,.55));
}

.pw-titulo {
  font-family: "Orbitron", Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: .06em;
  margin: 0 0 .3em;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255,42,109,.8),
    0 0 34px rgba(255,42,109,.45),
    0 0 70px rgba(181,55,242,.35);
}

.pw-lema {
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(.85rem, 2vw, 1rem);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
  text-shadow: 0 0 12px rgba(5,217,232,.6);
  /* (01/11/2026) El lema caia justo encima del sol amarillo y no se leia:
     cyan sobre amarillo con las lineas del sol encima. Se le pone su placa
     oscura para que tenga contraste siempre, sin mover la portada. */
  display: inline-block;
  padding: .42em 1.1em;
  border-radius: 999px;
  background: rgba(8,1,15,.78);
  border: 1px solid rgba(5,217,232,.30);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}


/* ============================================================================
   2. LOS MUNDOS — la rejilla de tarjetas
   ============================================================================ */
.pw-mundos {
  padding: 1.6rem 0 3rem;
  position: relative;
  z-index: 3;
}

.pw-mundos .contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}


/* ============================================================================
   3. LA TARJETA DE MUNDO
   ============================================================================ */
.pw-mundo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.10);
  background: #0d0418;
  transition: transform .28s cubic-bezier(.2,.8,.3,1),
              border-color .28s,
              box-shadow .28s;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.pw-mundo:hover,
.pw-mundo:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 18px 46px rgba(0,0,0,.6);
  outline: none;
}

.pw-mundo:active {
  transform: translateY(-1px) scale(.995);
}


/* ---------------------------------------------------------------------------
   3.1 EL ARTE — el degradado de cada mundo
   ---------------------------------------------------------------------------
   Es CSS puro: cero imagenes, cero peso, carga instantanea.
   El ::before hace el degradado, el ::after la rejilla de perspectiva.
   --------------------------------------------------------------------------- */
.pw-mundo-arte {
  position: relative;
  flex: 0 0 150px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOTO REAL del mundo como capa base. Si el HTML no define --pw-foto,
   esto no hace nada y la tarjeta se ve igual que antes (degradado puro). */
.pw-mundo-arte img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(1.05) contrast(1.04);
  transition: transform .55s cubic-bezier(.2,.8,.3,1), filter .4s ease;
}

.pw-mundo:hover .pw-mundo-arte img {
  transform: scale(1.08);
  filter: saturate(1.18) contrast(1.08);
}

.pw-mundo-arte::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* (01/11/2026) ESTE DEGRADADO TAPABA LA FOTO. Estaba opaco encima de la
     imagen (z-index 1 sobre 0), asi que las fotos reales NUNCA se vieron:
     la tarjeta solo mostraba el degradado. Ahora va translucido y la foto
     se ve, con el color de cada mundo como tinte. */
  opacity: .55;
  transition: opacity .35s ease;
}

.pw-mundo:hover .pw-mundo-arte::before {
  opacity: .40;
}

/* la rejilla synthwave de fondo */
.pw-mundo-arte::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  opacity: .5;
  pointer-events: none;
}

/* el resplandor del centro */
.pw-mundo-glow {
  position: absolute;
  z-index: 2;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: .85;
  pointer-events: none;
}

/* el simbolo grande */
.pw-mundo-simbolo {
  position: relative;
  z-index: 3;
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.65));
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}

.pw-mundo:hover .pw-mundo-simbolo {
  transform: scale(1.09) rotate(-3deg);
}


/* ---------------------------------------------------------------------------
   3.2 LA INFO — sello, nombre, descripcion, boton
   --------------------------------------------------------------------------- */
.pw-mundo-info {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.3rem;
  background: linear-gradient(180deg, rgba(8,1,15,.72) 0%, rgba(8,1,15,.97) 55%);
}

.pw-mundo-sello {
  font-family: "Chakra Petch", sans-serif;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: .45rem;
}

.pw-mundo-nombre {
  font-family: "Orbitron", Impact, sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  letter-spacing: .03em;
  margin: 0 0 .5rem;
  line-height: 1.1;
}

.pw-mundo-desc {
  font-size: .9rem;
  line-height: 1.55;
  color: #b9a8d9;
  margin: 0 0 1rem;
  flex: 1 1 auto;
}

.pw-mundo-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .62em 1.15em;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition: background .22s, color .22s, gap .22s;
}

.pw-mundo:hover .pw-mundo-cta {
  gap: .8rem;
}


/* ============================================================================
   4. LOS CINCO DEGRADADOS — uno por mundo
   ============================================================================ */

/* --- BORDERLANDS · naranja y amarillo, el cel-shading de Gearbox --- */
.pw-mundo--bl .pw-mundo-arte::before {
  background:
    radial-gradient(circle at 50% 118%, rgba(255,179,0,.55) 0%, transparent 58%),
    linear-gradient(160deg, #3d1200 0%, #b34700 42%, #ff8a00 78%, #ffb300 100%);
}
.pw-mundo--bl .pw-mundo-glow {
  background: radial-gradient(circle, rgba(255,179,0,.95) 0%, rgba(255,107,53,.4) 55%, transparent 72%);
}
.pw-mundo--bl .pw-mundo-simbolo { color: #fff3d6; }
.pw-mundo--bl .pw-mundo-nombre { color: #ffb300; }
.pw-mundo--bl .pw-mundo-cta { color: #ffb300; }
.pw-mundo--bl:hover .pw-mundo-cta { background: #ffb300; color: #1a0800; }
.pw-mundo--bl:hover { border-color: rgba(255,179,0,.55); }

/* --- ELDEN RING · dorado y oliva, el Arbol Aureo --- */
.pw-mundo--er .pw-mundo-arte::before {
  background:
    radial-gradient(circle at 50% 112%, rgba(232,197,71,.60) 0%, transparent 60%),
    linear-gradient(165deg, #0a0d06 0%, #1f2a12 38%, #4a5220 68%, #8a7a2a 100%);
}
.pw-mundo--er .pw-mundo-glow {
  background: radial-gradient(circle, rgba(232,197,71,.95) 0%, rgba(160,140,40,.4) 55%, transparent 72%);
}
.pw-mundo--er .pw-mundo-simbolo { color: #f4e6a8; }
.pw-mundo--er .pw-mundo-nombre { color: #e8c547; }
.pw-mundo--er .pw-mundo-cta { color: #e8c547; }
.pw-mundo--er:hover .pw-mundo-cta { background: #e8c547; color: #14160a; }
.pw-mundo--er:hover { border-color: rgba(232,197,71,.55); }

/* --- BATMAN ARKHAM · azul acero y negro, Gotham de noche --- */
.pw-mundo--ak .pw-mundo-arte::before {
  background:
    radial-gradient(circle at 50% 116%, rgba(90,150,220,.50) 0%, transparent 58%),
    linear-gradient(165deg, #05070d 0%, #0d1a2e 40%, #16304f 72%, #2a4a72 100%);
}
.pw-mundo--ak .pw-mundo-glow {
  background: radial-gradient(circle, rgba(120,180,255,.85) 0%, rgba(40,90,160,.35) 55%, transparent 72%);
}
.pw-mundo--ak .pw-mundo-simbolo { color: #cfe4ff; }
.pw-mundo--ak .pw-mundo-nombre { color: #7fb8ff; }
.pw-mundo--ak .pw-mundo-cta { color: #7fb8ff; }
.pw-mundo--ak:hover .pw-mundo-cta { background: #7fb8ff; color: #05070d; }
.pw-mundo--ak:hover { border-color: rgba(127,184,255,.55); }

/* --- CYBERPUNK 2077 · amarillo y cian, Night City --- */
.pw-mundo--cp .pw-mundo-arte::before {
  background:
    radial-gradient(circle at 50% 118%, rgba(252,238,10,.48) 0%, transparent 56%),
    linear-gradient(160deg, #0a0016 0%, #2a0a3d 34%, #6d0f6b 62%, #b8006e 100%);
}
.pw-mundo--cp .pw-mundo-glow {
  background: radial-gradient(circle, rgba(252,238,10,.85) 0%, rgba(255,42,109,.45) 52%, transparent 72%);
}
.pw-mundo--cp .pw-mundo-simbolo { color: #fcee0a; }
.pw-mundo--cp .pw-mundo-nombre { color: #fcee0a; }
.pw-mundo--cp .pw-mundo-cta { color: #fcee0a; }
.pw-mundo--cp:hover .pw-mundo-cta { background: #fcee0a; color: #14001f; }
.pw-mundo--cp:hover { border-color: rgba(252,238,10,.55); }

/* --- CLOUDPUNK · violeta y rosa, Nivalis de noche --- */
.pw-mundo--cpk .pw-mundo-arte::before {
  background:
    radial-gradient(circle at 50% 116%, rgba(255,120,200,.48) 0%, transparent 58%),
    linear-gradient(165deg, #0b0418 0%, #2b0f45 38%, #5a1a6e 68%, #8f2a86 100%);
}
.pw-mundo--cpk .pw-mundo-glow {
  background: radial-gradient(circle, rgba(255,140,210,.88) 0%, rgba(181,55,242,.42) 55%, transparent 72%);
}
.pw-mundo--cpk .pw-mundo-simbolo { color: #ffd6f2; }
.pw-mundo--cpk .pw-mundo-nombre { color: #ff8ad2; }
.pw-mundo--cpk .pw-mundo-cta { color: #ff8ad2; }
.pw-mundo--cpk:hover .pw-mundo-cta { background: #ff8ad2; color: #1a0620; }
.pw-mundo--cpk:hover { border-color: rgba(255,138,210,.55); }


/* ============================================================================
   5. MODELOS DE IA — se queda, marcada en construccion
   ============================================================================ */
.pw-modelos {
  padding: 2.6rem 0 3rem;
  position: relative;
  z-index: 3;
}

/* Velo oscuro: el sol amarillo se comia las letras (Amber 02/11/2026) */
.pw-modelos::before {
  content: "";
  position: absolute;
  inset: -2rem 0;
  background: linear-gradient(180deg,
              rgba(6,1,12,.72) 0%,
              rgba(6,1,12,.88) 18%,
              rgba(6,1,12,.92) 50%,
              rgba(6,1,12,.88) 82%,
              rgba(6,1,12,.72) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Las tarjetas de modelos van opacas para que no se vea el sol por debajo */
.pw-modelos .card,
#modelosGrid .card {
  background: #12081f !important;
  backdrop-filter: none;
  border-color: rgba(120,90,180,.45);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}

.pw-modelos .card h3,
.pw-modelos .card h4,
#modelosGrid .card h3,
#modelosGrid .card h4 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}

.pw-modelos .card p,
#modelosGrid .card p {
  color: #d8d0e8;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.pw-modelos-cab {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}

.pw-modelos-cab .titulo {
  margin: 0;
}

.pw-construccion {
  font-family: "Chakra Petch", sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .38em .85em;
  border-radius: 999px;
  color: #ffb300;
  border: 1px dashed rgba(255,179,0,.65);
  background: rgba(255,179,0,.08);
  white-space: nowrap;
}


/* ============================================================================
   6. CELULAR — una columna, tarjetas mas bajas
   ============================================================================ */
@media (max-width: 900px) {

  .pw-portada {
    padding: 1.8rem 0 1rem;
  }

  .pw-logo {
    width: 72px;
    margin-bottom: .7rem;
  }

  .pw-titulo {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .pw-lema {
    font-size: .78rem;
    letter-spacing: .22em;
  }

  .pw-mundos {
    padding: .8rem 0 2rem;
  }

  .pw-mundos .contenedor {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pw-mundo {
    min-height: auto;
    border-radius: 16px;
  }

  /* En celular la tarjeta es horizontal: arte a la izquierda, info a la
     derecha. Asi caben los 5 mundos sin scroll eterno. */
  /* TODAS las tarjetas del mismo alto: la foto manda, el texto se adapta. */
  .pw-mundo { height: 168px; }
  .pw-mundo-arte { height: 100%; }
  .pw-mundo-info { height: 100%; overflow: hidden; }
  .pw-mundo {
    flex-direction: row;
    align-items: stretch;
  }

  .pw-mundo-arte {
    flex: 0 0 104px;
    min-height: 128px;
  }

  .pw-mundo-simbolo {
    font-size: 2.6rem;
  }

  .pw-mundo-glow {
    width: 120px;
    height: 120px;
    filter: blur(26px);
  }

  .pw-mundo-info {
    padding: .85rem 1rem .9rem;
    justify-content: center;
    background: linear-gradient(90deg, rgba(8,1,15,.55) 0%, rgba(8,1,15,.96) 40%);
  }

  .pw-mundo-sello {
    font-size: .58rem;
    letter-spacing: .12em;
    margin-bottom: .3rem;
  }

  .pw-mundo-nombre {
    font-size: 1.05rem;
    margin-bottom: .3rem;
  }

  .pw-mundo-desc {
    font-size: .8rem;
    line-height: 1.45;
    margin-bottom: .6rem;
  }

  .pw-mundo-cta {
    font-size: .68rem;
    padding: .5em .95em;
  }

  .pw-modelos {
    padding: 1.8rem 0 2rem;
  }

  .pw-modelos-cab {
    gap: .6rem;
  }

  .pw-construccion {
    font-size: .58rem;
  }
}


/* ============================================================================
   7. PANTALLAS MUY CHICAS
   ============================================================================ */
@media (max-width: 380px) {

  .pw-mundo-arte {
    flex: 0 0 84px;
    min-height: 118px;
  }

  .pw-mundo-simbolo {
    font-size: 2.1rem;
  }

  .pw-mundo-nombre {
    font-size: .95rem;
  }

  .pw-mundo-desc {
    font-size: .75rem;
  }
}


/* ============================================================================
   8. ACCESIBILIDAD
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .pw-mundo,
  .pw-mundo-simbolo,
  .pw-mundo-cta {
    transition: none !important;
  }
  .pw-mundo:hover {
    transform: none;
  }
  .pw-mundo:hover .pw-mundo-simbolo {
    transform: none;
  }
}
