/* ============================
   SECCIÓN DE CONTACTO - ESTILO FINAL OPTIMIZADO
   ============================ */

.contact-section {
    padding: 50px 0;
    background: #f8f9fa;
    position: relative;
    color: #222;
}

/* ===== Encabezado ===== */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    color: #1e2a33;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    color: #333;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Contenedor principal ===== */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

/* ===== Columna de información ===== */
.contact-info-container {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-box {
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ===== Íconos de información ===== */
.info-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    color: #e74c3c;
    transition: transform 0.3s ease, color 0.3s ease;
}

.info-item:hover .info-icon {
    transform: translateY(-3px);
    background: #e74c3c;
}

.info-item:hover .info-icon svg {
    color: #fff;
}

/* ===== Texto de información ===== */
.info-content h3 {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-weight: 600;
}

.info-content p, 
.info-content a {
    color: #3c3c3c;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s;
}

.info-content a:hover {
    color: #e74c3c;
}

/* ===== Redes sociales ===== */
.social-media {
    border: none;
    margin-top: 15px;
    padding-top: 0;
    border-top: 1px solid #f0f0f0;
}

.social-media h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

/* ==== Íconos sociales estilo glass ==== */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    color: #e74c3c;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: #e74c3c;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
}

.social-icon:hover svg {
    color: #fff;
}

/* ===== Mapa ===== */
.contact-map {
    flex: 1.5;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    height: 420px;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info-container {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        padding: 25px 20px;
        box-sizing: border-box;
        text-align: center;
    }
    
    .contact-map {
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 10px;
        padding: 12px 0;
    }
    
    .info-icon {
        margin: 0 auto 10px;
    }
    
    .info-content {
        width: 100%;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }
    
    .contact-info-container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .info-icon {
        margin: 0 auto 8px;
    }
    
    .contact-map {
        height: 250px;
        border-radius: 8px;
    }
    
    .info-content a {
        display: inline-block;
        padding: 5px 0;
    }

    .info-item {
        margin: 0 5px;
        padding: 10px 0;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}
