@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* ----------- Dashboard ----------- */

.bloque {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #000000;
    padding: 20px 10px;
    text-decoration: none;
    font-weight: bold;
    vertical-align: middle;
    transition: background 0.3s;
    border: 2px solid #000000; /* Grosor, estilo, color */
/* Opcional: para esquinas redondeadas */
    border-radius: 1px;
}
        
.bloque:hover {
    background: #ffffff;
    text-decoration: none;
/* Opcional: para esquinas redondeadas */
    border-radius: 1px;
    vertical-align: middle;
}

.bloquecamara {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.inmacelispro.drogueriainmacelis.com/uploads/imagenes/fondo_camara360.jpg');
    background-size: cover;
    background-position: center;
    color: #000000;
    text-shadow: 
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff;
    padding: 20px 10px;
    text-decoration: none;
    font-weight: bold;
    vertical-align: middle;
    transition: background 0.3s;
    border: 2px solid #000000;
    border-radius: 1px;
}

.bloquecamara:hover {
    background-image: url('https://www.inmacelispro.drogueriainmacelis.com/uploads/imagenes/fondo_camara360.jpg');
    background-size: cover;
    background-position: center;
    text-decoration: none;
    border-radius: 1px;
    vertical-align: middle;
    filter: brightness(1.1);
}

.bloque.salir {
    background: #f2b8b8;
}

.bloque.salir:hover {
    background: #fe9c9c;
}

