/* ========================================
   ROMATSURI ARCHIVES - ESTILOS COMPARTIDOS
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    background-image: url('imagenes/fondo/fondo-web.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #ffffff;
    image-rendering: pixelated;
    font-size: 16px;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        repeating-linear-gradient(0deg, rgba(178, 34, 34, 0.05) 0px, rgba(178, 34, 34, 0.05) 1px, transparent 1px, transparent 2px),
        repeating-linear-gradient(90deg, rgba(178, 34, 34, 0.05) 0px, rgba(178, 34, 34, 0.05) 1px, transparent 1px, transparent 2px);
    background-size: 4px 4px;
    z-index: 0;
    pointer-events: none;
}

.library {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    padding: 25px 30px 30px 30px;
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(4px);
    border: 4px solid #B22222;
    border-style: solid double solid double;
    image-rendering: pixelated;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.library::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid #B22222;
    pointer-events: none;
}

/* ===== PANEL DE SISTEMA (arriba) ===== */
.system-panel {
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #C0C0C0;
    border-style: groove;
    padding: 14px 20px 12px 20px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
    position: relative;
    backdrop-filter: blur(2px);
}

.system-panel::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(178, 34, 34, 0.2);
    pointer-events: none;
}

.panel-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #B22222;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-bottom: 2px solid #B22222;
    border-bottom-style: double;
    padding-bottom: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.panel-title .title-main {
    color: #B22222;
    flex-shrink: 0;
}

.panel-title .version {
    font-size: 0.75rem;
    color: #C0C0C0;
    letter-spacing: 2px;
    font-weight: normal;
    display: inline-block;
    font-family: 'Courier New', monospace;
    transition: opacity 0.6s ease;
    opacity: 1;
}

.panel-title .version.fade-out {
    opacity: 0;
}

.panel-title .version.fade-in {
    opacity: 1;
}

.panel-divider {
    border: none;
    border-top: 2px solid #B22222;
    border-top-style: dashed;
    margin: 6px 0 8px 0;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.panel-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid rgba(178, 34, 34, 0.1);
}

.panel-item .label {
    color: #C0C0C0;
    text-transform: uppercase;
}

.panel-item .value {
    color: #ffffff;
    font-weight: bold;
}

.panel-item .value.highlight {
    color: #FFD700;
}

.panel-item .value.status-online {
    color: #00CC66;
}

.divider {
    width: 100%;
    height: 4px;
    margin: 10px 0 18px 0;
    background: repeating-linear-gradient(90deg, #B22222, #B22222 10px, transparent 10px, transparent 20px);
    border: none;
}

/* ========================================
   CONTENEDOR PRINCIPAL - 3 COLUMNAS
   ======================================== */
.main-content {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 300px;
}

/* ========================================
   COLUMNA IZQUIERDA - ESTADO + SOCIAL
   ======================================== */
.col-left {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   PANEL DE ESTADO DEL SISTEMA
   ======================================== */
.col-status {
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #B22222;
    border-style: groove;
    padding: 18px 14px 14px 14px;
    position: relative;
    backdrop-filter: blur(2px);
}

.col-status::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(178, 34, 34, 0.2);
    pointer-events: none;
}

.col-status .panel-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #000000;
    padding: 0 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #B22222;
    border: 2px solid #B22222;
    border-style: double;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.col-status .panel-title-inner {
    font-size: 0.85rem;
    color: #B22222;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #B22222;
    border-bottom-style: double;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 4px;
    border-bottom: 1px solid rgba(178, 34, 34, 0.1);
    font-family: 'Courier New', monospace;
}

.status-item:last-of-type {
    border-bottom: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid #666;
}

.status-dot.status-online {
    background: #00CC66;
}

.status-dot.status-warning {
    background: #FFD700;
}

.status-dot.status-offline {
    background: #B22222;
}

.status-label {
    font-size: 0.75rem;
    color: #C0C0C0;
    letter-spacing: 0.5px;
    flex: 1;
    text-transform: uppercase;
}

.status-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: #666;
    letter-spacing: 0.5px;
}

.status-text.online-text {
    color: #00CC66;
}

.status-text.warning-text {
    color: #FFD700;
}

.status-text.offline-text {
    color: #B22222;
}

.status-divider {
    border: none;
    border-top: 2px solid #B22222;
    border-top-style: dashed;
    margin: 8px 0 6px 0;
    opacity: 0.3;
}

