/**
 * Contact Section - Ar-Tec Invent
 * Estilos para la sección de contacto 50/50
 */

/* ===== SECCIÓN DE CONTACTO ===== */
.contact-section {
    background: 
        radial-gradient(circle at 15% 85%, rgba(251, 176, 59, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(255, 140, 0, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(251, 176, 59, 0.03) 0%, transparent 70%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 80px 0 80px 0 !important;
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(251, 176, 59, 0.02) 2px,
            rgba(251, 176, 59, 0.02) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255, 140, 0, 0.02) 2px,
            rgba(255, 140, 0, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

/* ALTERNATIVA MÁS SUTIL - Descomenta para usar:
.contact-section {
    background: 
        radial-gradient(circle at 30% 70%, rgba(251, 176, 59, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(255, 140, 0, 0.04) 0%, transparent 40%),
        linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
*/

/* VERSIÓN MUY VISIBLE PARA PRUEBAS - Comentada
.contact-section {
    background: 
        radial-gradient(circle at 20% 80%, rgba(251, 176, 59, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.25) 0%, transparent 50%),
        linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
*/

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbb03b 0%, #ff8c00 50%, #fbb03b 100%);
    z-index: 3;
}

/* Asegurar que el contenido esté por encima del patrón de fondo */
.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(251, 176, 59, 0.05) 8px,
            rgba(251, 176, 59, 0.05) 10px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255, 140, 0, 0.035) 8px,
            rgba(255, 140, 0, 0.035) 10px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.contact-info-section {
    padding-right: 50px;
    padding-left: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.contact-info-section h2 {
    color: #1c1c1c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
    position: relative;
}

.contact-info-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fbb03b, #ff8c00);
    border-radius: 2px;
}

.contact-info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.contact-intro {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 45px;
    margin-top: 0;
}

/* ===== DETALLES DE CONTACTO ===== */
.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 22px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #fbb03b;
    min-height: 80px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fbb03b 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
}

.contact-icon i {
    color: #ffffff;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.contact-content h4 {
    color: #1c1c1c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.2;
}

.contact-content p {
    color: #333333;
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: 0;
    line-height: 1.4;
}

.contact-content p a {
    color: #fbb03b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-content p a:hover {
    color: #ff8c00;
}

.contact-content small {
    color: #888888;
    font-size: 14px;
    margin-top: 0;
    line-height: 1.3;
}

.contact-content small a {
    color: #fbb03b;
    text-decoration: none;
}

.contact-content small a:hover {
    text-decoration: underline;
}

/* ===== REDES SOCIALES EN CONTACTO ===== */
.social-links-contact {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 0;
}

.social-links-contact h4 {
    color: #1c1c1c;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-links-contact .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links-contact .social-link {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-links-contact .social-link:hover {
    background: #fbb03b;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(251, 176, 59, 0.4);
}

.social-links-contact .social-link i {
    font-size: 18px;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form-section {
    margin-bottom: 0;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.contact-form-section h2 {
    color: #1c1c1c;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 0;
    position: relative;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fbb03b, #ff8c00);
    border-radius: 2px;
}

.form-intro {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    margin-top: 0;
}

.contact-form-container {
    background: #ffffff;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(251, 176, 59, 0.1);
    margin-top: 0;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbb03b;
    box-shadow: 0 0 0 3px rgba(251, 176, 59, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
    font-size: 15px;
}

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

.btn-submit {
    background: linear-gradient(135deg, #fbb03b 0%, #ff8c00 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 176, 59, 0.4);
}

.btn-submit i {
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== MENSAJES DE ESTADO ===== */
#note {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-info-section {
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 50px;
    }
    
    .contact-form-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    /* Ajustar patrón de fondo en móvil */
    .contact-section::after {
        background: 
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 1px,
                rgba(251, 176, 59, 0.015) 1px,
                rgba(251, 176, 59, 0.015) 2px
            ),
            repeating-linear-gradient(
                -45deg,
                transparent,
                transparent 1px,
                rgba(255, 140, 0, 0.015) 1px,
                rgba(255, 140, 0, 0.015) 2px
            );
    }
    
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .contact-intro,
    .form-intro {
        margin-bottom: 30px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .contact-item {
        padding: 18px;
        margin-bottom: 20px;
        min-height: 70px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .contact-form-container {
        min-height: 450px;
    }
    
    .social-links-contact {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .contact-intro,
    .form-intro {
        margin-bottom: 25px;
        font-size: 15px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .contact-item {
        padding: 15px;
        margin-bottom: 18px;
        min-height: 65px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .contact-icon i {
        font-size: 14px;
    }
    
    .contact-form-container {
        min-height: 400px;
    }
    
    .social-links-contact {
        padding: 20px;
    }
}

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

.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== EFECTOS HOVER ===== */
.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item:hover .contact-icon i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    40% {
        transform: translate(-50%, -50%) translateY(-5px);
    }
    60% {
        transform: translate(-50%, -50%) translateY(-3px);
    }
}