@media (max-width: 400px) {
    .bloquecamara {
        height: 36px;
        padding: 20px 10px;
        font-size: 16px;
        text-align: center;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ----------- General ----------- */

body {
    margin: 0;
    padding: 0;
    padding-bottom: 60px;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
}
header img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
}

/* ----------- Contenedor ----------- */

.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.containerdashboard {
    max-width: 800px;
    margin: 30px auto;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.containerpintor {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.pintor {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ----------- Formularios ----------- */

form input[type="submit"],
form input[type="text"],
form input[type="password"],
form input[type="email"],
.form input,
.form textarea,
.form button {
    width: 100%;
    padding: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button,
.form button,
.print button {
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 16px;
}

form cantidad {
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
}

form button:hover {
    background-color: #000000;
}

/* ----------- Links ----------- */

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.boton {
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    display: inline-block;
    margin-right: 10px;
    background-color: #000000;
    color: white;
}

a.eliminar {
    float: right;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
}

a.eliminar:hover {
    background-color: #c82333;
}

/* ----------- Grid panel ----------- */

.grid-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
    text-align: center;
}

/* ----------- Footer ----------- */

footer {
    text-align: center;
    background-color: #333333;
    color: #ffffff;
    font-size: 14px;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 20px;
}

/* ----------- Listado de colores ----------- */

ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.color-box {
    width: 100px;
    height: 37.5px;
    border: 1px solid #000;
    margin-right: 10px;
    flex-shrink: 0;
    margin-bottom: 5px;
}

.color-info {
    flex-grow: 1;
    text-align: center;
}

/* ----------- Otros ----------- */

.volver2, .volverrestaurar {
    text-align: center;
    margin-top: 10px;
}

h2 {
    background: red;
    color: white;
    padding: 10px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}




h3 {
    background: black;
    color: white;
    padding: 15px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
}

h4 {
    background: red;
    color: white;
    padding: 15px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
    margin-top: 30px;
    border-bottom: 2px solid #ccc;
}

.mensaje-exito {
    color: green;
    text-align: center;
    margin-bottom: 10px;
}

.mensaje-error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

.olvido {
    padding: 20px;
    background: #ffffff;
    color: #000000;
    text-align: center;
}

.olvido a {
    background: #ffffff;
    color: #000000;
    text-align: center;
}

/* ----------- Animaciones de alerta ----------- */

.parpadeo-verde {
    background-color: #9becae !important;
    color: #000000 !important;
    animation: parpadeo 1s infinite;
}

@keyframes parpadeo {
    50% { opacity: 1; }
    0% { opacity: 0.2; }
    50% { opacity: 1; }
}

.parpadea-rojo {
    animation: parpadeoRojo 1s infinite alternate;
    background-color: #F44336;
    color: white;
}

.parpadea-mixta {
    animation: parpadeo-mixto 1.5s infinite;
}

@keyframes parpadeoVerde {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

@keyframes parpadeoRojo {
    from { opacity: 1; }
    to { opacity: 0.5; }
}

@keyframes parpadeo-mixto {
    0% { background-color: #28a745; color: white; }
    33% { background-color: #f8f9fa; color: black; }
    66% { background-color: #dc3545; color: white; }
    100% { background-color: #f8f9fa; color: black; }
}

/* Contador futurista */
.futurista-contador {
    font-size: 24px;
    color: #00ffcc;
    background: #111;
    border: 2px solid #00ffcc;
    padding: 15px;
    border-radius: 10px;
    width: fit-content;
    margin: 20px auto;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px #00ffcc;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #00ffcc; }
    50% { box-shadow: 0 0 20px #00ffcc; }
    100% { box-shadow: 0 0 10px #00ffcc; }
}

/* Barra de progreso visual */
.barra-contenedor {
    width: 100%;
    max-width: 400px;
    background-color: #222;
    border: 2px solid #00ffcc;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 0 15px #00ffcc;
}

.barra-progreso {
    height: 20px;
    width: 0%;
    animation: llenarBarra 2s ease-out forwards;
    transition: width 1s, background 0.5s;
    border-radius: 20px;
}

.barra-verde {
    background: linear-gradient(to right, #00ff88, #00ffaa);
}

.barra-amarilla {
    background: linear-gradient(to right, #ffcc00, #ffee00);
}

.barra-roja {
    background: linear-gradient(to right, #ff0033, #ff5555);
}

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

/* Boton verde en adminpro/dashboard */

.bloque.verde {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* En adminpro/materiales_admin.php */

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th, .tabla td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
}

.tabla th {
    background-color: #f0f0f0;
}

@media screen and (max-width: 768px) {
    .tabla {
        font-size: 13px;
    }
    .boton {
        font-size: 12px;
        padding: 6px 8px;
        display: inline-block;
        margin: 4px 0;
    }
}

.boton {
    display: inline-block;
    padding: 8px 16px;
    background-color: #337ab7;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 10px;
}

.boton:hover {
    background-color: #000000;
}

.boton.eliminar {
    background-color: #d9534f;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.boton.eliminar:hover {
    background-color: #c9302c;
}

.boton.verde {
    background-color: #5cb85c;
}

.boton.verde:hover {
    background-color: #449d44;
}

.colores-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border: 1px solid #ccc;
    width: 220px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.color-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.color-info-row div {
    width: 33.3%;
    text-align: center;
}

.color-card strong {
    margin-top: 10px;
    font-size: 16px;
    color: #222;
}

.color-card small {
    display: block;
    color: #666;
    margin-bottom: 8px;
}

.color-card .asignado {
    color: green;
    font-weight: bold;
    margin-top: 5px;
}

.aviso {
    background: #fff8dc;
    padding: 10px;
    border: 1px solid #daa520;
    color: #555;
    margin-bottom: 20px;
    border-radius: 4px;
}

@media screen and (max-width: 600px) {

    .form input,
    .form textarea,
    .form button {
        font-size: 14px;
    }
    .grid-panel {
        grid-template-columns: 1fr;
    }
    
    .oferta-bloque {
        padding: 10px;
        font-size: 15px;
    }

    .oferta-bloque img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 10px auto;
    }

    .boton, .boton.eliminar, .boton.volver1 {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        font-size: 16px;
        padding: 10px;
    }

    ul li {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media print {
    .print {
        display: none;
    }
}

.imagen-detector {
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.paleta-colores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.color-box {
    padding: 15px;
    border-radius: 6px;
    min-width: 130px;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.color-label {
    font-size: 14px;
}

.color-sub {
    font-size: 12px;
}

/* P¨¢gina painters/pages/notificaciones.php */

.notificacion {
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 14px;
    background: #f5f5f5;
    box-shadow: 0 2px 4px #0001;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notificacion.no-leida {
    background: #ffe7e7;
    border-left: 6px solid #c90019;
}

.notificacion.leida {
    background: #eee;
    color: #888;
}

.fecha {
    font-size: 0.9em;
    color: #bdbdbd;
}

/* Boton notificaciones */

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: #fff;
    color: #c90019;
    border: none;
    font-size: 1em;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    position: relative;
    box-shadow: 0 1px 3px #0001;
}
.menu-btn:hover {
    background: #fae4e6;
    color: #850012;
    text-decoration: underline;
}
.menu-btn span {
    background: #c90019;
    color: #fff;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.93em;
    margin-left: 4px;
    font-weight: bold;
}
    
/* Boton para volver a atras */

.volver {
    text-align: center;
    margin-top: 30px;
}
.volver a {
    display: inline-block;
    text-transform: none !important;
    padding: 10px 0;
    background: #000;
    color: #fff;
    text-decoration: none;
    width: 100%;
}
button.boton.eliminar {
    background-color: #d9534f;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
button.boton.eliminar:hover {
    background-color: #dc3545;
}
.registro a {
    text-align:center;
    margin-top: 10px;
    display:inline-block;
    padding:10px 20px;
    background:#000;
    color:#fff;
    text-decoration:none;
}

/* ============================ CERTIFICADOS.PHP ============================ */

/* TITULO Y TEXTO PRINCIPAL */
.texto-certificados,
.container p {
    text-align: center;
    margin-bottom: 22px;
    color: #222;
    font-size: 1.05em;
}

/* FORMULARIO SUBIDA */
.form-certificado {
    margin-bottom: 25px;
    text-align: center;
    background: #f8f8f8;
    padding: 20px 14px 18px 14px;
    border-radius: 11px;
    box-shadow: 0 1px 8px #0001;
    display: inline-block;
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}
.form-certificado label {
    margin-right: 12px;
    font-weight: 500;
}
.form-certificado select,
.form-certificado input[type="file"] {
    margin-left: 7px;
    margin-right: 14px;
    font-size: 1em;
}
.form-certificado button {
    margin-top: 10px;
}

/* TABLA DE CERTIFICADOS */
.tabla-cert {
    width: 100%;
    max-width: 800px;
    margin: auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px #0002;
    border-radius: 14px;
    overflow: hidden;
    font-size: 15px;
    table-layout: auto;
    box-sizing: border-box;
}
.tabla-cert th, .tabla-cert td {
    padding: 7px 6px;
    border: none;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    white-space: nowrap;
}
.tabla-cert th {
    background: #dc272c;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
}
.tabla-cert tr:nth-child(even) td {
    background: #f7f7f7;
}
.tabla-cert td.acciones {
    white-space: nowrap;
    min-width: 125px;
    max-width: 220px;
    padding-left: 2px !important;
}
.tabla-cert .boton {
    margin: 1px 1px 1px 0;
    padding: 3px 10px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #ededed;
}
.tabla-cert .boton.verde { background: #25a650; color:#fff; }
.tabla-cert .boton.rojo { background: #d32f2f; color:#fff; }

/* CAMPOS Y CHECKS */
.tabla-cert input[type="number"].input-dias {
    width: 44px;
    padding: 2px 6px;
    font-size: 1em;
    margin-left: 5px;
    vertical-align: middle;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    text-align: center;
}
.tabla-cert input[type="checkbox"] {
    transform: scale(1.1);
}

/* BOTONES GENERALES */
.boton {
    margin: 2px 2px 2px 0;
    padding: 5px 16px;
    font-size: 14px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    background: #ededed;
    color: #222;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    outline: none;
    box-shadow: 0 1px 2px #0001;
}
.boton.verde { background: #25a650; color: #fff; }
.boton.verde:hover { background: #18803d; }
.boton.rojo { background: #d32f2f; color: #fff; }
.boton.rojo:hover { background: #a60000; }
.boton.whatsapp { background: #25d366; color: #fff; }
.boton.whatsapp:hover { background: #16a750; }
.btn-ver-certificados {
    padding: 8px 28px;
    font-size: 1.09em;
    margin-top: 6px;
}

/* GENERACIÓN DE ENLACE Y QR */
.enlace-generado {
    color: #205095;
    font-size: 1em;
    margin: 14px 0 22px 0;
    background: #f6f6fa;
    border-radius: 9px;
    padding: 16px 10px 12px 10px;
    box-shadow: 0 1px 8px #0001;
    text-align: center;
}
.input-enlace {
    width: 90%;
    padding: 6px 12px;
    border: 1px solid #c3c3c3;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    margin-bottom: 8px;
}
.img-qr {
    display: block;
    margin: 10px auto 6px auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    width: 130px;
    height: 130px;
}

/* ACCIONES FINALES Y VOLVER */
.acciones-certificados {
    margin: 14px 0 12px 0;
    text-align: center;
}

/* MENSAJES DE ESTADO */
.aviso-ok {
    color: #168c1f;
    font-weight: 600;
    text-align: center;
    margin: 17px 0 12px 0;
    padding: 10px 20px;
    background: #d6fadd;
    border: 1px solid #26bb38;
    border-radius: 8px;
}
.aviso-error {
    color: #dc272c;
    font-weight: 600;
    text-align: center;
    margin: 17px 0 12px 0;
    padding: 10px 20px;
    background: #ffdada;
    border: 1px solid #ee5e5e;
    border-radius: 8px;
}
.aviso-empty {
    color: #888;
    text-align: center;
    margin: 32px 0 28px 0;
    font-size: 1em;
}

/* BANNER MODO PRUEBAS */
.aviso-pruebas {
    color: #fff;
    background: #c0392b;
    padding: 15px 22px;
    font-size: 18px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 3px solid #b00020;
    text-align: center;
}

@media (max-width: 400px) {
    .container {
        max-width: 98vw;
        padding: 10px 2vw 18px 2vw;
        box-sizing: border-box;
    }
    .tabla-cert {
        font-size: 10.7px;
        max-width: 98vw;
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
    }
    .tabla-cert th, .tabla-cert td {
        padding: 5px 2px;
        font-size: 10.7px;
    }
    .form-certificado {
        max-width: 98vw;
        padding: 6px 2vw;
    }
    .input-enlace {
        width: 98%;
        font-size: 1em;
        padding: 6px 6px;
    }
    .img-qr {
        width: 75px;
        height: 75px;
        margin-bottom: 8px;
    }
    .acciones-certificados, .volver {
        margin: 10px 0 8px 0;
    }
    .btn-ver-certificados {
        padding: 8px 14px;
        font-size: 1em;
    }
}
.tabla-cert .col-archivo,
.tabla-cert th.col-archivo {
    display: none !important;
}
}


/* Evitar desbordes horizontales por tablas o formularios */
.container, .tabla-cert, .form-certificado {
    box-sizing: border-box;
    overflow-x: auto;
}

/* ========================== FIN CERTIFICADOS.PHP ========================== */
/*SUBDOMINIO*/
/* ========================== VER_CERTIFICADOS.PHP ========================== */

.certificados-titulo {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.35em;
    color: #ffffff;
    font-weight: 700;
}
.dias-disponibles {
    text-align: center;
    color: #444;
    font-size: 1.13em;
    margin-bottom: 22px;
}
.dias-disponibles span {
    color: #dc272c;
    font-weight: bold;
    font-size: 1.17em;
    margin-left: 6px;
    padding: 3px 13px 4px 13px;
    border-radius: 12px;
    background: #ffeaea;
    display: inline-block;
}

.certificado-box {
    max-width: 500px;
    margin: 32px auto 24px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 16px #0002;
    padding: 22px 16px 20px 16px;
    text-align: center;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.certificado-box h3 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1.22em;
}
.certificado-box .archivo {
    display: block;
    margin: 18px auto 14px auto;
    max-width: 92%;
    max-height: 320px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    pointer-events: none !important;
    user-select: none !important;
}
.certificado-box .nombre-archivo {
    color: #444;
    font-size: 1em;
    margin-top: 8px;
    margin-bottom: 18px;
    word-break: break-all;
    user-select: none !important;
}
.certificado-box .descargar {
    margin-top: 12px;
    font-size: 1.08em;
    padding: 7px 28px;
}
.caducado {
    text-align: center;
    color: #dc272c;
    font-size: 1.23em;
    margin-top: 48px;
    background: #ffeaea;
    padding: 24px 18px;
    border-radius: 12px;
}
/* Aviso de descarga prohibida */
.aviso-prohibido {
    color: #c0392b;
    background: #fff3f2;
    border: 1.5px solid #e47c7c;
    padding: 14px 18px;
    font-size: 1.09em;
    text-align: center;
    border-radius: 9px;
    margin: 16px auto 22px auto;
    max-width: 400px;
    font-weight: 500;
}
/* Botón desactivado estilo Inmacelis PRO */
.boton.disabled, .boton[disabled] {
    background: #ddd !important;
    color: #aaa !important;
    border: 1.5px solid #ccc !important;
    pointer-events: none;
    opacity: 0.74;
    cursor: not-allowed !important;
}
/* PROTECCIÓN extra anti-copia/imprimir/guardar */
.certificado-box, .certificado-box * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.certificado-box img,
.certificado-box embed {
    pointer-events: none !important;
}
/* Responsive para móviles */
@media (max-width: 400px) {
    .certificado-box {
        max-width: 98vw;
        padding: 10px 2vw 18px 2vw;
    }
    .certificado-box .archivo {
        max-width: 99vw;
        max-height: 210px;
    }
}

@media print {
    .certificado-box, .descargar, .volver, .nombre-archivo, .dias-disponibles {
        display: none !important;
    }
}
body {
    -webkit-touch-callout: none !important; /* iOS */
}

/* ======================== FIN VER_CERTIFICADOS.PHP ======================== */
/* SUBFAMILIA */
/* ====================== VER_GALERIA_CERTIFICADOS.PHP ====================== */

/* Contenedor principal de la galería */
.container-cert {
    max-width: 800px; /* AJUSTA aquí el ancho máximo del contenedor principal */
    width: 100%;
    padding: 0px 10px 0px 10px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Galería de certificados */
.galeria-cert {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 18px #000;
    padding: 22px 12px 18px 12px;
    margin: 30px auto 28px auto;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Caja individual de cada certificado */
.doc-visual {
    margin: 0 auto 36px auto;
    background: #eee;
    border-radius: 12px;
    box-shadow: 0 1px 8px #000;
    padding: 18px 12px 18px 12px;
    position: relative;
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

/* Título del certificado */
.doc-visual h4 {
    font-size: 1.09em;
    margin-bottom: 11px;
    text-align: center;
}

/* Etiqueta superior tipo "Solo visualización" */
.solo-visual {
    position: absolute;
    top: 10px;
    right: 18px;
    background: #dc272c;
    color: #fff;
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Canvas para renderizar PDF o imagen */
#canvas-cert,
.cert-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 600px;
    border-radius: 7px;
    box-shadow: 0 2px 10px #000;
    background: #000;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box;
}

/* Si usas <img> o <embed> directamente: */
.doc-visual img,
.doc-visual embed {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 600px;
    border-radius: 7px;
    box-shadow: 0 2px 10px #000;
    background: #000;
    box-sizing: border-box;
}

/* Mensajes de error */
.aviso-error {
    color: #dc272c;
    text-align: center;
    font-weight: bold;
    margin: 18px 0;
}

/* Responsive */
@media (max-width: 800px) {
    .container-cert, .galeria-cert, .doc-visual { max-width: 99vw; }
    #canvas-cert, .cert-canvas,
    .doc-visual img,
    .doc-visual embed { max-width: 97vw; }
}
@media (max-width: 500px) {
    #canvas-cert, .cert-canvas,
    .doc-visual img,
    .doc-visual embed { max-width: 95vw; max-height: 55vw; }
    .container-cert { padding-left: 0; padding-right: 0; }
}

/* ==================== FIN VER_GALERIA_CERTIFICADOS.PHP ==================== */
