/* Estilos para la página de contactos */
:root {
    --primary-color: #4f2987;
    --secondary-color: #bd8222;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Sección de contacto */
.contacto-section {
    padding: 80px 0;
    /* padding: 0;  */
    background-image: url('../images/contacto/bg-contacto.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.438);
    z-index: 1;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Información de contacto */
.contacto-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, var(--medium-gray), #ffc4007a);
    color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contacto-title {
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contacto-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-text p {
    margin: 0 0 5px 0;
    font-size: 16px;
    line-height: 1.5;
}

.social-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-icons-contact {
    display: flex;
    gap: 15px;
}

.social-icon-contact {
    width: 40px;
    height: 40px;
    background-color: rgba(98, 6, 141, 0.671);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-icon-contact:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Formulario de contacto */
.contacto-form-container {
    flex: 1;
    min-width: 300px;
    background-color:#ffffff8e;
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 41, 135, 0.2);
}

.form-check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: 18px;
    height: 18px;
}

.form-check label {
    font-size: 14px;
}

.submit-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Sección del mapa */
.mapa-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.mapa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mapa-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.mapa-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.mapa-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .contacto-container {
        flex-direction: column;
    }
    
    .contacto-info, 
    .contacto-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contacto-section,
    .mapa-section {
        padding: 60px 0;
    }
    
    .contacto-title,
    .form-title,
    .mapa-title {
        font-size: 24px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .contacto-info,
    .contacto-form-container {
        padding: 30px 20px;
    }
    
    .info-items {
        gap: 20px;
    }
}

/* Añadir box-sizing global */
* {
    box-sizing: border-box;
}

/* Modificar sección de contacto */
.contacto-section {
    padding: 0;
    overflow-x: hidden; /* Prevenir desbordamiento horizontal */
}

/* Ajustar contenedor principal */
.contacto-container {
    max-width: 100%;
    padding: 0 15px; /* Reducir padding en móviles */
}

/* Mejoras en media queries */
@media (max-width: 576px) {
    .contacto-container {
        padding: 0 10px; /* Ajuste fino para móviles pequeños */
    }
    
    .contacto-info,
    .contacto-form-container {
        min-width: 100%; /* Forzar ancho completo */
        padding: 25px 15px;
    }
    
    .info-item {
        flex-wrap: wrap;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
    }
}

/* Corregir fondo en móviles */
@media (max-width: 768px) {
    .contacto-section {
        background-attachment: scroll;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacto-info,
.contacto-form-container,
.mapa-wrapper {
    animation: fadeIn 0.8s ease-out forwards;
}

.contacto-form-container {
    animation-delay: 0.3s;
}

.mapa-wrapper {
    animation-delay: 0.6s;
}