/* Porto Games — portogamestudio.com
   Colores tomados del arte de Sky: la noche verde azulada del bosque, el naranja de sus cuernos y su azul. */

:root {
  --fondo: #0b1517;
  --fondo-2: #0f1e21;
  --superficie: #13272a;
  --borde: #23403f;
  --texto: #ecf2ef;
  --texto-suave: #a9bcb7;
  --acento: #f5a13b;
  --acento-fuerte: #ff8f2a;
  --acento-texto: #1b1006;
  --azul: #3d8cf0;
  --azul-suave: #9cc9ff;
  --radio: 14px;
  --ancho: 1120px;
  --fuente: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

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

html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1.0625rem/1.65 var(--fuente);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--azul-suave); text-underline-offset: 0.18em; }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; border-radius: 6px; }

.oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acento); color: var(--acento-texto); font-weight: 700;
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
}
.saltar:focus { left: 1rem; top: 1rem; }

.envoltura { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 23, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cabecera .envoltura { display: flex; align-items: center; gap: 1.25rem; min-height: 66px; }

.marca { display: block; flex: none; }
.marca img { height: 38px; width: auto; }

.menu { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.menu > a { color: var(--texto); text-decoration: none; font-weight: 650; white-space: nowrap; }
.menu > a:hover, .menu > a[aria-current="page"] { color: var(--acento); }

.idiomas { position: relative; }
.idiomas summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.75rem; border: 1px solid var(--borde); border-radius: 999px;
  color: var(--texto-suave); font-weight: 650; font-size: 0.95rem; white-space: nowrap;
}
.idiomas summary::-webkit-details-marker { display: none; }
.idiomas summary:hover, .idiomas[open] summary { color: var(--texto); border-color: var(--acento); }
.idiomas .idioma-codigo { display: none; }
.idiomas ul {
  position: absolute; right: 0; top: calc(100% + 0.5rem);
  margin: 0; padding: 0.4rem; list-style: none; min-width: 210px;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.idiomas li a {
  display: block; padding: 0.45rem 0.8rem; border-radius: 8px;
  color: var(--texto); text-decoration: none;
}
.idiomas li a:hover { background: rgba(255, 255, 255, 0.07); }
.idiomas li a[aria-current="true"] { color: var(--acento); font-weight: 700; }

/* ---------- Héroe ---------- */

.heroe {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(500px, 36vw, 800px);
  display: flex; align-items: flex-end;
}
.heroe-fondo { position: absolute; inset: 0; z-index: 0; }
.heroe-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
.heroe::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 21, 23, 0.95) 0%, rgba(11, 21, 23, 0.8) 30%, rgba(11, 21, 23, 0.25) 55%, rgba(11, 21, 23, 0) 70%),
    linear-gradient(0deg, var(--fondo) 0%, rgba(11, 21, 23, 0) 28%);
}
.heroe > .envoltura { position: relative; z-index: 2; }
.heroe-texto { max-width: 33rem; padding-block: 6rem 3.5rem; }
.heroe-titulo { margin: 0 0 1rem; line-height: 0; }
.logo-sky img { width: min(100%, 420px); margin-left: -0.6rem; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.heroe-corta { font-size: 1.15rem; margin: 0 0 1.25rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }

.insignias { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.insignias li {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.insignias li.estado { background: rgba(61, 140, 240, 0.24); border-color: rgba(61, 140, 240, 0.6); color: #dcecff; }

.boton {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.45rem; border-radius: 999px;
  background: var(--acento); color: var(--acento-texto);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 22px rgba(245, 161, 59, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.boton:hover { background: var(--acento-fuerte); color: var(--acento-texto); transform: translateY(-1px); }

/* ---------- Secciones ---------- */

.seccion { padding-block: 4.5rem; }
.seccion-alterna { background: var(--fondo-2); border-block: 1px solid rgba(255, 255, 255, 0.04); }
.seccion h2, .bloque h2, .legal h1 {
  font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.3rem); line-height: 1.2;
  margin: 0 0 1rem; letter-spacing: -0.01em;
}

/* Portada del estudio: manda el logo de Porto Games */
.heroe-estudio {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(440px, 64vh, 700px); padding-block: 4rem;
}
.heroe-estudio-fondo { position: absolute; inset: 0; z-index: -2; }
.heroe-estudio-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.heroe-estudio::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(11, 21, 23, 0.3) 0%, rgba(11, 21, 23, 0.72) 62%, var(--fondo) 100%);
}
.logo-estudio { margin: 0 auto 1.25rem; line-height: 0; }
.logo-estudio img { width: min(78vw, 560px); margin-inline: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.6)); }
.lema {
  margin: 0 0 2.25rem; color: #d8e3df; font-weight: 650;
  font-size: clamp(0.95rem, 0.85rem + 0.45vw, 1.2rem); letter-spacing: 0.22em; text-transform: uppercase;
}
.boton-claro { background: rgba(255, 255, 255, 0.1); color: var(--texto); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: none; }
.boton-claro:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Tarjeta de cada juego */
.juego {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: 1.25rem; border-radius: 20px; background: var(--superficie); border: 1px solid var(--borde);
}
.juego-imagen { display: block; overflow: hidden; border-radius: var(--radio); }
.juego-imagen img { width: 100%; transition: transform 0.3s ease; }
.juego-imagen:hover img { transform: scale(1.03); }
.juego-texto { padding: 0.5rem 1.25rem 0.5rem 0; }
.juego h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; margin: 0 0 0.85rem; }
.juego h3 a { color: var(--texto); text-decoration: none; }
.juego h3 a:hover { color: var(--acento); }
.juego p { margin: 0 0 1.25rem; }
.juego .insignias { margin-bottom: 1.1rem; }

