html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}


/* 2. CONTENEDOR PRINCIPAL: Permite el scroll de todas las secciones juntas */
.room-detail-view {
  width: 100%;
  height: auto;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
  padding-bottom: 20px;
}

#room-detail-habitacion {
  background-image: url('../img/Mobile/5Habitacion/Background_2.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100%;
}

.editorial-section,
.branding-section,
.packaging-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background-color: transparent;
  display: block;
  overflow: visible !important;
}

/* Contenedor Principal */
.editorial-section {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  /* Sin padding general para que la estantería llegue borde a borde */
  box-sizing: border-box;
  overflow: hidden;
  background-color: transparent;
  /* Color base por si el PNG tarda en cargar */
}

/* Capa del Fondo PNG */
.editorial-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 1. Lámpara Pegada Arriba */
.lamp-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  /* Pegada exactamente al borde superior */
}

.editorial-lamp-img {
  width: 130px !important;
  /* Ancho proporcional según el mockup */
  height: auto;
  display: block;
}

/* 2. Encabezado y Cuadro/Espejo */
.editorial-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 15px;
  /* Padding interno para no pegar el texto a las paredes */
  margin-top: 5px;
  margin-bottom: 10px;
}

.editorial-info {
  flex: 1;
}

.editorial-info h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #1a1a1a;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.editorial-info .subtitle {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 6px 0 2px 0;
  color: #222;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.editorial-info .description {
  font-size: 0.9rem;
  margin: 0;
  color: #444;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Ajuste del Espejo/Cuadro */
.frame-container {
  width: 85px !important;
  /* Más grande según el mockup */
  flex-shrink: 0;
  margin-top: -10px;
  /* Eleva levemente el espejo hacia la lámpara */
}

.editorial-frame-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 3. Estantería de Ancho Completo */
.bookshelf-container {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Ocupa el 100% de borde a borde */
  margin-top: 5px;
}

.bookshelf-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hotspots */
.hotspots-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hotspot-btn {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #c62828;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.hotspot-btn:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

/* Posicionamiento de Puntos sobre los Libros */
.hp-stories {
  top: 73%;
  left: 15%;
}

.hp-poetry {
  top: 88%;
  left: 24%;
}

.hp-feminine {
  top: 52%;
  left: 36%;
}

.hp-design {
  top: 73%;
  left: 42%;
}

.hp-journal {
  top: 48%;
  left: 49%;
}

.hp-hello {
  top: 58%;
  left: 56%;
}


/* Overlay de fondo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 15px;
  box-sizing: border-box;
}

.modal-overlay.oculto {
  display: none !important;
}

/* Tarjeta principal estilo Fotografía */
.modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  animation: modalPop 0.2s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Encabezado: Título + Punto Rojo */
.modal-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px 20px;
}

.modal-header-custom h2 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000000;
  margin: 0;
}

/* Botón Punto Rojo de Cierre */
.modal-close-red {
  width: 20px;
  height: 20px;
  background-color: #e50914;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.modal-close-red:hover {
  transform: scale(1.2);
}

/* Visor de Imagen con Flechas */
.modal-gallery-container {
  position: relative;
  width: 100%;
  height: 230px;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-gallery-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Botones de navegación (Flechas amarillas/redondas) */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-color: #ffd600;
  border: 1.5px solid #000000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.15);
}

.prev-arrow {
  left: 12px;
}

.next-arrow {
  right: 12px;
}

/* Cuerpo de texto con Ficha Técnica */
.modal-body-custom {
  padding: 18px 20px 22px 20px;
  color: #1a1a1a;
}

.modal-body-custom h3 {
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  color: #000000;
  text-transform: uppercase;
}

.modal-spec {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 8px 0;
  color: #222222;
}

.modal-spec strong {
  color: #000000;
}

/* Aquí es la sección de Branding */


/* Sección BRANDING */
.branding-section {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #d9cec1;
  /* Mismo fondo cálido de la pared */
  overflow: visible !important;
}

/* Encabezado Centrado */
.branding-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 15px 15px 10px 15px;
}

.branding-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.branding-header .subtitle {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 4px 0 2px 0;
  color: #222;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.branding-header .description {
  font-size: 0.9rem;
  margin: 0;
  color: #444;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Contenedor principal ajustado a la altura de la cortina */
.branding-content {
  position: relative;
  width: 100%;
  /* Define la altura exacta basada en la imagen para eliminar espacio sobrante */
  display: block
}

/* Imagen de la Cortina (Fijada borde a borde a la derecha) */
.curtain-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Contenedor de las Tarjetas Azules (Superpuesto a la izquierda) */
.branding-cards-container {
  position: absolute;
  top: 15%;
  /* Desplaza los cuadros abajo del tubo de madera 17% */
  left: 4%;
  width: 52%;
  height: 78%;
  /* Ocupa el área vertical útil de la ventana */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Distribución uniforme arriba y abajo */
  z-index: 2;
  box-sizing: border-box;
}

/* Tarjetas Azules de Proyectos */
.branding-card {
  position: relative;
  width: 100%;
  height: 46%;
  /* Incrementa la altura para llenar la pared proporcionalmente */
  background-color: #8ecae6;
  border: 2px solid #5fa8d3;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
}

.branding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}



