:root {
  --verde: #1F4D3A;
  --amarillo: #F2B632;
  --pared: #F3EBDD;
  --ladrillo: #B5532E;
  --tinta: #1C2B22;
  --papel: #FFFDF8;
  --muro: #E3D6BF;
  --gris: #4A5249;
  --linea: #DDD2BE;
  --verde-barra: #2E4A3B;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--pared);
  color: var(--tinta);
  font-family: 'Chivo', system-ui, sans-serif;
}
p { margin: 0; }
a { color: var(--verde); }
a:hover { color: #173A2C; }
:focus-visible { outline: 3px solid var(--ladrillo); outline-offset: 2px; }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Escritorio ---------- */
main {
  flex: 1;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  overflow: hidden;
}
.iconos {
  display: grid;
  grid-template-columns: repeat(2, 104px);
  grid-auto-rows: 120px;
  gap: 8px;
  align-content: start;
  width: 216px;
  max-width: 100%;
}
.icono {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 104px;
  height: 120px;
  padding: 6px 4px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--tinta);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms ease-out;
}
.icono:hover { background: rgba(31, 77, 58, 0.10); color: var(--tinta); }
.icono.arrastrando { z-index: 1000; transition: none; cursor: grabbing; }
.icono-arte { position: relative; display: block; width: 64px; height: 64px; }
.icono-img { display: block; width: 56px; height: 56px; margin: 4px; }
.atajo {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 20px;
  height: 20px;
  background: var(--papel);
  border: 1.5px solid var(--tinta);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icono-nombre {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: var(--pared);
  padding: 2px 4px;
  border-radius: 4px;
}
@media (min-width: 700px) {
  .icono { touch-action: none; }
}
.marco {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 999;
  width: 104px;
  height: 120px;
  border: 2px dashed var(--verde);
  border-radius: 10px;
  background: rgba(31, 77, 58, 0.08);
  pointer-events: none;
}
.marco[hidden] { display: none; }

.fondo {
  flex: 999 1 480px;
  min-width: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.fondo-nombre { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fondo h1 {
  margin: 0;
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--verde);
}
.studio {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ladrillo);
  padding-left: 6px;
}

/* ---------- Ventanas ---------- */
.capa { position: absolute; inset: 0; pointer-events: none; }
.ventana {
  pointer-events: auto;
  position: absolute;
  top: 24px;
  left: 50%;
  max-height: calc(100% - 48px);
  overflow: auto;
  background: var(--papel);
  border: 2px solid var(--tinta);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--tinta);
  display: flex;
  flex-direction: column;
}
.barra {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  background: var(--verde);
  color: var(--pared);
  border-radius: 12px 12px 0 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  font-size: 15px;
  font-weight: 700;
}
.cerrar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--pared);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cuerpo { display: flex; flex-direction: column; gap: 18px; padding: 28px; }
.titulo { margin: 0; font-size: 36px; font-weight: 900; letter-spacing: -0.02em; color: var(--verde); }
.titulo.chico { font-size: 32px; }
.texto { font-size: 17px; line-height: 1.55; }
.texto.grande { font-size: 18px; line-height: 1.5; }
.multilinea { white-space: pre-line; }
.chica { font-size: 14px; line-height: 1.5; color: var(--gris); }
.mini { font-size: 14px; font-weight: 700; }
h3 { margin: 0; font-size: 20px; font-weight: 900; color: var(--verde); }
h3.grande { font-size: 22px; }
h4 { margin: 0; font-size: 20px; font-weight: 900; color: var(--verde); }

.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fila.entre { justify-content: space-between; }
.espacio { flex: 1; }

