/* ---------- ESTILOS GENERALES ---------- */
body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    margin: 0;
    background: url('/images/bgmacroweb.jpg') no-repeat center center fixed;
    background-size: cover;
}

header {
    background-color: #ff6600;
    padding: 10px;
    color: white;
}

.navbar .nav-link {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
}

.container {
    padding: 20px;
}

footer {
    text-align: center;
    font-size: 12px;
    padding: 10px;
    color: #777;
}

/* ---------- BOTONES ---------- */

.boton-opcion {
    display: inline-block;
    background-color: #0069d9;
    color: white;
    padding: 20px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

    .boton-opcion:hover {
        background-color: #004fa3;
    }

.botones-menu-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.contenedor-boton {
    text-align: center;
    margin-top: 20px;
}

/* ---------- FORMULARIOS ---------- */

.formulario-contenedor {
    max-width: 360px;
    width: 90%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 2px solid #ff6600;
}

.formulario label {
    display: block;
    margin-top: 10px;
    font-size: 15px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

/* ---------- TABLA DE RESULTADOS ---------- */

.table-resultados {
    width: auto;
    max-width: 90%;
    margin: 40px auto;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

    .table-resultados th {
        background-color: #ff6600;
        color: white;
        font-size: 14px;
    }

    .table-resultados th,
    .table-resultados td {
        border: 1px solid #004fa3;
        padding: 10px;
        text-align: center;
        font-size: 14px;
    }

    .table-resultados tr:nth-child(even) {
        background-color: #f2f2f2;
    }

/* ---------- RESPONSIVE PARA CELULARES ---------- */

@media (max-width: 480px) {

    body {
        background-size: cover;
        background-attachment: scroll;
    }

    .boton-opcion {
        width: 90%;
        font-size: 17px;
        padding: 18px;
        min-width: unset;
    }

    .formulario-contenedor {
        max-width: 95%;
        padding: 20px;
    }

    input[type="text"],
    select {
        padding: 12px;
        font-size: 16px;
    }

    .table-resultados {
        display: block;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
    }

    .table-resultados th,
    .table-resultados td {
            font-size: 13px;
            padding: 8px;
    }
}
