.contact-section {
    background-color: var(--tacmex-dark);
    position: relative;
    padding: 5rem 2rem;
}

.contact-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.contact-section .section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem; 
    font-weight: 300; 
    text-transform: uppercase;
    letter-spacing: 3px; 
    margin: 0;
    position: relative;
    display: inline-block;
    color: var(--tacmex-white);
    line-height: 1.1;
}

.contact-section .section-title::after {
    content: '';
    position: absolute;
    width: 120px; 
    height: 2px; 
    background: var(--tacmex-white); 
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: expandLine 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 120px;
        opacity: 1;
    }
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #1b1b1b, #2a2a2a);
}

.contact-p {
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.contact-social-bar {
    margin: 3rem 0;
    padding: 1rem;
    background-color: var(--tacmex-dark-gray);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.contact-list-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-list-horizontal li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Delays escalonados para cada contacto */
.contact-list-horizontal li:nth-child(1) { animation-delay: 1.2s; }
.contact-list-horizontal li:nth-child(2) { animation-delay: 1.4s; }
.contact-list-horizontal li:nth-child(3) { animation-delay: 1.6s; }
.contact-list-horizontal li:nth-child(4) { animation-delay: 1.8s; }

.contact-list-horizontal li:hover {
    transform: translateY(-5px); 
}

/* Enlaces de contacto */
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--tacmex-white);
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--tacmex-green);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-link i {
    font-size: 1.25rem;
    color: var(--tacmex-green);
    transition: color 0.3s ease;
}

.contact-link:hover i {
    color: var(--tacmex-white);
}

.contact-link span {
    font-family: var(--font-body);
    font-weight: 300; 
}

/* Contenido principal: imagen y mapa con animación */
.contact-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 2s forwards;
}

.contact-image-column {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 450px;
    transition: transform 0.3s ease;
}

.contact-image-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-image-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-image-column:hover::after {
    opacity: 1;
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contact-image-column:hover .contact-img {
    transform: scale(1.02);
}

/* Columna del mapa con efectos sutiles */
.contact-map-column {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 450px;
    transition: transform 0.3s ease;
}

.contact-map-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-map {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =============================================
   RESPONSIVE 
   ============================================= */
   
/* Tablets */
@media (max-width: 992px) {
    .contact-section .section-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .contact-list-horizontal {
        gap: 1.5rem;
    }
    
    .contact-list-horizontal li {
        font-size: 1rem;
    }
    
    .contact-main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-image-column,
    .contact-map-column {
        height: 350px;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem;
    }
    
    .contact-section .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .contact-section .section-title::after {
        width: 80px;
    }
    
    .contact-social-bar {
        padding: 1.5rem 1rem;
    }
    
    .contact-list-horizontal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-list-horizontal li {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-list-horizontal li:last-child {
        border-bottom: none;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
    
    .contact-image-column,
    .contact-map-column {
        height: 300px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .contact-section .section-title {
        font-size: 1.75rem;
    }
    
    .contact-list-horizontal li {
        font-size: 0.9rem;
    }
    
    .contact-link i {
        font-size: 1.1rem;
    }
    
    .contact-image-column,
    .contact-map-column {
        height: 250px;
    }
}