/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-image: url("images/background.gif");
    background-color: #f0f0f0;
    cursor: url("images/habbocursor.ico"), default;
    color: #333;
}

/* CABECERA */
.site-header {
    text-align: center;
    padding: 20px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    border: 2px solid black;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.social-links img {
    height: 50px;
    width: 50px;
    transition: transform 0.2s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* NAVEGACIÓN (Menú Desplegable Modernizado) */
.main-nav {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: #000;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-weight: bold;
    font-size: 14px;
}

.nav-menu a:hover {
    background-color: #434343;
}

/* Submenús */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

.dropdown-menu a {
    padding: 10px 15px;
    font-size: 13px;
}

/* CONTENEDOR PRINCIPAL Y VISTA INICIO */
.content-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
    border-radius: 10px;
    min-height: 400px;
}

.welcome-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.divider {
    border: none;
    height: 4px;
    background-color: #000;
    margin: 20px 0;
}

.banner-images, .ads-container {
    text-align: center;
    margin: 20px 0;
}
/* Control estricto del banner publicitario */
.ads-container img {
    max-width: 100%; /* Nunca será más ancho que la caja blanca */
    height: auto;    /* Mantiene la proporción sin aplastarse */
    max-height: 150px; /* Le ponemos un tope de altura para que quede como un banner clásico */
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Un toque de sombrita elegante */
}

/* PIE DE PÁGINA */
.site-footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(255,255,255,0.8);
    border-top: 2px solid #000;
    margin-top: 40px;
}
/* =========================================
   ESTILOS ESPECÍFICOS: CHANGELOG
   ========================================= */

.changelog-container {
  max-width: 800px;
  margin: 0 auto;
}

.wrap-content {
  margin: 0 auto;
}

article.changelog {
  padding: 10px;
  text-align: left; /* Aseguramos que el texto esté alineado a la izquierda */
}

