/* ====================== BASE ====================== */
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header (sin cambios importantes) */
.contenedor1 {
    width: 100%;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 3.5px solid #e40e9d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.logos-texto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1900px;
    margin: 0 auto;
}

.ine, .iso { height: 60px; width: auto; }
.direccion {
    text-align: center;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
}

.procedimientos{
    text-align: center;
    margin: 25px 0;
    color: #1d57a8;
    font-weight: 700;
    letter-spacing: 10px;
    font-size: 2em;
}


/* ====================== DISEÑO DE TARJETAS (NUEVO) ====================== */

/* Contenedor principal en 2x2 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
    gap: 30px; /* Espacio entre tarjetas */
    max-width: 1000px;
    width: 90%;
    margin: 20px auto;
}

/* Estilo de la Tarjeta */
.tarjeta {
    background-color: #eebee6;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid #1d57a8; /* Color institucional azul */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Títulos dentro de tarjetas */
.tarjeta h2 {
    font-size: 1.1rem;
    color: #e40e9d; /* Rosa institucional para resaltar */
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* ====================== EFECTOS DE ENLACES ====================== */

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.links a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

/* El truco visual: La flecha que aparece */
.links a::before {
    content: '→';
    position: absolute;
    left: -20px; /* Empieza fuera de vista */
    opacity: 0;
    color: #1d57a8;
    transition: all 0.3s ease;
}

.links a:hover {
    color: #1d57a8;
    padding-left: 25px; /* Desplaza el texto a la derecha */
}

.links a:hover::before {
    opacity: 1;
    left: 0; /* Aparece suavemente */
}

/* Opcional: Una línea muy fina entre enlaces para separar */
.links a:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Ajuste Responsive para móviles */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* 1 columna en celulares */
    }
    
    .procedimientos {
        font-size: 1.4em;
        letter-spacing: 4px;
    }
}


/* ====================== BOTÓN SALIR ====================== */
.salir {
    margin: 40px 0;
}

.btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cerrar {
    height: 70px;
    transition: transform 0.3s ease;
}

.salir:hover .cerrar {
    transform: scale(1.2);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .logos-texto { flex-direction: column; gap: 10px; }
    .ine, .iso { height: 50px; }
    .direccion { font-size: 12px; }

    /* En móvil mostramos la imagen siempre (muy tenue) para que no quede vacío */
    .tarjeta::before {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(0.8);
    }
    .tarjeta:hover::before {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
}