/* Juegos */
.juego-top { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; }
.portada {
  flex: 1 1 220px;
  min-height: 220px;
  border-radius: 12px;
  background: var(--pared);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info { flex: 999 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.estado {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--amarillo);
  color: var(--tinta);
  padding: 6px 10px;
  border-radius: 999px;
}
.etiquetas { gap: 8px; }
.etiqueta { font-size: 13px; font-weight: 700; padding: 4px 10px; border: 1.5px solid var(--tinta); border-radius: 999px; }
.sino { font-size: 13px; font-weight: 900; padding: 4px 12px; border-radius: 999px; background: var(--muro); color: var(--tinta); }
.sino.si { background: var(--verde); color: var(--pared); }
.bloque { display: flex; flex-direction: column; gap: 18px; padding: 0 24px 24px; }
.franja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--pared);
  font-size: 15px;
  font-weight: 700;
}
.franja span { flex: 1 1 240px; }
.opiniones { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px dashed var(--linea); }
.estrellas { display: flex; gap: 2px; }
.estrella {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.estrella path { fill: var(--papel); stroke: var(--tinta); stroke-width: 1.6; }
.estrella.llena path { fill: var(--amarillo); }
.opinion { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--pared); }
.opinion > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.puntos { font-size: 16px; letter-spacing: 0.1em; color: var(--ladrillo); }

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--tinta);
  background: var(--verde);
  color: var(--pared);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
a.boton, a.boton:hover { color: var(--pared); }
.boton.claro, a.boton.claro, a.boton.claro:hover { background: var(--papel); color: var(--tinta); }
.boton.amarillo, a.boton.amarillo, a.boton.amarillo:hover { background: var(--amarillo); color: var(--tinta); }
.boton.chico { padding: 6px 14px; font-size: 14px; }
.boton.peligro {
  background: transparent;
  color: var(--ladrillo);
  border-color: var(--ladrillo);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
}
.boton:hover { filter: brightness(1.06); }

/* Formularios */
label { font-size: 14px; font-weight: 700; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campos { display: flex; flex-wrap: wrap; gap: 14px; }
.campos > .campo { flex: 1 1 200px; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--tinta);
  border-radius: 10px;
  background: var(--papel);
  color: var(--tinta);
  width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--verde); }
.temas { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; column-gap: 18px; }
.temas legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.aviso { font-size: 15px; font-weight: 700; color: var(--verde); }
.aviso.error { color: var(--ladrillo); }
.edicion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 24px 24px;
  padding: 20px;
  border: 2px dashed var(--verde);
  border-radius: 12px;
  background: var(--pared);
}
.edicion.sin-margen { margin: 0; }

/* Novedades */
.tarjeta { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 12px; background: var(--pared); }
.tarjeta p { font-size: 16px; line-height: 1.5; }
.tarjeta p.chica { font-size: 14px; }
.noticias { display: flex; flex-direction: column; gap: 12px; }
.noticia { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 2px solid var(--tinta); border-radius: 12px; }
.noticia p { font-size: 16px; line-height: 1.55; }
.fecha { font-size: 13px; font-weight: 700; color: var(--gris); }

/* Quiénes somos */
.personas { display: flex; flex-wrap: wrap; gap: 16px; }
.persona { flex: 1 1 280px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 2px solid var(--tinta); border-radius: 12px; }
.persona > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.persona strong { font-size: 18px; font-weight: 900; }
.persona p { font-size: 15px; line-height: 1.5; }
.rol { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ladrillo); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; }
.avatar.amarillo { background: var(--amarillo); color: var(--tinta); }
.avatar.verde { background: var(--verde); color: var(--pared); }

/* Contacto */
.datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: center; margin: 0; }
.datos dt { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); }
.datos dd { margin: 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Barra de tareas ---------- */
.tareas { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; background: var(--tinta); color: var(--pared); }
.inicio {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px 4px 6px;
  border-radius: 10px;
  border: 0;
  background: var(--verde);
  color: var(--pared);
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.chip { min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 0; background: var(--verde-barra); color: var(--pared); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.chip.activa { background: var(--pared); color: var(--tinta); }
.modo { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--amarillo); color: var(--tinta); }
.salir { min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 2px solid var(--pared); background: transparent; color: var(--pared); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.candado { width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.reloj { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 6px; }

/* ---------- Celular ---------- */
@media (max-width: 699px) {
  main { padding: 16px; gap: 16px; }
  .iconos { width: 100%; grid-template-columns: repeat(auto-fill, 104px); justify-content: center; }
  .fondo { min-height: 260px; }
  .fondo img { width: 140px; height: 140px; }
  .fondo h1 { font-size: 56px; }
  .ventana { position: fixed; top: 12px; max-height: calc(100dvh - 100px); }
  .cuerpo { padding: 20px; }
  .juego-top { padding: 16px; }
  .bloque { padding: 0 16px 16px; }
  .edicion { margin: 0 16px 16px; }
  .titulo { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .icono { transition: none; }
}
