/* ========================================
   MODERN CONTACT SECTION STYLES
   ======================================== */

.modern-contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.modern-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(27,66,119,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Header de la sección */
.contact-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1B4277;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0;
    font-weight: 400;
}

/* Contenido principal */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(27, 66, 119, 0.1), transparent);
    transition: all 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #1B4277;
    border: 3px solid #FF6B35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

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

.info-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B4277;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-link {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #1B4277;
    text-decoration: underline;
}

/* Sección de horarios */
.schedule-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.schedule-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4277;
    margin-bottom: 1.5rem;
    text-align: center;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.schedule-item.closed {
    background: #f8d7da;
    color: #721c24;
}

.schedule-item .day {
    font-weight: 600;
    color: #1B4277;
}

.schedule-item .time {
    color: #6c757d;
    font-weight: 500;
}

/* Formulario de contacto */
.contact-form-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #FF6B35;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B4277;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #6c757d;
    font-size: 1rem;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1B4277;
    background: white;
    box-shadow: 0 0 0 3px rgba(27, 66, 119, 0.1);
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1B4277;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group:focus-within i {
    color: #FF6B35;
    transform: translateY(-50%) scale(1.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.submit-btn {
    background: #1B4277;
    color: white;
    border: 2px solid #FF6B35;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #FF6B35;
    color: white;
    border-color: #1B4277;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Botón de WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

@keyframes pulse {
    0% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-btn span {
        display: none;
    }
}
