@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Space+Mono:wght@400;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #1b1117;
  color: #f4ece0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  padding: 24px 0;
}

/* ===================== CUARTO (canvas fijo) ===================== */
.cuarto {
  position: relative;
  width: 1400px;
  height: 896px;
  flex-shrink: 0;
  overflow: hidden;
  background-image: url('pared_de_fondo.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 42px 84px rgba(0, 0, 0, 0.6);
}

/* piso */
.piso {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  background:
    repeating-linear-gradient(
      90deg,
      #3a2419 0px,
      #3a2419 77px,
      #241713 78px
    ),
    #241713;
  box-shadow: inset 0 20px 31px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* zócalo entre pared y piso */
.zocalo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 210px;
  height: 11px;
  background: linear-gradient(180deg, #c9a667, #3a2419);
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* elemento genérico posicionado en px dentro del cuarto */
.obj {
  position: absolute;
  z-index: 2;
}

.obj img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 11px 14px rgba(0, 0, 0, 0.5));
}

/* ---- decorativos (no clickeables) ---- */
.ventana  { top: 31px;  left: 59px;  width: 210px; z-index: 1; }
.cuadro-1 { top: 22px;  left: 381px; width: 154px; z-index: 1; }
.cuadro-2 { top: 17px;  left: 633px; width: 146px; z-index: 1; }
.cuadro-3 { top: 22px;  left: 882px; width: 146px; z-index: 1; }
.silla    { top: 448px; left: 28px;  width: 231px; z-index: 3; }

/* ---- escritorio ---- */
.escritorio { top: 560px; left: 420px; width: 616px; z-index: 2; }

/* ---- objetos sobre el escritorio ---- */
.telefono   { top: 462px; left: 462px; width: 140px; z-index: 4; }
.tocadiscos { top: 431px; left: 630px; width: 203px; z-index: 4; }
.claqueta   { top: 361px; left: 893px; width: 129px;  z-index: 5; }
.camara     { top: 473px; left: 1016px; width: 147px; z-index: 4; }

/* ---- libros en el piso ---- */
.libros { top: 669px; left: 210px; width: 161px; z-index: 3; }

/* ---- interacción de los elementos clickeables ---- */
.obj-clic {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.obj-clic img { transition: filter 0.2s ease; }

.obj-clic:hover,
.obj-clic:focus-visible {
  transform: translateY(-6px) scale(1.05);
}

.obj-clic:hover img,
.obj-clic:focus-visible img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(233, 209, 156, 0.65));
}

.obj-clic:focus-visible {
  outline: 3px solid #e9d19c;
  outline-offset: 6px;
  border-radius: 8px;
}

/* ---- responsive: si la pantalla es angosta, se puede desplazar horizontal ---- */
@media (max-width: 1456px) {
  body { justify-content: flex-start; padding: 0; }
  .cuarto { margin: 0; }
}

/* ===================== SUBPÁGINAS ===================== */
.contenido {
  max-width: 640px;
  margin: 0 auto;
  padding: 12vh 6vw 8vh;
  min-height: 100vh;
  background: linear-gradient(180deg, #3a1f38 0%, #241322 100%);
}

.contenido h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #f4ece0;
  margin-bottom: 0.2em;
}

.contenido .eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9a667;
}

.contenido p {
  font-size: 1.15rem;
  line-height: 1.7;
}

.volver {
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #241713;
  background: #c9a667;
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.volver:hover { background: #e9d19c; }