.estudio-texto { font-size: 1.2rem; max-width: 44rem; margin: 0; }

.bloque-imagen a {
  display: block; overflow: hidden; border-radius: var(--radio);
  border: 1px solid rgba(255, 255, 255, 0.08); background: var(--superficie);
}
.bloque-imagen img { transition: transform 0.3s ease; }
.bloque-imagen a:hover img { transform: scale(1.03); }

/* Página de Sky */
.acerca { padding-block: 1.5rem 2rem; }
.bloque {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem; align-items: center; padding-block: 3rem;
}
.bloque:nth-of-type(even) .bloque-imagen { order: -1; }
.bloque-solo { grid-template-columns: minmax(0, 1fr); max-width: 46rem; }
.bloque p { margin: 0 0 1rem; }
.bloque ul { margin: 0; padding-left: 1.25rem; }
.bloque li { margin: 0.45rem 0; }
.bloque li::marker { color: var(--acento); }
.bloque-imagen { margin: 0; }

.contacto-lista {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  max-width: 48rem; margin: 0; padding: 0; list-style: none;
}
.contacto-lista li { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.3rem; }
.contacto-lista span { display: block; color: var(--texto-suave); font-size: 0.92rem; margin-bottom: 0.2rem; }
.contacto-lista a { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }

/* Privacidad */
.legal { max-width: 46rem; padding-block: 4rem 5rem; }
.legal .fecha { color: var(--texto-suave); font-size: 0.92rem; }

/* ---------- Pie ---------- */

.pie { border-top: 1px solid rgba(255, 255, 255, 0.07); padding-block: 2.5rem 3rem; color: var(--texto-suave); font-size: 0.92rem; }
.pie .envoltura { display: grid; gap: 1.5rem; }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pie-marca { display: flex; align-items: center; gap: 1rem; }
.pie-marca img { height: 28px; width: auto; opacity: 0.85; }
.pie p { margin: 0; }
.pie ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.pie a { color: var(--texto-suave); }
.pie a:hover { color: var(--texto); }
.pie a[aria-current="true"] { color: var(--texto); font-weight: 700; text-decoration: none; }

/* ---------- Elegir idioma (raíz) y página que no existe ---------- */

.elige { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem; }
.elige .marca img { height: auto; width: min(70vw, 320px); margin: 0 auto 1.5rem; }
.elige h1 { font-size: 1.1rem; font-weight: 600; color: var(--texto-suave); margin: 0 0 1.5rem; }
.elige ul { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 40rem; }
.elige li a {
  display: block; padding: 0.6rem 1.1rem; border: 1px solid var(--borde); border-radius: 999px;
  color: var(--texto); text-decoration: none; font-weight: 600;
}
.elige li a:hover { border-color: var(--acento); color: var(--acento); }
.no-existe p { margin: 0.35rem 0; }

/* ---------- Pantallas chicas ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .cabecera .envoltura { gap: 0.75rem; min-height: 58px; }
  .marca img { height: 30px; }
  .menu { gap: 0.9rem; }
  .menu > a { font-size: 0.95rem; }
  .idiomas summary { padding: 0.3rem 0.6rem; }
  .idiomas .idioma-nombre { display: none; }
  .idiomas .idioma-codigo { display: inline; }

  .heroe { display: block; min-height: 0; }
  .heroe-fondo { position: relative; }
  .heroe-fondo img { height: auto; aspect-ratio: 1 / 1; }
  .heroe::after {
    inset: 0 0 auto 0; height: 100vw;
    background: linear-gradient(0deg, var(--fondo) 0%, rgba(11, 21, 23, 0) 42%);
  }
  .heroe-texto { padding-block: 0 2.5rem; margin-top: -4.5rem; }
  .logo-sky img { width: min(82%, 330px); }
  .heroe-corta { font-size: 1.05rem; }

  .menu .menu-estudio { display: none; }
  .heroe-estudio { min-height: 400px; padding-block: 3rem; }
  .lema { letter-spacing: 0.16em; margin-bottom: 1.75rem; }

  .seccion { padding-block: 3.25rem; }
  .juego { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1rem; }
  .juego-texto { padding: 0 0.25rem 0.25rem; }
  .estudio-texto { font-size: 1.1rem; }
  .bloque { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2.25rem; }
  .bloque:nth-of-type(even) .bloque-imagen { order: 0; }
  .contacto-lista { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
