/**
 * Footer Enhanced - Ar-Tec Invent
 * Diseño moderno y funcional para el footer del sitio
 */

/* ===== FOOTER PRINCIPAL ===== */
.enhanced-footer {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 50%, #1c1c1c 100%);
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

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

.enhanced-footer::after {
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.footer-container {
    position: relative;
    z-index: 2;
}

/* ===== SECCIONES DEL FOOTER ===== */
.footer-section {
    margin-bottom: 50px;
    padding: 0 15px;
}

.footer-section h4 {
    color: #fbb03b;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #fbb03b, #ff8c00);
    border-radius: 1px;
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.contact-info {
    background: rgba(251, 176, 59, 0.1);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(251, 176, 59, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: #fbb03b;
    font-size: 16px;
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fbb03b;
}

/* ===== ENLACES ÚTILES ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.footer-links a::before {
    content: '▶';
    color: #fbb03b;
    font-size: 10px;
    margin-right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fbb03b;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* ===== PRODUCTOS DESTACADOS ===== */
.featured-products {
    display: grid;
    gap: 15px;
}

.product-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item:hover {
    background: rgba(251, 176, 59, 0.1);
    border-color: rgba(251, 176, 59, 0.3);
    transform: translateY(-2px);
}

.product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.product-item .product-info h6 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.product-item .product-info span {
    color: #fbb03b;
    font-size: 12px;
    font-weight: 500;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: linear-gradient(135deg, rgba(251, 176, 59, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(251, 176, 59, 0.2);
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-section h5 {
    color: #fbb03b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.newsletter-section p {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: #aaaaaa;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #fbb03b;
    box-shadow: 0 0 0 2px rgba(251, 176, 59, 0.2);
}

.newsletter-btn {
    background: linear-gradient(135deg, #fbb03b 0%, #ff8c00 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 176, 59, 0.3);
}

/* ===== REDES SOCIALES ===== */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* ===== CERTIFICACIONES ===== */
.certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(251, 176, 59, 0.1);
    border-color: rgba(251, 176, 59, 0.3);
}

.cert-item i {
    color: #fbb03b;
    margin-right: 8px;
    font-size: 16px;
}

.cert-item span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #aaaaaa;
    font-size: 14px;
    margin: 0;
}

.footer-bottom a {
    color: #fbb03b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff8c00;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .enhanced-footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .certifications {
        gap: 10px;
    }
    
    .cert-item {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .newsletter-section {
        padding: 20px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .product-item img {
        width: 40px;
        height: 40px;
    }
}

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

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ===== EFECTOS HOVER GLOBALES ===== */
.enhanced-footer * {
    transition: all 0.3s ease;
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .enhanced-footer * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== FORMULARIO DE CONTACTO MEJORADO ===== */
.contact-form-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-form-section h5 {
    color: #fbb03b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.contact_form input,
.contact_form textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333333 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

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

.contact_form input::placeholder,
.contact_form textarea::placeholder {
    color: #666666 !important;
}

.contact_btn {
    background: linear-gradient(135deg, #fbb03b 0%, #ff8c00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

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

/* ===== MODO OSCURO ADICIONAL ===== */
@media (prefers-color-scheme: dark) {
    .enhanced-footer {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    }
}
