/* --- Contacto Section --- */
.contacto-section {
    font-family: 'Roboto', Arial, sans-serif;
}

/* Hero Section */
.contacto-hero {
    background: linear-gradient(135deg, #C93742 0%, #a82a32 50%, #8b2329 100%);
    padding: 140px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/edificio.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.contacto-hero .container {
    position: relative;
    z-index: 2;
}

/* Información de Contacto */
.contacto-info {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contacto-item[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease forwards;
}

.contacto-item:nth-child(2) { animation-delay: 0.1s; }
.contacto-item:nth-child(3) { animation-delay: 0.2s; }
.contacto-item:nth-child(4) { animation-delay: 0.3s; }
.contacto-item:nth-child(5) { animation-delay: 0.4s; }

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

.contacto-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C93742 0%, #a82a32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(201, 55, 66, 0.3);
}

.contacto-details h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contacto-link {
    color: #C93742;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-link:hover {
    color: #a82a32;
    text-decoration: underline;
}

/* Redes Sociales */
.social-link {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #C93742;
    border-color: #C93742;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 55, 66, 0.4);
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Formulario */
.contacto-form-container {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.2s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #C93742;
    box-shadow: 0 0 0 0.2rem rgba(201, 55, 66, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
    border-color: #C93742;
    box-shadow: 0 0 0 0.2rem rgba(201, 55, 66, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #C93742 0%, #a82a32 100%);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 55, 66, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #a82a32 0%, #8b2329 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 55, 66, 0.6);
}

/* Mapa */
.contacto-map {
    margin-top: 5rem;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Validación de Formulario */
.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.valid-feedback {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 991px) {
    .contacto-hero {
        padding: 120px 0 60px 0;
    }
    
    .contacto-info {
        padding: 2rem;
        margin-bottom: 3rem;
    }
    
    .contacto-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .contacto-hero {
        padding: 100px 0 50px 0;
    }
    
    .contacto-hero h1 {
        font-size: 2.5rem;
    }
    
    .contacto-info {
        padding: 1.5rem;
    }
    
    .contacto-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animaciones adicionales */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Estados de carga */
.btn-danger:disabled {
    background: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-danger .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}