.status-footer {
    font-size: 0.55rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

/* ========================================
   PANEL SOCIAL CON FONDO
   ======================================== */
.col-social {
    background: rgba(0, 0, 0, 0.85);
    background-image: url('imagenes/fondo/fondo-social.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #B22222;
    border-style: groove;
    padding: 18px 14px 14px 14px;
    position: relative;
    backdrop-filter: blur(2px);
}

.col-social::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 0;
}

.col-social .panel-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #000000;
    padding: 0 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #B22222;
    border: 2px solid #B22222;
    border-style: double;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 1;
}

.col-social .panel-title-inner {
    font-size: 0.85rem;
    color: #B22222;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #B22222;
    border-bottom-style: double;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    margin-bottom: 4px;
    border: 2px solid transparent;
    text-decoration: none;
    color: #C0C0C0;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.social-link:hover {
    border-color: #B22222;
    background: rgba(178, 34, 34, 0.2);
    color: #ffffff;
}

.social-link .pixel-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
    image-rendering: pixelated;
}

.social-link .link-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.social-link .link-text .name {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C0C0C0;
    line-height: 1.3;
    cursor: pointer;
}

.social-link:hover .link-text .name {
    color: #ffffff;
}

.social-divider {
    border: none;
    border-top: 2px solid #B22222;
    border-top-style: dashed;
    margin: 8px 0 6px 0;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.social-footer {
    font-size: 0.6rem;
    color: #C0C0C0;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ========================================
   COLUMNA CENTRAL - CATÁLOGO
   ======================================== */
.col-catalog {
    flex: 4;
    background: rgba(26, 26, 26, 0.9);
    border: 3px solid #B22222;
    border-style: groove;
    padding: 25px 20px 20px 20px;
    position: relative;
    min-height: 250px;
    backdrop-filter: blur(2px);
}

.col-catalog .panel-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #000000;
    padding: 0 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #B22222;
    border: 2px solid #B22222;
    border-style: double;
    font-weight: bold;
}

/* ========================================
   REGISTROS / EXPEDIENTES - CATÁLOGO
   ======================================== */

.registros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 5px;
    min-height: 150px;
}

.registro {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #333;
    border-radius: 3px;
    text-decoration: none;
    transition: none;
    min-height: 150px;
    position: relative;
    cursor: pointer;
}

.registro:hover {
    border-color: #B22222;
    background: rgba(178, 34, 34, 0.08);
}

.registro:hover .registro-titulo {
    color: #B22222;
}

.registro-portada {
    width: 90px;
    min-width: 90px;
    height: 135px;
    border-radius: 2px;
    border: 2px solid #1a1a1a;
    border-style: outset;
    image-rendering: pixelated;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
    align-self: center;
}

.registro-portada img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.registro-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 0;
}

.registro-titulo {
    font-size: 0.9rem;
    font-weight: bold;
    color: #C0C0C0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    transition: none;
}

.registro-desc {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.3px;
    line-height: 1.4;
    font-family: 'Courier New', monospace;
    margin: 2px 0 4px 0;
}

.registro.deshabilitado {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.7);
}

.registro.deshabilitado .registro-titulo {
    color: #444;
}

.registro.deshabilitado .registro-portada {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #444;
}

.registro.deshabilitado .registro-portada img {
    display: none;
}

/* ========================================
   REGISTROS - RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .registros {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .registros {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .registro {
        padding: 12px 14px;
        min-height: 120px;
        gap: 12px;
    }
    .registro-portada {
        width: 70px;
        min-width: 70px;
        height: 105px;
    }
    .registro-titulo {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .registro-desc {
        font-size: 0.6rem;
    }
}

@media (max-width: 500px) {
    .registros {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .registro {
        padding: 10px 12px;
        gap: 10px;
        min-height: 100px;
    }
    .registro-portada {
        width: 55px;
        min-width: 55px;
        height: 85px;
    }
    .registro-titulo {
        font-size: 0.7rem;
    }
    .registro-desc {
        font-size: 0.55rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 380px) {
    .registro {
        padding: 8px 10px;
        gap: 8px;
        min-height: 80px;
    }
    .registro-portada {
        width: 45px;
        min-width: 45px;
        height: 70px;
    }
    .registro-titulo {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
    .registro-desc {
        font-size: 0.5rem;
        -webkit-line-clamp: 1;
    }
}

/* ========================================
   COLUMNA DERECHA - BOTONES
   ======================================== */
