/* =========================================
   ESTILOS SECCIÓN: UBICACIÓN
   ========================================= */

section.ubicacion {
    padding: 100px 0;
    background-color: #ffffff;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
}

.contenido-ubicacion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   1. HEADER
   ========================================= */
.header-ubicacion {
    text-align: center;
    margin-bottom: 50px;
}

.header-ubicacion p {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    display: inline-block;
    position: relative;
}

.header-ubicacion p::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 6px;
    background-color: var(--primary-red);
    border-radius: 10px;
}

/* =========================================
   2. CONTENEDOR PRINCIPAL
   ========================================= */
.contenedor-ubicacion {
    display: grid;
    /* Columna 1 (Mapa) es más grande (1.5fr), Columna 2 (Texto) es 1fr */
    grid-template-columns: 1.5fr 1fr; 
    gap: 0;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(31, 42, 68, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* =========================================
   3. IMAGEN MAPA (IZQUIERDA)
   ========================================= */
.img-ubicacion {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
}

.img-ubicacion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.contenedor-ubicacion:hover .img-ubicacion img {
    transform: scale(1.05);
}

/* BOTÓN FLOTANTE */
.btn-ver-mapa {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-red);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    z-index: 2;
    border: 3px solid white;
}

.btn-ver-mapa:hover {
    background-color: var(--primary-blue);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* =========================================
   4. TEXTO Y VIDEO (DERECHA)
   ========================================= */
.texto-ubicacion {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: #f9fafb;
}

.texto-ubicacion p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    border-left: 5px solid transparent;
}

.texto-ubicacion p:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ICONOS */
.texto-ubicacion p:nth-child(1) { /* Calle */
    font-weight: 700;
    color: var(--primary-blue);
    border-left-color: var(--primary-red);
}
.texto-ubicacion p:nth-child(1)::before {
    content: '📍'; font-size: 1.8rem; margin-right: 15px;
}

.texto-ubicacion p:nth-child(2) { /* Colonia */
    color: var(--text-light);
    border-left-color: var(--secondary-blue);
}
.texto-ubicacion p:nth-child(2)::before {
    content: '🏙️'; font-size: 1.8rem; margin-right: 15px;
}

.texto-ubicacion p:nth-child(3) { /* Metro */
    color: #e65100;
    background: #fff8e1;
    border-left-color: #ff9800;
    font-weight: 600;
}
.texto-ubicacion p:nth-child(3)::before {
    content: '🚇'; font-size: 1.8rem; margin-right: 15px;
}

/* --- NUEVO: ESTILO PARA EL VIDEO PEQUEÑO --- */
.video-wrapper {
    margin-top: 15px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden; /* Recorta las esquinas del video */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid #fff; /* Pequeño marco blanco */
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .contenedor-ubicacion {
        grid-template-columns: 1fr;
    }
    .img-ubicacion {
        height: 300px;
    }
    .texto-ubicacion {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .header-ubicacion p { font-size: 2.5rem; }
    .texto-ubicacion p {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}