/* ==========================================================================
   VARIABLES Y FUENTES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800;900&display=swap');

.theme-cat {
  --bg-color: #f2d7b6;
  --card-bg: #b41e3d;
  --input-bg: #FFFFFF;
  --btn-active: #39b54a;
  --btn-disabled: #568b5e;
  --text-main: #FFFFFF;
  --tab-active-bg: #A82344;
  --tab-inactive-bg: #B57988;
  --arrow-color: #b41e3d;
}

.theme-ghost {
  --bg-color: #FFD4DC;
  --card-bg: #434456;
  --input-bg: #FFD6DB;
  --btn-active: #FF5A5A;
  --btn-disabled: #E16868;
  --text-main: #FFFFFF;
  --tab-active-bg: #A82344;
  --tab-inactive-bg: #B57988;
  --arrow-color: #434456;
}

:root {
  --app-width: 412px;
  --app-height: 917px;
  --loading-bar-bg: #b41e3d;
  --header-height: 135px;
}

/* ==========================================================================
   RESET & LAYOUT GENERAL
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body,
button,
input,
select,
textarea,
optgroup,
option {
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* JUSTIFICACIÓN, CONTROL DE TEXTO Y PREVENCIÓN DE DESBORDAMIENTOS GLOBAL */
*, *::before, *::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p, span, a, label, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

p {
  line-height: 1.45;
  letter-spacing: 0.2px;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  letter-spacing: 0.4px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}

body {
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden !important;
}

.app-container {
  width: 100%;
  max-width: var(--app-width, 412px);
  height: 100vh;
  max-height: 100vh;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

/* Control de visibilidad de pantallas */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none !important;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.screen.active {
  display: flex !important;
  opacity: 1;
  z-index: 2;
}

#screen-loading,
#screen-welcome {
  overflow: hidden;
}

.oculto {
  display: none !important;
}

/* ==========================================================================
   1. PANTALLA DE CARGA
   ========================================================================== */

#screen-loading {
  background-color: #e0bc90;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.logo-placeholder {
  width: 200px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.LOGO_BG1 {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.progress-bar {
  width: 80%;
  height: 30px;
  background-color: #D3E4EE;
  border-radius: 9px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background-color: var(--loading-bar-bg);
  color: #e0bc90;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding-left: 10px;
  animation: llenarBarra 2s forwards ease-in-out;
}

@keyframes llenarBarra {
  to {
    width: 100%;
  }
}

/* ==========================================================================
   2. PANTALLA FORMULARIO
   ========================================================================== */

.character-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.character-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-display {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-height: 0;
  z-index: 10;
  padding-bottom: 300px;
}

.tab-container {
  margin-bottom: 20px;
  display: flex;
  gap: 50px;
}

.tab-btn {
  width: 120px;
  height: 30px;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #FFFFFF;
  cursor: pointer;
  background-color: var(--tab-inactive-bg);
}

.tab-btn.active {
  background-color: var(--tab-active-bg);
}

.form-card {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--card-bg);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 35px 30px 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.4s ease;
  width: 100%;
  height: 34%;
  z-index: 50;
  overflow: visible !important;
}

.character-type-title {
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 22px;
}

#onboarding-form {
  width: 100%;
  overflow: visible !important;
}

.input-group {
  margin-bottom: 14px;
  position: relative;
  overflow: visible !important;
}

.input-group input {
  width: 100%;
  height: 40px;
  background-color: var(--input-bg);
  border: none;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  outline: none;
}

.input-group input::placeholder {
  color: #555555;
  font-size: 1rem;
  font-weight: 500;
}

