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

body {
    background-color: #111;
    color: #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
}

/* ----- CONTENEDOR UNIVERSAL ----- */
.container {
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid #FFD700;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 95%;
    margin: 50px auto;
}

/* ----- TÍTULOS ----- */
h1, h2, h3 {
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

/* ----- FORMULARIOS ----- */
label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="datetime-local"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 18px;
    background-color: #1c1c1c;
    color: white;
    border: 1px solid #FFD700;
    border-radius: 8px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #ffe100;
    background-color: #2a2a2a;
}

/* ----- BOTONES ----- */
button {
    background-color: #FFD700;
    color: #111;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #e6c200;
}

/* ----- TABLAS ----- */
table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    color: white;
    font-size: 17px;
}

th, td {
    padding: 10px;
    border: 1px solid #FFD700;
    text-align: left;
}

th {
    background-color: #222;
    color: #FFD700;
}

/* ----- MENSAJES ----- */
.error {
    color: #ff4d4d;
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
}

.success {
    color: #00ff99;
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
}

/* ----- NAVEGACIÓN HISTÓRICOS ----- */
.nav-historicos {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid #FFD700;
    padding: 10px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.nav-historicos a {
    margin: 0 10px;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    background: transparent;
}

.nav-historicos a:hover {
    background-color: #FFD700;
    color: #111;
}

/* ----- MINIATURAS DE IMAGEN ----- */

.miniatura {
    max-width: 200px;
    border-radius: 8px;
    cursor: zoom-in;
    transition: 0.3s;
}

.overlay-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-img img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid gold;
    border-radius: 12px;
    box-shadow: 0 0 25px gold;
    cursor: zoom-out;
}




/* ----- RESPONSIVE MOBILE ----- */
@media screen and (max-width: 600px) {
    body, input, button, select, label {
        font-size: 20px;
    }

    .container {
        width: 95%;
        padding: 20px;
    }

    table {
        font-size: 16px;
    }

    .nav-historicos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-historicos a {
        display: block;
        margin: 6px 0;
        width: 90%;
        text-align: center;
        font-size: 18px;
        padding: 10px;
    }
}