.col-music {
    flex: 1;
    min-width: 140px;
    background: rgba(0, 0, 0, 0.3);
    border: 3px dashed rgba(178, 34, 34, 0.2);
    border-style: dashed;
    padding: 18px 14px 14px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    min-height: 200px;
    justify-content: flex-start;
    align-items: center;
}

.col-music .panel-label {
    position: absolute;
    top: -12px;
    left: 15px;
    background: #000000;
    padding: 0 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #B22222;
    border: 2px solid #B22222;
    border-style: double;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 1;
}

.col-music .panel-title-inner {
    font-size: 0.85rem;
    color: #B22222;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #B22222;
    border-bottom-style: double;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    width: 100%;
}

.button-container .boton {
    border: 2px solid #666;
    image-rendering: pixelated;
    transition: none;
}

.button-container .boton:hover {
    border-color: #B22222;
}

.button-label {
    font-size: 0.6rem;
    color: #C0C0C0;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.button-sub {
    font-size: 0.55rem;
    color: #666;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
    text-align: center;
    line-height: 1.4;
    max-width: 130px;
}

/* ===== CÓDIGO PARA COPIAR ===== */
.button-code {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 4px;
    border: 1px solid #333;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
}

.code-text {
    font-size: 0.4rem;
    color: #666;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.copy-btn {
    background: #1A1A1A;
    border: 1px solid #666;
    color: #C0C0C0;
    cursor: pointer;
    padding: 0 4px;
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    transition: none;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #B22222;
    color: #ffffff;
    border-color: #B22222;
}

/* ===== INFO "¿QUÉ ES ESTO?" ===== */
.info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.info-title {
    font-size: 0.65rem;
    font-weight: bold;
    color: #B22222;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    margin-bottom: 6px;
    border-bottom: 2px solid rgba(178, 34, 34, 0.2);
    padding-bottom: 3px;
}

.col-music .social-divider {
    border: none;
    border-top: 2px solid #B22222;
    border-top-style: dashed;
    margin: 8px 0 6px 0;
    opacity: 0.3;
    width: 80%;
}

.col-music .social-footer {
    font-size: 0.55rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 2px solid #B22222;
    border-top-style: dashed;
    padding-top: 15px;
}

.footer span {
    color: #B22222;
}

.footer .highlight {
    color: #FFD700;
}