/* Mensaje de error de validación del nombre */
.input-error-msg {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #b41c3c;
  margin-top: 4px;
  padding-left: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.input-error-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desplegable Personalizado */
.custom-select-container {
  position: relative;
  width: 100%;
  overflow: visible !important;
}

.select-trigger {
  width: 100%;
  height: 40px;
  background-color: var(--input-bg);
  border-radius: 10px;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  user-select: none;
}

.select-trigger.selected {
  color: #1a1a1a;
  font-weight: 500;
}

.select-arrow {
  font-size: 0.875rem;
  color: var(--arrow-color);
  transform: rotate(270deg);
  transition: transform 0.2s ease;
}

.custom-select-container.open .select-arrow {
  transform: rotate(90deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 3px);
  bottom: auto;
  left: 0;
  width: 100%;
  background-color: var(--input-bg);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999 !important;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
  max-height: 160px;
  overflow-y: auto;
}

.custom-select-container.open .select-options {
  display: flex;
}

.option-item {
  padding: 12px 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.2s;
}

.option-item:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.option-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-submit {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background-color: var(--btn-active);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.btn-submit:disabled {
  background-color: var(--btn-disabled);
  cursor: not-allowed;
  opacity: 0.8;
}

.form-notice {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 15px;
  text-align: center;
}

/* ==========================================================================
   3. PANTALLA DE BIENVENIDA
   ========================================================================== */

#screen-welcome {
  position: relative;
}

.welcome-title {
  font-size: 1.8rem;
  color: #b41c3c;
  position: absolute;
  top: 90px;
  right: 40px;
  text-align: right;
  font-weight: bold;
  z-index: 10;
  white-space: pre-line;
}

.welcome-background-character {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

.character-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. PANTALLA HOME Y CABECERA
   ========================================================================== */

#screen-home {
  background-color: var(--bg-color);
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  padding-top: var(--header-height);
}

.home-header {
  background-color: var(--card-bg);
  width: 100%;
  max-width: var(--app-width, 412px);
  display: flex;
  flex-direction: column;
  transition: background-color 0.1s ease;
  /* Fijo al tope — misma técnica que el bottom-nav */
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  box-sizing: border-box;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #ffd4dc;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info h3 {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.5px;
}

.user-info span {
  color: #FFFFFF;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.header-location {
  display: flex;
  flex-direction: column;
  text-align: right;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.home-tabs {
  display: flex;
  width: 100%;
  background-color: #ffd4dc;
  border-top: 2px solid var(--card-bg);
  border-bottom: 2px solid var(--card-bg);
}

.tab-home-item {
  flex: 1;
  padding: 12px 0;
  border: none;
  background-color: transparent;
  color: #000000;
  font-family: inherit;
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
  text-align: center;
}

.tab-home-item:first-child {
  border-right: 2px solid var(--card-bg);
}

.tab-home-item.active {
  font-weight: bold;
}

/* ==========================================================================
   5. CONTENIDO HOME Y CASA INTERACTIVA
   ========================================================================== */

.home-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: transparent;
  margin: 0;
  padding: 0;
}

.room-section {
  width: 100%;
  position: relative;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), filter 0.35s ease;
  cursor: pointer;
}

.room-section:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
  z-index: 5;
}

.room-living {
  aspect-ratio: 480 / 1068;
  background-image: url('../img/Mobile/2Home/Sala_01.png');
}

.room-bedroom {
  aspect-ratio: 452 / 359;
  background-image: url('../img/Mobile/2Home/Habitacion_01.png');
}

.room-studio {
  aspect-ratio: 452 / 359;
  background-image: url('../img/Mobile/2Home/Estudio_01.png');
}

.room-kitchen {
  aspect-ratio: 452 / 359;
  background-image: url('../img/Mobile/2Home/Cocina_01.png');
}

.room-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.featured-banner {
  text-align: center;
  color: #FFFFFF;
  padding-top: 15px;
  width: 100%;
}

.banner-section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Cuadro colgado en la pared */
.painting-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 20px 10px;
  pointer-events: none;
}

/* Gancho metálico */
.painting-hook {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, #c8a96e, #8b6914);
  border-radius: 1px;
  position: relative;
  margin-bottom: -2px;
  z-index: 2;
}

.painting-hook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border: 2px solid #c8a96e;
  border-radius: 50% 50% 0 0;
  border-bottom: none;
}

/* Marco de madera */
.painting-frame {
  background: linear-gradient(135deg, #d2a988 0%, #b08060 25%, #d2a988 50%, #96653d 75%, #d2a988 100%);
  padding: 10px;
  border-radius: 3px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
  position: relative;
  width: 100%;
  max-width: 340px;
}

.painting-frame::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

/* Interior del cuadro (paspartout oscuro) */
.painting-inner {
  background-color: #1a1a1a;
  padding: 5px;
  border-radius: 1px;
  overflow: hidden;
  line-height: 0;
}

/* Imagen dentro del cuadro */
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
}

.banner-info {
  padding: 0 20px 15px 20px;
}

.banner-title {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.banner-description {
  font-size: 1rem;
  line-height: 1.3;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.room-header {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: #FFFFFF;
  padding: 20px 15px 10px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.room-living .room-header {
  position: relative;
  bottom: auto;
  margin-top: 48px;
  padding: 10px 20px;
  background: none;
  opacity: 1;
  transform: none;
}

.room-section:hover .room-header {
  opacity: 1;
  transform: translateY(0);
}

.room-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
}

.room-subtitle {
  font-size: 1rem;
  line-height: 1.3;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
}

/* Hotspots */
.room-stage-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.screen-hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.screen-hotspot:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.03);
}

