/* Estilos para la página de contacto */

/* Hero Section */
.contact-hero {
    position: relative;
    height: 35vh;
    min-height: 250px;
    background: linear-gradient(to right, rgba(26, 82, 118, 0.9), rgba(40, 116, 166, 0.8)), url('/uploads/fondo-church.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: -60px;
    text-align: center;
    overflow: hidden;
}

.contact-hero .hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Sección de contacto */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

/* Tarjeta de información de contacto */
.contact-info-card {
    background: linear-gradient(135deg, #1a5276, #2874a6);
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-info-header {
    margin-bottom: 3rem;
    position: relative;
}

.contact-info-header h2 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 90%;
}

.contact-info-header::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.contact-info-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.contact-icon {
    background-color: rgba(255, 255, 255, 0.15);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-method:hover .contact-icon {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.contact-text p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Decoración de fondo para la tarjeta de información */
.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 0;
}

/* Social links */
.social-links {
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

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

.social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Tarjeta de formulario de contacto */
.contact-form-card {
    background-color: white;
    padding: 4rem 4rem;
    position: relative;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.contact-form-card h2 {
    font-size: 2.4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-form-card h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.form-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1.1rem 1.2rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
    outline: none;
    background-color: #fff;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Alertas */
.alert {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.08);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.08);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.alert i {
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sección de FAQ CTA */
.faq-cta {
    background: linear-gradient(to right, #f8f9fa, #edf2f7);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(26, 82, 118, 0.03);
    border-radius: 50%;
}

.faq-cta::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 250px;
    height: 250px;
    background-color: rgba(26, 82, 118, 0.03);
    border-radius: 50%;
}

.faq-cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    font-weight: 700;
}

.faq-cta p {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .contact-grid {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        max-width: 90%;
        margin: 0 auto;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .contact-section {
        padding: 4rem 1rem;
    }
    
    .contact-info-card, 
    .contact-form-card {
        padding: 3rem 2rem;
    }
    
    .contact-info-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-form-card::before {
        height: 0;
    }
    
    .contact-info-card::before,
    .contact-info-card::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 220px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-card h2,
    .contact-info-header h2,
    .faq-cta h2 {
        font-size: 2rem;
        color: #fff;
    }
    
    .form-subtitle,
    .contact-info-header p,
    .faq-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-grid {
        max-width: 100%;
        border-radius: 0;
    }
    
    .contact-info-card, 
    .contact-form-card {
        padding: 2rem 1.5rem;
        border-radius: 0;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        padding: 1rem;
    }
    
    .faq-cta {
        padding: 3rem 1rem;
    }
}