/* ========================================
   MODAL (AVISO EMERGENTE)
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1A1A1A;
    border: 4px solid #B22222;
    border-style: double;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    padding: 35px 30px;
    position: relative;
    overflow-y: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid #B22222;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
    background: #000000;
    border: 2px solid #C0C0C0;
    border-style: outset;
    color: #C0C0C0;
    cursor: pointer;
    padding: 4px 12px;
    font-family: 'Courier New', monospace;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #B22222;
    color: #000000;
    border-style: inset;
    border-color: #7A0E0E;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    color: #B22222;
    margin-bottom: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-right: 40px;
    font-family: 'Courier New', monospace;
}

.modal-body {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.modal-body p {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-left: 3px solid #B22222;
    border-left-style: solid;
}

.modal-body strong {
    color: #B22222;
}

.modal-body .btn-enlace {
    color: #FFD700;
    font-weight: bold;
    text-decoration: underline;
    padding: 8px 20px;
    border: 2px solid #B22222;
    border-style: double;
    background: rgba(178, 34, 34, 0.1);
    display: inline-block;
    transition: none;
}

.modal-body .btn-enlace:hover {
    background: rgba(178, 34, 34, 0.3);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
    background: #000000;
}
.modal-content::-webkit-scrollbar-track {
    background: #000000;
    border: 1px solid #B22222;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #B22222;
    border: 1px solid #000000;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        gap: 16px;
    }
    .col-left {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: unset;
        gap: 12px;
    }
    .col-status,
    .col-social {
        flex: 1;
        min-width: 200px;
    }
    .col-status {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 4px 12px;
        padding: 14px 16px;
    }
    .col-status .panel-label {
        position: absolute;
    }
    .col-status .panel-title-inner {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        border-bottom: 2px solid #B22222;
        border-bottom-style: double;
        padding-bottom: 4px;
        font-size: 0.7rem;
    }
    .status-item {
        padding: 2px 6px;
        border-bottom: none;
    }
    .status-divider {
        display: none;
    }
    .status-footer {
        display: none;
    }
    .col-social {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 4px 12px;
        padding: 14px 16px;
    }
    .col-social .panel-label {
        position: absolute;
    }
    .col-social .panel-title-inner {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        border-bottom: 2px solid #B22222;
        border-bottom-style: double;
        padding-bottom: 4px;
        font-size: 0.7rem;
    }
    .social-link {
        padding: 4px 8px;
        gap: 6px;
    }
    .social-link .pixel-icon {
        width: 18px;
        height: 18px;
    }
    .social-link .link-text .name {
        font-size: 0.65rem;
    }
    .social-divider {
        display: none;
    }
    .social-footer {
        display: none;
    }
    .col-music {
        flex: 1;
        min-width: unset;
        min-height: 60px;
        padding: 14px 16px;
        align-self: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 12px;
    }
    .col-music .panel-label {
        position: absolute;
    }
    .col-music .panel-title-inner {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        border-bottom: 2px solid #B22222;
        border-bottom-style: double;
        padding-bottom: 4px;
        font-size: 0.7rem;
    }
    .col-music .button-container {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    .col-music .code-text {
        max-width: 80px;
    }
    .col-music .info-container {
        flex: 1;
        min-width: 80px;
        max-width: 120px;
    }
    .col-music .button-sub {
        font-size: 0.5rem;
        max-width: 100px;
    }
    .registros {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .panel-grid {
        grid-template-columns: 1fr 1fr;
    }
    .panel-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .library {
        padding: 15px;
    }
    .system-panel {
        padding: 10px 14px;
    }
    .panel-title {
        font-size: 1rem;
        letter-spacing: 2px;
        flex-wrap: wrap;
    }
    .panel-title .version {
        font-size: 0.65rem;
    }
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 1px;
        font-size: 0.7rem;
    }
    .col-catalog {
        padding: 18px 12px 14px 12px;
        min-height: 180px;
    }
    .modal-content {
        padding: 20px;
        margin: 15px;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-body {
        font-size: 0.9rem;
    }
    .col-left {
        flex-direction: column;
    }
    .col-status,
    .col-social {
        min-width: unset;
        width: 100%;
    }
    .col-music {
        min-height: 50px;
        padding: 12px 14px;
        align-self: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .col-music .button-container {
        min-width: 70px;
        max-width: 100px;
    }
    .col-music .code-text {
        max-width: 60px;
    }
    .col-music .info-container {
        min-width: 70px;
        max-width: 100px;
    }
    .col-music .button-sub {
        font-size: 0.45rem;
        max-width: 80px;
    }
    .registros {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .registro {
        padding: 12px 14px;
        min-height: 120px;
        gap: 12px;
    }
    .registro-portada {
        width: 70px;
        min-width: 70px;
        height: 105px;
    }
    .registro-titulo {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .registro-desc {
        font-size: 0.6rem;
    }
}

@media (max-width: 500px) {
    .col-catalog {
        padding: 14px 8px;
        min-height: 150px;
    }
    .panel-title {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    .panel-title .version {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    .panel-grid {
        font-size: 0.6rem;
    }
    .footer {
        font-size: 0.6rem;
    }
    .col-status,
    .col-social {
        padding: 12px 12px;
    }
    .col-status .panel-title-inner,
    .col-social .panel-title-inner {
        font-size: 0.65rem;
    }
    .status-item {
        padding: 2px 4px;
    }
    .status-label {
        font-size: 0.65rem;
    }
    .status-text {
        font-size: 0.6rem;
    }
    .status-dot {
        width: 10px;
        height: 10px;
    }
    .social-link {
        padding: 4px 6px;
        gap: 6px;
    }
    .social-link .pixel-icon {
        width: 16px;
        height: 16px;
    }
    .social-link .link-text .name {
        font-size: 0.65rem;
    }
    .col-music {
        min-height: 40px;
        padding: 10px 12px;
        align-self: stretch;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .col-music .button-container {
        min-width: 60px;
        max-width: 80px;
    }
    .col-music .code-text {
        max-width: 50px;
        font-size: 0.35rem;
    }
    .col-music .button-label {
        font-size: 0.5rem;
    }
    .col-music .button-sub {
        font-size: 0.4rem;
        max-width: 70px;
    }
    .col-music .info-title {
        font-size: 0.55rem;
    }
    .registros {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .registro {
        padding: 10px 12px;
        gap: 10px;
        min-height: 100px;
    }
    .registro-portada {
        width: 55px;
        min-width: 55px;
        height: 85px;
    }
    .registro-titulo {
        font-size: 0.7rem;
    }
    .registro-desc {
        font-size: 0.55rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 380px) {
    .registros {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .registro {
        padding: 8px 10px;
        gap: 8px;
        min-height: 80px;
    }
    .registro-portada {
        width: 45px;
        min-width: 45px;
        height: 70px;
    }
    .registro-titulo {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }
    .registro-desc {
        font-size: 0.5rem;
        -webkit-line-clamp: 1;
    }
}

.back-btn {
    display: none;
}

/* ========================================
   SITIOS RECOMENDADOS - BOTONES EN PARES
   ======================================== */