.screen-hotspot.hotspot-tv {
  position: absolute;

  /* Posicionamiento para abarcar toda la escena de muebles */
  top: 55%;
  /* Sube para cubrir los cuadros y lámparas */
  left: 5%;
  /* Se extiende hacia la izquierda (rascador) */
  width: 90%;
  /* Abarca el 90% del ancho (del rascador al sillón) */
  height: 40%;
  /* Altura que cubre desde cuadros hasta la base del piso */

  cursor: pointer;
  z-index: 10;
  /* Asegura que quede por encima para recibir el clic */
}


/* Footers y Navegación Fija */
.site-footer,
.home-footer,
.habitacion-footer-bg {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px 0 85px 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Asegurar cobertura de borde a borde en contenedores con padding interno */
.sala-inner-container .site-footer,
.room-detail-view .site-footer {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 10px !important;
}

.info-content .site-footer {
  width: calc(100% + 30px) !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
  margin-top: 10px !important;
}

.site-footer .footer-bg-img,
.home-footer .footer-bg-img,
.habitacion-footer-bg .footer-bg-img,
.footer-bg-img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  z-index: 1 !important;
  border-radius: 0 !important;
}

.site-footer .footer-inner,
.home-footer .footer-inner,
.habitacion-footer-bg .footer-inner {
  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;
  gap: 5px;
  padding: 15px 15px 35px 15px;
  box-sizing: border-box;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.site-footer .footer-title {
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
}

.site-footer .footer-tagline {
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0.5px;
  margin: 0;
}

.site-footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.site-footer .footer-link {
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-link:hover {
  color: #f0f0f0;
  transform: translateY(-1px);
}

.site-footer .footer-dot {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.site-footer .footer-divider {
  width: 80%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 2px 0;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: center;
}

.site-footer .footer-copy {
  font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ==========================================================================
   MENÚ INFERIOR (ESTILOS LIMPIOS SIN !IMPORTANT)
   ========================================================================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width, 412px);
  height: 70px;
  background-color: var(--card-bg, #b41e3d);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.bottom-nav .nav-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Círculos base */
.bottom-nav .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.bottom-nav .nav-item:hover .icon-circle {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Colores de fondo individuales (Aumentando la especificidad para sobreescribir) */
.bottom-nav .icon-circle.icon-1,
.bottom-nav .icon-circle.icon-bg-1 {
  background-color: #83856b;
}

/* Gris oliva */

.bottom-nav .icon-circle.icon-2,
.bottom-nav .icon-circle.icon-bg-2 {
  background-color: #e5ded6;
}

/* Beige / Crema */

.bottom-nav .icon-circle.icon-3,
.bottom-nav .icon-circle.icon-bg-3 {
  background-color: #8c645e;
}

/* Marrón / Terracota */

.bottom-nav .icon-circle.icon-4,
.bottom-nav .icon-circle.icon-bg-4 {
  background-color: #ffd4dc;
}

/* Rosa */

/* Ajuste de las imágenes/SVG internas */
.bottom-nav .icon-circle img,
.bottom-nav .nav-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

/* Logo central */
.bottom-nav .nav-brand-center {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #000000;
  background-color: #fbd9ad;
  cursor: pointer;
}

.bottom-nav .brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Control de Pestañas */
.tab-pane {
  display: block;
}

.tab-pane.oculto {
  display: none !important;
}

/* ==========================================================================
   6. PESTAÑA INFORMACIÓN (CARTA COLECCIONABLE + 2 BLOQUES)
   ========================================================================== */

.info-content {
  background-color: #fbe3e7;
  padding: 30px 16px 120px 16px;
  text-align: center;
  color: #111111;
}

/* CARTA COLECCIONABLE HERO */
.character-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 24px auto;
  background-color: #a81c38;
  border: 4px solid #7a1227;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.card-hp {
  font-size: 0.875rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
}

.card-image-frame {
  width: 100%;
  height: 230px;
  background-color: #fbe3e7;
  border-radius: 12px;
  border: 2px solid #ffffff;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.card-avatar-img {
  width: 100%;
  height: 210%;
  object-fit: contain;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  color: #111111;
  margin-bottom: 10px;
}

.card-ability {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ability-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 2px solid #a81c38;
  background-color: #fbe3e7;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.ability-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  border-radius: 50%;
}

.ability-info {
  flex: 1;
}

.ability-title {
  font-size: 0.875rem;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: #a81c38;
}

.ability-desc {
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
  color: #444444;
}

.ability-power {
  font-size: 0.875rem;
  font-weight: 900;
  color: #111111;
  padding-left: 4px;
}

.card-footer-badge {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-top: 15px;
  margin-bottom: 6px;
  color: #111111;
}

.info-subtitle {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #555555;
  margin-bottom: 28px;
}

.section-badge-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a81c38;
  margin-bottom: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   BLOQUE 1: ÁREAS DE ESPECIALIZACIÓN (GRILLA 2x2)
   -------------------------------------------------------------------------- */

.info-skills-section {
  margin-bottom: 35px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.tool-stat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #fbe3e7;
  color: #a81c38;
  font-size: 0.875rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.tool-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 1.25rem;
}

/* Colores de las esferas para las especialidades */
.blender-color {
  background-color: #ffe5d9;
}

.ai-color {
  background-color: #330000;
  color: #ff9a00;
}

.ps-color {
  background-color: #e2f7e2;
}

.ae-color {
  background-color: #00005b;
  color: #9999ff;
}

.tool-name {
  font-size: 1rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 3px;
  line-height: 1.2;
}

.tool-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666666;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   BLOQUE 2: TOOLSET / SOFTWARE STACK (MICRO-CHIPS)
   -------------------------------------------------------------------------- */

.info-tools-section {
  max-width: 340px;
  margin: 0 auto 35px auto;
}

.toolset-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.toolset-intro {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 14px;
  font-weight: 500;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #f4eff5;
  color: #4a2c3d;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid #e5d8e6;
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: default;
}

.tool-chip:hover {
  transform: translateY(-2px);
  background-color: #e8dbe9;
}

/* Redes Sociales Sueltas (Con Imágenes) */
.info-social-standalone {
  max-width: 340px;
  margin: 0 auto 35px auto;
  text-align: center;
}

.social-icons-row-standalone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* Botón contenedor circular */
.social-btn-flat {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  /* Mantiene la imagen dentro del círculo */
}

.social-btn-flat:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 15px rgba(168, 28, 56, 0.25);
}

/* Ajuste de la imagen interna */
.social-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}


/* HABITACIÓN*/
.screen-hotspot.hotspot-frames {
  position: absolute;
  top: 25%;
  left: 10%;
  width: 80%;
  height: 200px;
  cursor: pointer;
  z-index: 20;
  /* background: rgba(255, 0, 0, 0.2); Descomenta para ubicar la zona con color */
}

.room-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.room-clickable:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   ANIMACIÓN Y EFECTOS PARA EL BOTÓN CENTRAL HOME
   ========================================================================== */

.nav-brand-center {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  user-select: none;
}

/* Efecto al pasar el cursor (Hover): Efecto de elevación suave */
.nav-brand-center:hover {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.3));
}

