/**
 * Simplified Footer - Ar-Tec Invent
 * Footer simplificado con enlaces, productos destacados y newsletter
 */

/* ===== FOOTER SIMPLIFICADO ===== */
.simplified-footer {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 50%, #1c1c1c 100%);
    color: #ffffff;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

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

.footer-container {
    position: relative;
    z-index: 2;
}

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

.footer-section h4 {
    color: #fbb03b;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    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;
}

.footer-section h4 i {
    margin-right: 8px;
    color: #fbb03b;
}

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

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

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

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

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

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

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

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

.product-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.product-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.product-info h6 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-info h6 a:hover {
    color: #fbb03b;
}

.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: 12px;
    padding: 30px;
    border: 1px solid rgba(251, 176, 59, 0.2);
    text-align: center;
}

.newsletter-section h4 {
    color: #fbb03b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.newsletter-section h4::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

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

/* Estados de validación del input */
.newsletter-form input.input-valid {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.newsletter-form input.input-error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.newsletter-btn {
    background: linear-gradient(135deg, #fbb03b 0%, #ff8c00 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.3);
}

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

.newsletter-section small {
    color: #888888;
    font-size: 12px;
    display: block;
    margin-bottom: 25px;
}

/* ===== MENSAJES DEL NEWSLETTER ===== */
.newsletter-message {
    margin-top: 15px;
    animation: newsletterSlideIn 0.3s ease-out;
}

.newsletter-message-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid;
}

.newsletter-message-text {
    flex: 1;
}

.newsletter-message i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Mensaje de éxito */
.newsletter-message-success .newsletter-message-content {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.newsletter-message-success i {
    color: #28a745;
}

/* Mensaje de error */
.newsletter-message-error .newsletter-message-content {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.newsletter-message-error i {
    color: #dc3545;
}

/* Mensaje de información */
.newsletter-message-info .newsletter-message-content {
    background: linear-gradient(135deg, rgba(251, 176, 59, 0.15) 0%, rgba(251, 176, 59, 0.1) 100%);
    border-color: rgba(251, 176, 59, 0.3);
    color: #fbb03b;
}

.newsletter-message-info i {
    color: #fbb03b;
}

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

.newsletter-message-fade-out {
    animation: newsletterSlideOut 0.3s ease-in forwards;
}

@keyframes newsletterSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===== REDES SOCIALES EN FOOTER ===== */
.social-links-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.social-links-footer h5 {
    color: #fbb03b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

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

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

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

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

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

.footer-bottom p {
    color: #888888;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .simplified-footer {
        padding: 50px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 35px;
    }
    
    .newsletter-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .simplified-footer {
        padding: 40px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 16px;
    }
    
    .newsletter-section {
        padding: 20px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .product-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-bottom .text-right {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .simplified-footer {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        padding: 0 10px;
    }
    
    .newsletter-section {
        padding: 15px;
    }
    
    .newsletter-form {
        gap: 12px;
    }
    
    .newsletter-form input,
    .newsletter-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .social-link i {
        font-size: 14px;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    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; }

/* ===== EFECTOS HOVER ===== */
.product-item:hover img {
    transform: scale(1.05);
}

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

/* ===== ESTADOS DE CARGA ===== */
.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(251, 176, 59, 0.3);
}