.recomendados-titulo {
    font-size: 0.6rem;
    font-weight: bold;
    color: #B22222;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    border-bottom: 2px solid rgba(178, 34, 34, 0.2);
    padding-bottom: 4px;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
    display: block;
}

.botones-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1px 1px;
    width: 100%;
    margin-bottom: 1px;
	justify-content: center;
	align-content: center;
}

.boton-par {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 2px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: none;
}


/* efecto hoover bg
/*.boton-par:hover {
    border-color: rgba(178, 34, 34, 0.3);
    background: rgba(178, 34, 34, 0.05);
}

.boton-par .boton {
    border: 2px solid #666;
    image-rendering: pixelated;
    transition: none;
}

.boton-par .boton:hover {
    border-color: #B22222;
}



/* ========================================
   RESPONSIVE PARA BOTONES RECOMENDADOS
   ======================================== */

@media (max-width: 992px) {
    .botones-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 8px;
    }
}

@media (max-width: 768px) {
    .botones-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 6px;
    }
}

@media (max-width: 500px) {
    .botones-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3px 4px;
    }
    .boton-par .boton {
        width: 70px;
        height: auto;
    }
}

/* ========================================
   ESTILOS PARA LIBROS (BOOKS)
   ======================================== */

.books {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
    margin-top: 5px;
    min-height: 150px;
}

.book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: none;
    transform: scale(1);
}

.book:hover {
    transform: scale(1.15);
    border-color: #B22222;
    background: rgba(178, 34, 34, 0.1);
    z-index: 2;
}

.book:hover .book-spine {
    border-color: #ffffff;
}

.book:hover .book-name {
    color: #B22222;
}

/* --- Descripción del libro --- */
.book-desc {
    font-size: 0.5rem;
    text-align: center;
    color: #666;
    letter-spacing: 0.5px;
    max-width: 100px;
    line-height: 1.2;
    font-family: 'Courier New', monospace;
    display: none;
    margin-top: 2px;
}

.book:hover .book-desc {
    display: block;
}

/* --- Portada del libro --- */
.book-spine {
    width: 100px;
    height: 150px;
    border-radius: 3px;
    position: relative;
    border: 2px solid #000000;
    border-style: outset;
    image-rendering: pixelated;
    overflow: hidden;
    background: #333;
}

.book-spine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-name {
    font-size: 0.75rem;
    text-align: center;
    color: #C0C0C0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    max-width: 100px;
    line-height: 1.3;
    font-family: 'Courier New', monospace;
}

/* --- Libros deshabilitados --- */
.book.deshabilitado {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.7);
}

.book.deshabilitado .book-name {
    color: #444;
}

.book.deshabilitado:hover {
    transform: none;
    border-color: transparent;
    background: transparent;
}

/* ===== BOOKS RESPONSIVE ===== */

@media (max-width: 992px) {
    .books {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px 12px;
    }
    .book-spine {
        width: 80px;
        height: 120px;
    }
    .book-name {
        font-size: 0.65rem;
        max-width: 80px;
    }
}

@media (max-width: 768px) {
    .books {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 10px;
    }
    .book-spine {
        width: 65px;
        height: 100px;
    }
    .book-name {
        font-size: 0.6rem;
        max-width: 65px;
    }
}

@media (max-width: 500px) {
    .books {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 8px;
    }
    .book-spine {
        width: 55px;
        height: 85px;
    }
    .book-name {
        font-size: 0.55rem;
        max-width: 55px;
        letter-spacing: 1px;
    }
    .book {
        padding: 4px 2px;
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .books {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 5px;
    }
    .book-spine {
        width: 45px;
        height: 70px;
    }
    .book-name {
        font-size: 0.5rem;
        max-width: 45px;
    }
}

/* ===== BOTÓN VOLVER ===== */
.btn-volver {
    display: inline-block;
    color: #B22222;
    text-decoration: none;
    border: 2px solid #B22222;
    border-style: double;
    padding: 8px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    transition: none;
    background: rgba(0, 0, 0, 0.5);
}

.btn-volver:hover {
    background: rgba(178, 34, 34, 0.15);
}