/* Estilos para las páginas de detalle de cada máquina */
.maquina-titulo {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    font-weight: bold;
    color: #222;
}
.comparativa {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 30px 0;
}
.comparativa-bloque {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 20px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.comparativa-titulo {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
}
.comparativa-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}
.documentos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
}
.documento-bloque {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 20px;
    width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.documento-titulo {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
}
.documento-viewer {
    width: 350px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.imagenes-matriz {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
@media (max-width: 900px) {
    .comparativa, .documentos {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .comparativa-bloque, .documento-bloque {
        width: 95%;
    }
    .documento-viewer, .comparativa-img {
        width: 95%;
    }
}

/* Lightbox para imágenes ampliadas */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    background: #fff;
    padding: 10px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: #ff4444;
}

/* Lightbox para PDF ampliado */
.pdf-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}
.pdf-lightbox.active {
    display: flex;
}
.pdf-lightbox-viewer {
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    border: none;
}
.pdf-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
    transition: color 0.2s;
}
.pdf-lightbox-close:hover {
    color: #ff4444;
}
.pdf-zoom-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    color: #1976d2;
    font-size: 1.2em;
    vertical-align: middle;
    transition: color 0.2s;
}
.pdf-zoom-btn:hover {
    color: #388e3c;
} 