
/* Hero Section */
.bg-contactos-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #4a4a4a 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.bg-contactos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.bg-contactos-hero h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
}

.bg-contactos-hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Contenedor Principal */
.contactos-main {
    padding: 30px 0 80px;
    background: #f9f9f9;
}

/* Sección de Información de Contacto */
.contact-info-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(133, 95, 49, 0.1);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid rgba(133, 95, 49, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
}

.contact-info-card.hover-effect {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-content {
    flex-grow: 1;
}

.contact-info-content h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-info-content p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* Imagen de contacto */
.contact-image-section {
    margin-top: 40px;
}

.contact-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.contact-image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
}

.image-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Formulario de Contacto */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(133, 95, 49, 0.1);
    height: 100%;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header .section-title {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.form-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Estilos del formulario */
.form-label {
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--primary-color);
}

.form-control {
    border: 2px solid rgba(133, 95, 49, 0.15);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(133, 95, 49, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* reCAPTCHA */
.g-recaptcha {
    margin: 15px 0;
}

.recaptcha-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Botón de envío */
.btn-contact-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    width: 100%;
}

.btn-contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(133, 95, 49, 0.3);
}

.btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(133, 95, 49, 0.1);
}

/* Mapa */
.map-section {
    margin-top: 60px;
}

.map-section .section-title {
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.map-placeholder {
    position: relative;
}

.map-image img {
    width: 100%;
    height: auto;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(133, 95, 49, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-align: center;
    padding: 30px;
}

.map-overlay h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.map-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-map-link {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(133, 95, 49, 0.3);
    color: white;
}

/* Alertas */
.alert {
    border-radius: 10px;
    padding: 20px;
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-image-section {
        margin-top: 30px;
    }
    
    .contact-form-section {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .bg-contactos-hero {
        padding: 60px 0 40px;
    }
    
    .bg-contactos-hero h2 {
        font-size: 2.2rem;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 30px 20px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 20px;
    }
    
    .map-overlay h4 {
        font-size: 1.5rem;
    }
    
    .map-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn-contact-submit,
    .btn-whatsapp,
    .btn-map-link {
        width: 100%;
        justify-content: center;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
}