:root {
    /* ===== COLORES BASE (Código 1) ===== */
    --rojo-linea: #b10000;
    --azul-linea: #03104d;
    --azul-fondo: #03104d;
    --blanco: #ffffff;
    --texto-claro: #000000;
    --sombra: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* ===== COLORES NECESARIOS DEL CÓDIGO 2 ===== */
    --azul-oscuro: #03104d;
    --rojo-admin: #b10000;

    /* ===== FONDO GENERAL ===== */
    --blanco-fondo: #ffffff;
}

/* ===== RESET GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===== BODY ===== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--blanco-fondo);
    color: var(--texto-claro);
    text-align: center;
    overflow-x: hidden;

    /* Bordes institucionales */
    border-top: 13px solid #03104d;
    border-bottom: 13px solid #03104d;
    box-shadow:
        inset 0 13px 0 #b10000,
        inset 0 -13px 0 #b10000;
}

/* ===== IMÁGENES LATERALES ===== */
.img-izquierda,
.img-derecha {
    position: absolute;
    top: 20px;
    width: 160px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.img-izquierda {
    left: 20px;
}

.img-derecha {
    right: 20px;
}

/* ===== TARJETA CENTRAL ===== */
.access-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--rojo-linea);
    z-index: 5;
}

/* ===== TÍTULO ===== */
h2 {
    font-size: 35px;
    margin-bottom: 25px;
    color: var(--azul-linea);
}

/* ===== BOTÓN INGRESAR ===== */
.btn-ingresar {
    text-decoration: none;
    padding: 15px 45px;
    background-color: var(--rojo-linea);
    color: white;
    font-size: 20px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s all;
    box-shadow: var(--sombra);
}

.btn-ingresar:hover {
    background-color: #ff0000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(177, 0, 0, 0.6);
}

/* ===== FORMULARIO MIEMBRO.HTML ===== */
.form-container {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.form-container h2 {
    font-size: 26px;
    font-weight: bold;
    color: #050756;
    margin-bottom: 20px;
}

.form-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
}

/* ===== INPUTS ===== */
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f9fc;
    font-size: 14px;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #03104d;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(3, 16, 77, 0.3);
}

/* ===== BOTÓN ENVÍO ===== */
.btn-enviar {
    grid-column: span 2;
    padding: 12px;
    font-size: 16px;
    background-color: #03104d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-enviar:hover {
    background-color: #020c3a;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* ===== BOTÓN REGRESAR ===== */
.btn-regresar {
    position: absolute;
    top: 200px;
    left: 20px;
    background: #03104d;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    z-index: 999;
}

.btn-regresar:hover {
    background: #b10000;
    transform: translateY(-2px);
}

/* ===== TÍTULOS ===== */
.titulo-principal {
    font-size: 64px;
    color: #020c3a;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 40px 0 30px;
    text-shadow:
        3px 3px 6px rgba(90, 10, 14, 0.8),
        0 0 15px rgba(73, 4, 4, 0.6);
}

.titulo-secundario {
    font-size: 26px;
    color: #020c3a;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(5, 25, 116, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .img-izquierda,
    .img-derecha {
        display: none;
    }

    body {
        height: auto;
        padding: 40px 20px;
    }

    .titulo-principal {
        font-size: 42px;
    }

    .titulo-secundario {
        font-size: 20px;
    }
}