/* Efecto al hacer clic (Active): Rebote táctil */
.nav-brand-center:active {
  transform: translateY(0) scale(0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   CORRECCIÓN DE CAPAS Y CLICS EN MENÚ INFERIOR
   ========================================================================== */

/* 1. Elevar la especificidad y capa del menú para que SIEMPRE reciba clics */
body .app-container .bottom-nav,
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-width, 412px);
  height: 70px;
  background-color: var(--card-bg, #b41e3d);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;

  /* Garantizar que el menú quede en la capa más alta de la aplicación */
  z-index: 99999;
  pointer-events: auto;
}

/* 2. Mantener la sección de información por debajo de la barra */
.info-content {
  background-color: #fbe3e7;
  padding: 30px 16px 140px 16px;
  /* Espacio extra para scroll libre */
  text-align: center;
  color: #111111;

  /* Limitar el nivel de capa de la pestaña de información */
  position: relative;
  z-index: 1;
}

/* 3. Asegurar que las pestañas contenedoras no superen al menú */
.tab-pane {
  display: block;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   INICIO RESPONSIVE TABLET (MIN-WITH: 768PX)
   ========================================================================== 

   @media (min-width: 768px) {

  /* 1. Liberar el contenedor principal para que ocupe el ancho de tablet 
  body, 
  .app-container, 
  .main-container,
  #trabajos-content {
    max-width: 768px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* 2. ENCABEZADO SUPERIOR (Header) 
  .header-container,
  header {
    max-width: 768px;
    padding: 12px 24px; /* Damos más espacio interno 
  }

  /* Círculo del Avatar 
  .avatar-img, 
  .profile-pic {
    width: 48px;  /* Crece un poco para tablet 
    height: 48px;
  }

  /* Nombre y Rol (IROH / Reclutador) 
  .user-name, 
  .profile-title {
    font-size: 1.1rem;
  }

  .user-role, 
  .profile-subtitle {
    font-size: 0.85rem;
  }

  /* 3. PESTAÑAS DE NAVEGACIÓN (Trabajos / Información) 
  .tab-button, 
  .nav-tab {
    font-size: 1.1rem; /* Texto de pestañas más legible 
    padding: 12px 0;*/