/* ==========================================
   SECCIÓN 4: CONTACTO, REDES Y SEDES (MOBILE FIRST)
   ========================================== */

.contact-section {
    padding: 3rem 1rem;
    background-color: #ffffff;
    width: 100%;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Tarjeta única principal */
.contact-card {
    background-color: var(--soft-purple-bg, #EFEBF4);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-card-title {
    font-size: 1.35rem;
    color: var(--purple-primary);
    font-weight: 700;
    margin-bottom: 0;
}

.contact-social-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0;
}

/* Lista de información directa (Teléfono y correo) */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #444;
}

.contact-list li i {
    color: var(--purple-primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.contact-list li a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list li a:hover {
    color: var(--purple-primary);
    text-decoration: underline;
}

/* Línea divisoria sutil */
.contact-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0.2rem 0;
}

/* Botones de Redes Sociales */
.contact-social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en móvil */
    gap: 0.8rem;
}

.social-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--purple-primary);
    color: #ffffff;
    font-size: 1.3rem;
    padding: 0.9rem 0;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.social-icon-btn:active {
    transform: scale(0.95);
}

.social-icon-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Sedes y Mapas al final */
.sedes-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sedes-section-title {
    font-size: 1rem;
    color: var(--purple-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sedes-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Contenedor individual para cada sede junto a su mapa */
.sede-card-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.sede-box {
    padding: 0.9rem 1rem;
    font-style: normal; /* Remueve cursiva de <address> */
    border-left: 4px solid var(--purple-primary);
}

.sede-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--purple-primary);
    margin-bottom: 0.2rem;
}

.sede-text {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Mapa individual de cada sede */
.map-container {
    width: 100%;
    background-color: #f0f0f0;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 180px;
}


/* ==========================================
   MEDIA QUERY: TABLETS Y ESCRITORIO (min-width: 768px)
   ========================================== */
@media (min-width: 768px) {
    .contact-section {
        padding: 4rem 2rem;
    }

    .contact-card {
        padding: 2.5rem;
        gap: 1.5rem;
    }

    .contact-card-title {
        font-size: 1.6rem;
    }

    .contact-social-desc {
        font-size: 0.95rem;
    }

    .contact-list li {
        font-size: 0.95rem;
    }

    /* Las dos sedes con sus mapas se colocan lado a lado */
    .sedes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .sede-box {
        padding: 1.1rem;
    }

    .map-container iframe {
        height: 200px;
    }

    /* Los 6 íconos de redes en una sola línea horizontal */
    .contact-social-icons {
        grid-template-columns: repeat(6, 1fr);
    }
}