/* Estilos específicos para la página Contacto */

/* Hero Section */
.contact-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)), 
                url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1472&q=80') no-repeat center center;
    background-size: cover;
    color: var(--dark);
    text-align: center;
    padding: 100px 0;
    margin-top: 80px;
}

.contact-hero .section-pretitle {
    color: var(--primary);
}

.about-hero .section-pretitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.contact-hero .section-title {
    color: var(--secondary);
    text-shadow: none;
}

.contact-hero .section-title::after {
    display: none; /* Elimina la línea debajo del título */
}

.contact-hero .section-subtitle {
    color: var(--gray);
    max-width: 700px; /* Limita el ancho para mejor legibilidad */
    margin-left: auto;
    margin-right: auto; /* Centra el elemento */
    padding: 0 20px; /* Añade padding en móviles */
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact Container */
.contact-section {
    padding: 60px 0;
    background-color: var(--light);
}

.simple-contact-container {
    display: flex;
    gap: 50px;
    max-width: 700px;
    margin: 0 auto;
}

.simple-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.contact-details h3 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--gray);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.contact-form-wrapper {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-title {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modern-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.modern-form .full-width {
    flex: 0 0 100%;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
}

.input-with-icon, .select-with-icon {
    position: relative;
}

.input-with-icon i, .select-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-with-icon input, 
.select-with-icon select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.select-with-icon select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.modern-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    min-height: 150px;
    font-family: 'Inter', sans-serif;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.form-note {
    color: var(--gray);
    font-size: 0.9rem;
}

.form-note i {
    margin-right: 5px;
    color: var(--primary);
}

.social-section {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.social-section h3 {
    margin-bottom: 25px;
    color: var(--secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link span {
    font-size: 0.9rem;
}

.social-link.facebook { background-color: #1D7874; }
.social-link.instagram { background: #1D7874; }
.social-link.linkedin { background-color: #1D7874; }
.social-link.youtube { background-color: #1D7874; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Map Section */
.map-section-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 0;
    background-color: var(--light);
}

.map-container-fullwidth {
    width: 100%;
    min-width: 1240px;
    height: 500px; /* Altura ajustable */
}

.map-container-fullwidth iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajustes para el contenedor principal */
.container-no-padding {
    padding-left: 0;
    padding-right: 0;
}

.cta-buttons .btn {
    background: #264653;
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
} 

.cta-buttons .btn:hover {
    background: #f8f9fa;
    color: #264653;
    transform: translateY(-3px);
}
.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: auto;
        padding: 100px 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}