/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(103, 58, 183, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Newsletter */
.footer-newsletter {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="%23ffffff" opacity="0.05" d="M0,0 L1000,0 L1000,100 L0,100 Z M0,900 L1000,900 L1000,1000 L0,1000 Z"/></svg>');
    background-size: cover;
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.newsletter-content h3 i {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    color: #333;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: button;
    background-color: #000;
    background-image: none;
    color: #fff;
    cursor: pointer;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
        Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
    -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
    padding: 0;
    border-width: 1px;
    padding: 1rem 2rem;
    position: relative;
    text-transform: uppercase;
    border: none;
    font-weight: 900;
    border-radius: 50px;
    min-width: 160px;
}

.newsletter-btn:before {
    --progress: 100%;
    background: #fff;
    -webkit-clip-path: polygon(
        100% 0,
        var(--progress) var(--progress),
        0 100%,
        100% 100%
    );
    clip-path: polygon(
        100% 0,
        var(--progress) var(--progress),
        0 100%,
        100% 100%
    );
    content: "";
    inset: 0;
    position: absolute;
    transition: -webkit-clip-path 0.2s ease;
    transition: clip-path 0.2s ease;
    transition: clip-path 0.2s ease, -webkit-clip-path 0.2s ease;
    border-radius: 50px;
}

.newsletter-btn:hover:before {
    --progress: 0%;
}

.newsletter-btn .text-container {
    display: block;
    overflow: hidden;
    position: relative;
}

.newsletter-btn .text {
    display: block;
    font-weight: 900;
    mix-blend-mode: difference;
    position: relative;
}

.newsletter-btn:hover .text {
    -webkit-animation: move-up-alternate 0.3s ease forwards;
    animation: move-up-alternate 0.3s ease forwards;
}

.newsletter-disclaimer {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
}

.newsletter-disclaimer a {
    color: white;
    text-decoration: underline;
}

/* Contenido principal del footer */
.footer-content {
    padding: 80px 5%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Columna del logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9c27b0;
}

.logo-text h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 12px;
    color: #b8b8d1;
    letter-spacing: 1px;
}

.footer-description {
    color: #b8b8d1;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-certifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certification {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4d4e6;
    font-size: 14px;
}

.certification i {
    color: #9c27b0;
    width: 20px;
}

/* Columnas de enlaces */
.footer-title {
    font-size: 18px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #9c27b0;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: #b8b8d1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links li a i {
    color: #9c27b0;
    font-size: 12px;
}

/* Columna de contacto */
.contact-column {
    gap: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    color: #9c27b0;
    font-size: 18px;
    width: 30px;
    height: 30px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #b8b8d1;
    margin-bottom: 3px;
}

.contact-value {
    display: block;
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.social-media h5 {
    font-size: 16px;
    color: white;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #9c27b0;
    transform: translateY(-3px) scale(1.1);
}

/* Métodos de pago */
.payment-methods {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-title {
    font-size: 14px;
    color: #b8b8d1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: white;
    transform: translateY(-2px);
}

/* Footer inferior */
.footer-bottom {
    padding: 30px 5%;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.copyright p {
    color: #b8b8d1;
    font-size: 14px;
    margin-bottom: 10px;
}

.legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-links a {
    color: #b8b8d1;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
    text-decoration: underline;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.footer-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: white;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(156, 39, 176, 0.3);
    transform: translateY(-2px);
}

.badge i {
    color: #9c27b0;
    font-size: 14px;
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(156, 39, 176, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

/* Responsividad */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 30px;
    }
    
    .newsletter-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .newsletter-content h3 {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        padding: 60px 20px;
    }
    
    .footer-newsletter {
        padding: 40px 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
    
    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .payment-container {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .certification {
        justify-content: center;
    }
    
    .payment-icons i {
        font-size: 24px;
    }
}