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

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

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f0f4f8;
    color: #1a2b3c;
    line-height: 1.7;
}


/* ===== CABECERA ===== */

.hero {
    min-height: 300px;

    /* Degradado en tonos azul oscuro y azul cobalto */
    background: linear-gradient(
        135deg,
        #0a192f 0%,
        #1e3a8a 50%,
        #2563eb 100%
    );

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    padding: 40px 20px;

    position: relative;
}


/* ===== ESPACIO DEL ESCUDO ===== */

.escudo {
    width: 150px;
    height: 150px;

    background: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    flex-shrink: 0;
}

.escudo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ===== TITULO ===== */

.titulo {
    text-align: left;
}

.titulo h1 {
    font-size: 3.5rem;

    text-transform: uppercase;

    letter-spacing: 3px;

    text-shadow:
        3px 3px 0 #070d19,
        -1px -1px 0 #070d19;
}

.titulo p {
    font-size: 1.3rem;

    font-weight: bold;

    margin-top: 5px;

    color: #93c5fd;
}


/* ===== MENU ===== */

nav {
    background: #0a192f;

    display: flex;
    justify-content: center;

    gap: 35px;

    padding: 15px;

    border-bottom: 3px solid #3b82f6;
}

nav a {
    color: #e2e8f0;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;
}

nav a:hover {
    color: #60a5fa;
}


/* ===== CONTENIDO ===== */

main {
    max-width: 1000px;

    margin: 40px auto;

    padding: 0 20px;
}

section {
    background: white;

    padding: 30px;

    margin-bottom: 30px;

    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    border-left: 6px solid #1e40af;
}

section h2 {
    color: #1e3a8a;

    margin-bottom: 15px;

    font-size: 2rem;
}


/* ===== TARJETAS ===== */

.tarjetas {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 25px;
}

.tarjetas article {
    padding: 20px;

    background: #f1f5f9;

    border-top: 5px solid #3b82f6;

    border-radius: 8px;
}

.tarjetas h3 {
    color: #1e3a8a;

    margin-bottom: 10px;
}


/* ===== FRASE ===== */

.frase {
    margin-top: 20px;

    padding: 25px;

    text-align: center;

    background: #1e40af;

    color: white;

    border-radius: 8px;

    font-size: 1.4rem;

    font-weight: bold;
}


/* ===== FOOTER ===== */

footer {
    background: #0a192f;

    color: #94a3b8;

    text-align: center;

    padding: 25px;

    margin-top: 50px;

    border-top: 2px solid #1e3a8a;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 700px) {

    .hero {
        flex-direction: column;

        text-align: center;
    }

    .titulo {
        text-align: center;
    }

    .titulo h1 {
        font-size: 2.4rem;
    }

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

    nav {
        flex-wrap: wrap;

        gap: 15px;
    }
}


/* ===== SECCIÓN NOSOTROS ===== */

.historia-articulo {
    background: #f1f5f9;
    padding: 18px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #2563eb;
}

.historia-articulo h3 {
    color: #1e3a8a;
    margin-bottom: 5px;
}

/* Grilla del Equipo / Directiva */
.grilla-equipo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-perfil {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 5px solid #1e40af;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: #cbd5e1;
    color: #1e3a8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 12px auto;
}

.tarjeta-perfil h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
}

.tarjeta-perfil .cargo {
    color: #2563eb;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Lista de Valores */
.valores {
    border-left-color: #2563eb;
}

.lista-valores {
    list-style-type: none;
    margin-top: 15px;
    padding: 0;
}

.lista-valores li {
    padding: 10px 15px;
    background: #f8fafc;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 3px solid #3b82f6;
}

@media (max-width: 700px) {
    .grilla-equipo {
        grid-template-columns: 1fr;
    }
}


/* ===== SECCIÓN SERVICIOS Y TABLAS ===== */

.contenedor-tabla {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

thead tr {
    background-color: #1e3a8a;
    color: #ffffff;
    text-align: center;
}

th, td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-size: 1.1rem;
    font-weight: bold;
}

th:first-child, td:first-child {
    text-align: left;
    font-weight: bold;
    color: #0f172a;
}

tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

tbody tr:hover {
    background-color: #e2e8f0;
}

tbody tr:last-child td {
    color: #1d4ed8;
    font-size: 1.1rem;
    border-bottom: none;
}

.checklist-servicios {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.checklist-servicios li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.checklist-servicios li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    top: 0;
}


/* ===== SECCIÓN FORMULARIOS ===== */

.formulario-estilo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo-grupo label {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1rem;
}

.campo-grupo input[type="text"],
.campo-grupo input[type="email"],
.campo-grupo input[type="tel"],
.campo-grupo input[type="password"],
.campo-grupo input[type="number"],
.campo-grupo input[type="date"],
.campo-grupo select,
.campo-grupo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo-grupo input:focus,
.campo-grupo select:focus,
.campo-grupo textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.4);
}

.opciones-radio {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.radio-label {
    font-weight: normal !important;
    color: #1e293b !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.checkbox-grupo {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-grupo label {
    font-weight: normal;
    color: #334155;
    cursor: pointer;
}

.btn-formulario {
    background-color: #1e40af;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.btn-formulario:hover {
    background-color: #2563eb;
}

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


/* ===== BOTONES DE ENLACE EN TARJETAS ===== */

.btn-enlace {
    display: inline-block;
    background-color: #1e40af;
    color: white !important;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-enlace:hover {
    background-color: #2563eb;
}