/* Estilos específicos para la página de contacto */

/* Sección Hero */
.contact-hero {
    position: relative;
    background-image: url('/static/img/contact-hero.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 5rem 1rem;
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.contact-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease both;
}

.contact-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease both;
    animation-delay: 0.3s;
}

/* Sección principal de contacto */
.contact-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.contact-flex {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Estilos para la información de contacto */
.contact-info {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.info-content p {
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.social-contact {
    margin-top: 2rem;
}

.social-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Estilos para el formulario de contacto */
.contact-form-container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-control.is-invalid {
    border-color: var(--accent-color);
}

.invalid-feedback {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-actions {
    margin-top: 1rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Sección del mapa */
.map-section {
    height: 450px;
    width: 100%;
}

.map-section iframe {
    display: block;
}

/* Sección de FAQ */
.faq-section {
    padding: 5rem 0;
    background-color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--light-bg);
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.accordion-icon {
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.accordion-header.active {
    background-color: var(--primary-color);
}

.accordion-header.active h3 {
    color: white;
}

.accordion-header.active .accordion-icon {
    color: white;
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 1.2rem 1.5rem;
    margin: 0;
    color: var(--text-light);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media queries */
@media (max-width: 992px) {
    .contact-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-main-title {
        font-size: 2.2rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .contact-main-title {
        font-size: 1.8rem;
    }
    
    .contact-info, .contact-form-container {
        padding: 1.5rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .accordion-content p {
        padding: 1rem;
    }
}