/* ============================= */
/* RESET GENERAL */
/* ============================= */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0f4c81 0%, #1473a1 40%, #1bb3a9 100%);
    min-height: 100vh;
}

/* ============================= */
/* HEADER SUPERIOR */
/* ============================= */

.header-seccion {
    background: linear-gradient(135deg, #0c3a63, #148f86);
    padding: 70px 20px 100px 20px;
    text-align: center;
    color: white;
}

.header-seccion h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: clamp(26px, 5vw, 42px);
}

/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */

.contenedor-tabla {
    width: 95%;
    max-width: 1100px;
    margin: -70px auto 60px auto;
    background: white;
    padding: 40px 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    backdrop-filter: blur(4px);
}

.contenedor-tabla h2 {
    color: #0f4c81;
    margin-bottom: 20px;
}

/* ============================= */
/* BOTONES */
/* ============================= */

button {
    font-family: inherit;
}

.btn,
.btn-filtrar {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0f4c81, #1bb3a9);
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn:hover,
.btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn:active {
    transform: scale(0.98);
}

/* ============================= */
/* TABLA */
/* ============================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: linear-gradient(135deg, #0f4c81, #1bb3a9);
    color: white;
    padding: 14px;
    text-align: center;
    font-weight: 600;
}

td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9fbff;
}

tr:hover {
    background-color: #eef5ff;
    transition: 0.2s ease;
}

/* ============================= */
/* RESPONSIVE TABLA MOBILE */
/* ============================= */

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

    table,
    thead,
    tbody,
    th,
    tr,
    td {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 18px;
        background: #ffffff;
        padding: 18px;
        border-radius: 14px;
        box-shadow: 0 5px 12px rgba(0,0,0,0.08);
    }

    td {
        text-align: left;
        padding: 8px 0;
        border-bottom: 1px solid #eee;
    }

    td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 4px;
        color: #0f4c81;
    }

    td:last-child {
        border-bottom: none;
    }
}

/* ============================= */
/* FORMULARIO PROFESIONAL */
/* ============================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f4c81;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9e3f0;
    background-color: #f8fbff;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1bb3a9;
    box-shadow: 0 0 0 2px rgba(27,179,169,0.2);
    background-color: white;
}

.full-width {
    grid-column: 1 / -1;
}

/* Responsive formulario */
@media screen and (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-seccion {
        padding: 50px 20px 70px 20px;
    }

    .contenedor-tabla {
        margin: 30px auto 40px auto;
        padding: 25px 20px;
    }
}

/* ============================= */
/* BLOQUES DE INFORMACION */
/* ============================= */

.bloque {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bloque:last-child {
    border-bottom: none;
}

.bloque h2 {
    color: #0f4c81;
    margin-bottom: 10px;
}

.imagen-contenedor {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.imagen-contenedor img {
    width: auto;
    max-width: 90%;
    max-height: 350px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}