.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(160, 8, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(224, 64, 251, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Newsletter CTA Section */
.footer-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.footer-newsletter::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.newsletter-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.newsletter-texto {
    color: white;
}

.newsletter-icono {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.newsletter-icono i {
    font-size: 2.5rem;
    color: white;
}

.newsletter-titulo {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-descripcion {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.7;
}

.newsletter-formulario {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 1.3rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-boton {
    padding: 1.3rem 3rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.newsletter-boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Footer Principal */
.footer-principal {
    padding: 5rem 5% 3rem;
    position: relative;
    z-index: 10;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* Columna de Empresa */
.footer-columna-empresa {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo-circulo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.footer-logo-circulo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.footer-logo-circulo i {
    color: white;
    font-size: 1.8rem;
}

.footer-logo-texto {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-descripcion {
    color: #999;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-redes-sociales {
    display: flex;
    gap: 1rem;
}

.footer-red-social {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-red-social:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
}

/* Columnas de Enlaces */
.footer-columna {
    color: white;
}

.footer-columna-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-columna-titulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.footer-enlaces {
    list-style: none;
}

.footer-enlaces li {
    margin-bottom: 1rem;
}

.footer-enlace {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-enlace i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-enlace:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-enlace:hover i {
    transform: translateX(5px);
}

/* Información de Contacto */
.footer-contacto-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #999;
    font-size: 0.95rem;
}

.footer-contacto-icono {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.footer-contacto-texto {
    flex: 1;
    line-height: 1.6;
}

.footer-contacto-texto strong {
    color: white;
    display: block;
    margin-bottom: 0.3rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.footer-bottom-contenido {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary);
}

.footer-enlaces-legales {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-enlaces-legales a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-enlaces-legales a:hover {
    color: var(--accent);
}

/* Botón Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 24px rgba(160, 8, 178, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(160, 8, 178, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-columna-empresa {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .newsletter-contenido {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .newsletter-titulo {
        font-size: 2rem;
    }

    .newsletter-formulario {
        flex-direction: column;
    }

    .newsletter-input,
    .newsletter-boton {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom-contenido {
        flex-direction: column;
        text-align: center;
    }

    .footer-enlaces-legales {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-newsletter,
    .footer-principal {
        padding: 3rem 5%;
    }

    .newsletter-titulo {
        font-size: 1.8rem;
    }

    .footer-logo-texto {
        font-size: 1.2rem;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