article.changelog section.version {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

article.changelog section.version:last-child {
  border-bottom: none;
}

article.changelog section.version .header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

article.changelog section.version .header .version-num {
  font-size: 1.5rem;
  color: #333;
}

article.changelog section.version .header .datetime {
  margin: 0 0 0 15px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}

article.changelog section.version .label {
  display: inline-flex;
  padding: 4px 10px;
  margin: 10px 0;
  border: 1px solid transparent;
  color: white;
  background: #bababa;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

article.changelog section.version .label.-s {
  padding: 2px 8px;
  font-size: 10pt;
}

article.changelog section.version .label.-m {
  padding: 4px 12px;
  font-size: 12pt;
}

article.changelog section.version .label.-blue {
  background: #2196F3;
}

article.changelog section.version .label.-green {
  background: #4CAF50;
}

article.changelog section.version ul {
  list-style-position: inside;
  list-style-type: none;
}

article.changelog section.version ul li {
  margin: 8px 0;
  color: #444;
  line-height: 1.5;
}
/* =========================================
   ESTILOS ESPECÍFICOS: COMANDOS
   ========================================= */

.comandos-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 10px;
}

.comandos-header {
    text-align: center;
    margin-bottom: 30px;
}

.comandos-grid {
    display: grid;
    /* Esto hace que las tarjetas se adapten solas. Si no caben 2 o 3, se ponen debajo */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.comandos-card {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15); /* Sombra estilo retro-moderno */
}

.comandos-card h3 {
    color: #990000; /* El color #900 que tenías originalmente */
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.comandos-card ul {
    list-style: none;
    padding: 0;
}

.comandos-card li {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
    color: #444;
}

/* Destacamos el comando en sí visualmente */
.comandos-card li b {
    color: #000;
    background-color: #f4f4f4;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #ddd;
    display: inline-block;
    margin-right: 5px;
}
/* =========================================
   ESTILOS ESPECÍFICOS: EDITOR DE SALAS
   ========================================= */

.editor-salas-container {
    position: relative;
    width: 100%;
    min-height: 650px;
    background-color: #000;
    color: #FFF;
    font-family: Verdana, sans-serif;
    font-size: 8pt;
    border: 2px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

.square {
    position: absolute;
}

.editor-preview {
    position: absolute; 
    top: 20px; 
    left: 200px; 
    background-color: #000;
}

.editor-mapimg {
    position: absolute; 
    top: 20px; 
    left: 200px; 
    border: 1px dashed #333;
}

.editor-controls {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 180px; 
    height: 100%;
    background-color: #111; 
    border-right: 1px solid #333; 
    overflow: hidden;
    transition: width 0.3s ease;
}

.controls-inner {
    padding: 10px; 
    width: 180px;
}

.editor-input {
    width: 25px;
    background: #222;
    color: white;
    border: 1px solid #555;
    text-align: center;
}

.editor-btn {
    background: #333;
    color: white;
    border: 1px solid #666;
    padding: 2px 5px;
    cursor: pointer;
}

.editor-btn:hover {
    background: #555;
}

.editor-textarea {
    border: solid 1px #555; 
    background-color: #000; 
    color: #00FF00; /* Letras verdes estilo hacker retro */
    font-family: monospace;
    padding: 5px;
    resize: none;
}

.import-section {
    position: absolute; 
    top: 10px; 
    left: 205px;
}

.import-textarea {
    margin: 4px; 
    position: absolute; 
    left: 200px; 
    top: 35px; 
    width: 470px; 
    height: 570px;
}
/* =========================================
   ESTILOS ESPECÍFICOS: GENERADOR DE FUENTES
   ========================================= */

.fuentes-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.fuentes-control-panel {
    margin-bottom: 30px;
}

.fuentes-input {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 18px;
    font-family: Arial, sans-serif;
    border-radius: 8px;
    border: 3px solid #000;
    margin-bottom: 20px;
    text-align: center;
    background-color: #f7f7f7;
    box-shadow: 0 4px 0 #000;
}

.fuentes-input:focus {
    outline: none;
    border-color: #0b6395;
}

.fuentes-preview-box {
    background-color: #0b6395; /* El color azul original */
    padding: 20px;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.font-category-title {
    margin: 30px 0 15px;
    color: #fff;
    background-color: #000;
    text-align: left;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.font-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.font-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s;
    overflow: hidden;
}

.font-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 0 #0b6395;
    border-color: #0b6395;
}

.font-card-title {
    background: #0b6395;
    color: #fff;
    padding: 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #000;
}

.font-card-img {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/pwrup_qmff48.gif') center center no-repeat; /* Fallback retro */
    background-color: #e0e0e0;
}

.font-card-img img {
    max-width: 100%;
    max-height: 100%;
}
/* =========================================
   ESTILOS ESPECÍFICOS: GENERADOR DE AVATARES
   ========================================= */

.generador-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.generador-header {
    text-align: center;
    margin-bottom: 20px;
}

.generador-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.generador-controles {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    color: #333;
}

.form-group input, .form-group select {
    width: 60%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.generador-btn-descargar {
    width: 100%;
    padding: 10px;
    background-color: #e4e4e4;
    border: 1px solid #999;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    margin-top: 10px;
}

.generador-btn-descargar:hover {
    background-color: #d4d4d4;
}

.generador-preview {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.keko-rotator-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    background: url('images/background.gif'); /* Le ponemos el fondo de Habbo para que resalte el keko */
    padding: 20px;
    border: 2px solid #000;
    border-radius: 8px;
    width: 100%;
}

.flechas-columna {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-flecha {
    background: #fff;
    border: 1px solid #000;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: transform 0.1s;
}

.btn-flecha:hover {
    transform: scale(1.1);
}

.keko-imagen-caja {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.keko-url-box {
    width: 100%;
    text-align: center;
}

.keko-url-box input {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    background: #eee;
    border: 1px solid #ccc;
    color: #555;
    font-size: 12px;
}
/* =========================================
   REPARACIÓN ESTÉTICA BUSCADOR AVATAR
   ========================================= */

/* Contenedor principal para alienar etiqueta y wrapper */
.search-group {
    align-items: center; 
}

/* Wrapper para el input y el botón compartiendo línea */
.input-button-wrapper {
    display: flex;
    width: 60%; /* Mismo ancho que tenían los inputs antes */
    gap: 0; /* Pegados */
}

/* Ajustes para el input dentro del wrapper */
.input-button-wrapper input {
    flex: 1; /* Toma todo el espacio excepto el botón */
    width: auto !important; /* Anulamos ancho fijo anterior */
    margin: 0 !important;
    border-radius: 4px 0 0 4px; /* Redondeado solo izquierda */
    border-right: none; /* Quitamos borde derecho para que pegue con botón */
}

/* Estilos para el nuevo botón OK */
#btn-search-avatar {
    padding: 8px 15px;
    background-color: #0b6395; /* Color azul de tu menú */
    color: white;
    border: 1px solid #ccc;
    border-left: none; /* Quitamos borde izquierdo */
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 4px 4px 0; /* Redondeado solo derecha */
    transition: background 0.2s;
    font-size: 12px;
}

#btn-search-avatar:hover {
    background-color: #084c73; /* Azul más oscuro al pasar ratón */
}
/* =========================================
   ESTILOS ESPECÍFICOS: HABBO INFO (IFRAME)
   ========================================= */

.habboinfo-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    text-align: center;
}

.habboinfo-header {
    margin-bottom: 20px;
}

/* El contenedor hace que el iframe mantenga proporciones y sea responsive */
.embed-container {
    position: relative;
    padding-bottom: 75%; /* Ajustado para dar más altura vertical a la web externa */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border: 2px solid #000;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
    background-color: #fff; /* Fondo blanco mientras carga */
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* =========================================
   ESTILOS ESPECÍFICOS: HOTELES Y CARACTERES
   ========================================= */

.caracteres-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.caracteres-header {
    text-align: center;
    margin-bottom: 30px;
}

.caracteres-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

/* Caja de Banderas */
.comunidades-box {
    flex: 1;
    min-width: 250px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.comunidades-box h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #0b6395;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.lista-comunidades {
    list-style: none;
    padding: 0;
}

.lista-comunidades li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: bold;
    color: #444;
}

.lista-comunidades img {
    margin-right: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

/* Caja de Caracteres y Pestañas */
.caracteres-box {
    flex: 2;
    min-width: 300px;
    background: #f9f9f9;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
}

.tabs-header {
    display: flex;
    background: #eee;
    border-bottom: 2px solid #000;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    font-weight: bold;
    font-size: 15px;
    border: none;
    background: #e4e4e4;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}

.tab-btn:hover {
    background: #d4d4d4;
}

.tab-btn.active {
    background: #fff;
    color: #0b6395;
    border-bottom: 3px solid #0b6395;
}

.tab-content {
    padding: 25px;
    background: #fff;
}

.tab-content p {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.img-center {
    display: flex;
    justify-content: center;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.simbolos-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.simbolos-grid ul {
    list-style: none;
    padding: 0;
}

.simbolos-grid li {
    font-size: 16px;
    margin-bottom: 12px;
    color: #444;
}

.simbolos-grid li b {
    display: inline-block;
    width: 30px;
    text-align: center;
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 4px;
    margin-right: 10px;
    font-family: monospace;
    font-size: 18px;
    color: #000;
}
/* =========================================
   ESTILOS ESPECÍFICOS: MULTIMEDIA (TRAX)
   ========================================= */

.multimedia-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.multimedia-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Contenedor del Reproductor */
.video-player-box {
    background: #000;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 3px solid #333;
    text-align: center;
}

.video-player-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.btn-cerrar-video {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-cerrar-video:hover {
    background: #ff0000;
}

/* Galería Grid (Responsive) */
.trax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.trax-card {
    position: relative;
    background: #fff;
    border: 2px solid #000;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.trax-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.trax-card img {
    width: 100%;
    display: block;
    border-bottom: 2px solid #000;
}

.trax-title {
    background: #f0f0f0;
    color: #000;
    padding: 8px 5px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* Icono de Play Oculto que aparece al pasar el ratón */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 32px); /* Restamos la altura del título */
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.trax-card:hover .play-overlay {
    opacity: 1;
}
/* =========================================
   ESTILOS ESPECÍFICOS: CREADOR DE KEKOS
   ========================================= */

.creador-area {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    background: url('images/background.gif');
    padding: 20px;
    border: 2px solid #000;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
}

/* Columnas laterales de flechas */
.flechas-prenda, .flechas-color {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.flecha-titulo {
    background: #0b6395;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 3px;
    border-radius: 4px;
    margin-bottom: -5px;
}

/* Caja central donde está el Keko */
.keko-central-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    min-width: 160px;
}

.keko-central-box img {
    height: 140px;
    margin-bottom: 15px;
}

/* Controles de rotación debajo del Keko */
.keko-rotacion-btns {
    display: flex;
    gap: 15px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    width: 100%;
    justify-content: center;
}

.rot-grupo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rot-titulo {
    font-size: 10px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.btn-flecha-small {
    background: #fff;
    border: 1px solid #999;
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
}
.btn-flecha-small img {
    height: 12px;
    margin-bottom: 0 !important;
}
.btn-flecha-small:hover { background: #eee; }
/* =========================================
   ESTILOS ESPECÍFICOS: CREADOR DE KEKOS 2.0
   ========================================= */

.builder-viewport {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    min-height: 442px;
    box-shadow: 0 5px 0 rgba( 0, 0, 0, .4 );
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.main-navigation ul {
    display: flex;
    width: 100%;
    height: 45px;
    background: #0b6395;
    border-bottom: 2px solid rgba( 255, 255, 255, .4 );
}

.main-navigation ul li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba( 0, 0, 0, .2 );
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.main-navigation ul li.active {
    background: #eceae0;
}

.main-navigation ul li a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

.main-navigation ul li img {
    vertical-align: middle;
}

.sub-navigation {
    background: #eceae0;
    padding: 10px;
    min-height: 55px;
}

.sub-navigation ul {
    display: flex;
    gap: 5px;
}

.sub-navigation li {
    height: 35px;
    width: 55px;
}

.sub-navigation li a {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
    opacity: .5;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.sub-navigation li a.nav-selected, .sub-navigation li a:hover {
    opacity: 1;
}

/* Iconos Sub Navegacion */
.sub-navigation a.male { background-image: url('personalizar2.0/app/img/male.png') !important; }
.sub-navigation a.female { background-image: url('personalizar2.0/app/img/female.png') !important; }
.sub-navigation a.hair { background-image: url('personalizar2.0/app/img/hair-sn.png') !important; }
.sub-navigation a.hats { background-image: url('personalizar2.0/app/img/hats.png') !important; }
.sub-navigation a.hair-accessories { background-image: url('personalizar2.0/app/img/hair-accessories.png') !important; }
.sub-navigation a.glasses { background-image: url('personalizar2.0/app/img/glasses.png') !important; }
.sub-navigation a.moustaches { background-image: url('personalizar2.0/app/img/moustaches.png') !important; }
.sub-navigation a.tops { background-image: url('personalizar2.0/app/img/top.png') !important; }
.sub-navigation a.chest { background-image: url('personalizar2.0/app/img/chest.png') !important; }
.sub-navigation a.jackets { background-image: url('personalizar2.0/app/img/jackets.png') !important; }
.sub-navigation a.accessories { background-image: url('personalizar2.0/app/img/accessories.png') !important; }
.sub-navigation a.bottoms { background-image: url('personalizar2.0/app/img/bottoms-sn.png') !important; }
.sub-navigation a.shoes { background-image: url('personalizar2.0/app/img/shoes.png') !important; }
.sub-navigation a.belts { background-image: url('personalizar2.0/app/img/belts.png') !important; }

#clothes-colors {
    width: 75%;
    height: 400px;
    float: left;
    padding: 0 10px;
    background: #eceae0;
}

#colors {
    height: 120px;
    overflow-y: auto;
    margin: 10px 0;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
}

#clothes {
    height: 250px;
    overflow-y: auto;
}

#avatar {
    float: left;
    background: #eceae0;
    width: 25%;
    height: 400px;
    position: relative;
    border-left: 2px solid #ccc;
}

#avatar #myHabbo2 {
    margin: 20px auto;
    display: block;
    transform: scale(1.5);
    transform-origin: top center;
}

.avatar-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

.avatar-controls button {
    background: #0b6395;
    color: white;
    border: 2px solid #000;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-bottom: 10px;
}

.avatar-controls input {
    width: 100%;
    font-size: 10px;
    padding: 4px;
    text-align: center;
}

/* Objetos interactivos */
.color-object {
    display: inline-block;
    width: 15px;
    height: 20px;
    border: 2px solid #736d67;
    margin: 3px;
    border-radius: 3px;
    box-shadow: 0px 2px 0px rgba(0 ,0, 0, 1 );
}

.clothes-object {
    display: inline-block;
    height: 55px;
    width: 55px;
    background-color: #eceae0;
    background-repeat: no-repeat;
    background-position: center -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    margin: 2px;
}

.clothes-object.removable {
    background-image: url('personalizar2.0/app/img/removable.png') !important;
    background-position: center center !important;
}

.clothes-object:hover, .clothes-object.selected {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: #0b6395;
}

/* Corrección de posiciones CSS Sprite según clase */
.clothes-object.ch, .clothes-object.ca, .clothes-object.cp { background-position-y: -30px !important; }
.clothes-object.cc { background-position-y: -45px !important; }
.clothes-object.wa { background-position-y: -50px !important; }
.clothes-object.lg { background-position-y: -70px !important; }
.clothes-object.sh { background-position-y: -75px !important; }

/* Ocultar / Mostrar */
.display { display: flex !important; }
.hidden { display: none !important; }

/* Custom Scrollbar adaptada para la SPA */
#clothes-colors::-webkit-scrollbar { width: 12px; }
#clothes-colors::-webkit-scrollbar-thumb { background: #ccc; border-radius: 6px; }
/* --- MERCADILLO Y CALCULADORA --- */
.mercadillo-container {
    width: 100%;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-sizing: border-box;
}

.mercadillo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.m-tab {
    background: transparent;
    color: #888;
    border: 2px solid transparent;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
}

.m-tab:hover {
    color: #fff;
    background: #333;
}

.m-tab.active {
    color: #fff;
    border-bottom: 2px solid #00ffcc;
    background: #2a2a2a;
}

.m-search-box, .m-calc-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.m-search-box input, .m-calc-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2b2b2b;
    color: #fff;
    font-size: 15px;
}

.m-search-box button, .m-calc-input-group button {
    padding: 12px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
}

.m-search-box button:hover, .m-calc-input-group button:hover {
    background: #0056b3;
}

.m-calc-modes {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #ccc;
}

.m-calc-modes label {
    cursor: pointer;
    background: #2b2b2b;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #444;
}

.m-calc-modes input[type="radio"] {
    margin-right: 8px;
}

.m-calc-label {
    color: #fff;
    font-weight: bold;
}

.m-calc-result {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed #555;
}

.m-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.m-card {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s;
}

.m-card:hover {
    transform: translateY(-3px);
    border-color: #00ffcc;
}

.m-card img {
    max-height: 70px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.m-card h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #fff;
}

.m-card-stats p {
    margin: 5px 0;
    font-size: 14px;
    color: #aaa;
}

.m-card-stats b {
    color: #ffd700;
}
