/* ======================================= */
/* 1. MAPA (Asegura Ancho y Centrado) */
/* ======================================= */
/* map-wrapper y references-box comparten el mismo ancho máximo */
.map-wrapper {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    /* El padding se lo dejamos al container o section para más control */
}

#map img {
    width: 100%;
    height: auto;
    border: 4px solid #4B2E2E;
    display: block;
}

/* ======================================= */
/* 2. RECUADRO DE REFERENCIAS (Asegura Ancho y Centrado) */
/* ======================================= */
.references-box {
    /* 💥 REGLAS PARA CENTRAR Y LIMITAR EL ANCHO (Igual que el mapa) 💥 */
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    /* Centrar horizontalmente */

    /* 💥 PUNTO 3: MARGEN SUPERIOR (0.50 cm = 5px) 💥 */
    margin-top: 5px;

    border: 2px solid #4B2E2E;
    padding: 15px;
    background: #fafafa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Título decorativo */
.references-title {
    text-align: center;
    color: #4B2E2E;
    font-weight: bold;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 15px auto;
}

.references-title::before,
.references-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #4B2E2E;
}

.references-title::before {
    left: -50px;
}

.references-title::after {
    right: -50px;
}


/* ======================================= */
/* 3. CONTENIDO (Dos Columnas) */
/* ======================================= */

.references-content {
    display: flex;
    /* Habilita el flexbox para las dos columnas */
    justify-content: space-between;
    gap: 30px;
    /* Espacio entre las columnas */
}

.references-content .col-left,
.references-content .col-right {
    flex-basis: 50%;
    /* Asegura que cada columna ocupe la mitad */
}

.ref-item {
    margin-bottom: 5px;
    font-size: 0.95em;
    line-height: 1.4;
}

.ref-item a {
    color: #2c3e50;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

/* Efecto al pasar el mouse sobre los enlaces de referencia */
.ref-item a:hover {
    color: #0066cc;
    /* Nuevo color azul al pasar el mouse */
    text-decoration: underline;
    /* Mantiene el subrayado */
}


/* ======================================= */
/* 4. RESPONSIVIDAD (Móviles) */
/* ======================================= */
@media (max-width: 768px) {
    /* El mapa ya es responsive por width: 90% */

    /* Las dos columnas se apilan */
    .references-content {
        flex-direction: column;
        gap: 0;
    }

    .references-content .col-left,
    .references-content .col-right {
        flex-basis: auto;
        text-align: center;
    }

    .references-title::before,
    .references-title::after {
        width: 20px;
    }

    .references-title::before {
        left: -30px;
    }

    .references-title::after {
        right: -30px;
    }
}