.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Punto Rojo Centrado */
.hp-branding {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* ==========================================
   SECCIÓN PACKAGING (ARMARIO)
   ========================================== */
.packaging-section {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #d9cec1;
  padding-bottom: 20px;
}

.packaging-header {
  text-align: center;
  padding: 20px 15px 10px 15px;
}

.packaging-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: 1px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.packaging-header .subtitle {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 4px 0 2px 0;
  color: #222;
  text-transform: uppercase;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.packaging-header .description {
  font-size: 0.9rem;
  margin: 0;
  color: #444;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Contenedor e Imagen del Armario */
.armario-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.armario-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Botón Óvalo Rojo OPEN en las manijas */
.open-btn-armario {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #c82323;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.875rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.open-btn-armario:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: #e62828;
}

/* ==========================================
   MODAL TIPO LANDING PAGE
   ========================================== */
.landing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-modal-overlay.oculto {
  display: none;
}

/* Contenedor Full-Height estilo Mobile Screen */
.landing-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 92vh;
  background-color: #f2ede4;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Botón de cierre en la esquina superior derecha */
.landing-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
}

/* Encabezado Landing */
.landing-header {
  padding: 35px 20px 15px 20px;
  text-align: center;
  background-color: #f2ede4;
  border-bottom: 1px solid #e0d8cc;
}

.landing-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* Cuerpo con Scroll Vertical */
.landing-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Bloque individual de Proyecto */
.landing-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Placeholder para los cuadros negros del wireframe */
.block-media-placeholder {
  width: 100%;
  height: 180px;
  background-color: #1e1e1e;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.875rem;
  letter-spacing: 1px;
  overflow: hidden;
}

.block-media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Textos informativos debajo del cuadro */
.block-info h3 {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: #111;
  font-weight: bold;
}

.block-info p {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   SECCIÓN ARTE TRADICIONAL (CAJONERA)
   ========================================== */

.arte-tradicional-section {
  position: relative;
  width: 100%;
  padding: 30px 0 0 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Encabezado */
.arte-header {
  text-align: center;
  margin-bottom: 12px;
  padding: 0 20px;
}

.arte-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #000000;
  margin: 0 0 6px 0;
  letter-spacing: 1px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.arte-subtitle {
  font-size: 0.95rem;
  font-weight: bold;
  color: #222222;
  margin: 0 0 2px 0;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.arte-desc {
  font-size: 0.9rem;
  color: #555555;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Texto indicativo */
.arte-instruction {
  font-size: 0.875rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
  margin: 15px 0 8px 0;
  text-transform: uppercase;
  padding: 0 20px;
}

/* Contenedor de la cajonera y repisa inferior */
.cajonera-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.cajonera-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hotspot (Punto Rojo interactivo) sobre el cajón */
.hp-cajon {
  position: absolute;
  top: 48%;
  /* Ubicado exactamente en el cajón central */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background-color: #d32f2f;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hp-cajon:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #b71c1c;
}


/* FOOTER DE SECCIÓN HABITACIÓN */
.habitacion-footer {
  width: 100%;
  background-color: #1a1918;
  color: #d1c7bd;
  text-align: center;
  padding: 24px 15px;
  margin-top: 40px;
  border-top: 2px solid #3a3530;
  box-sizing: border-box;
}

.habitacion-footer p {
  margin: 4px 0;
  font-size: 0.75rem;
}

.habitacion-footer .footer-subtext {
  font-size: 0.65rem;
  color: #8c8278;
}


/* ==========================================
   ESPACIADO Y ALINEACIÓN DEL FOOTER
   ========================================== */

/* 1. Aseguramos que la cajonera tenga espacio inferior */
.cajonera-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 25px;
  /* Crea aire entre la repisa y el footer */
}

/* 2. Formato del contenedor del Footer */
.habitacion-footer-bg {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 85px 0;
  border-radius: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

/* Imagen de fondo del Footer */
.footer-bg-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  border-radius: 0 !important;
}

/* Texto dentro del Footer */
.footer-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  box-sizing: border-box;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 1.5px;
  margin: 0;
  text-transform: uppercase;
}