/* === Footer === */
.footer {
    background: linear-gradient(145deg, #0a0a0a, #121212);
    color: var(--color-texto-principal);
    padding: 1rem 1rem;
    border-top: 2px solid var(--color-acento-primario);
    font-size: 0.95rem;
    box-shadow: 0 -10px 40px rgba(0, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Sección superior === */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-acento-primario);
    padding-bottom: 1rem;
}

.footer-top button {
    background-color: var(--color-boton-primario);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.footer-top button:hover {
    background-color: var(--color-boton-hover);
    transform: scale(1.05);
}

.footer-top button a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

.cta-creador {
    background-color: var(--color-acento-primario);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    white-space: nowrap;
}

.cta-creador:hover {
    background-color: var(--color-boton-hover);
    transform: translateY(-2px);
}

/* === Redes sociales === */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 4px rgba(0, 255, 255, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--color-acento-primario));
}

/* === Enlaces del footer === */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-bottom: 1px solid var(--color-acento-primario);
    padding-bottom: 1rem;
    justify-items: center;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-acento-primario);
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-acento-primario);
    margin-top: 0.4rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: var(--color-texto-secundario);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-acento-primario);
}

/* === Newsletter y Tiendas === */
.footer-extra {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-acento-primario);
}

.newsletter-section {
    flex: 1;
    min-width: 300px;
}

.newsletter-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-acento-primario);
}

.newsletter-form {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-borde-tarjeta);
    border-radius: 6px;
    background-color: var(--color-fondo-tarjeta);
    color: var(--color-texto-principal);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: var(--color-texto-terciario);
}

.newsletter-form button {
    background-color: var(--color-boton-primario);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--color-boton-hover);
    transform: translateY(-2px);
}

/* === Botones de tienda === */
.store-section {
    flex-shrink: 0;
}

.store-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-acento-primario);
}

.store-buttons {
    display: flex;
    gap: 0.8rem;
}

.store-btn {
    background-color: var(--color-fondo-tarjeta);
    border: 1px solid var(--color-borde-tarjeta);
    color: var(--color-texto-principal);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.store-btn:hover {
    background-color: var(--color-acento-primario);
    color: #000;
    box-shadow: 0 0 10px var(--color-acento-primario);
}

/* === Créditos === */
.copyright {
    text-align: center;
    color: var(--color-texto-terciario);
    font-size: 0.85rem;
    line-height: 1.6;
}

.copyright strong {
    color: var(--color-acento-primario);
}

/* === Responsive === */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-extra {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .newsletter-section {
        min-width: auto;
    }

    .store-section {
        flex-shrink: 1;
    }

    .store-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding-bottom: 1.5rem;
    }

    .footer-top button,
    .cta-creador {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .store-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .store-btn {
        width: 100%;
        text-align: center;
    }

    .footer-extra {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 0.75rem;
    }

    .footer-container {
        gap: 1rem;
    }

    .footer-top {
        padding-bottom: 1rem;
    }

    .footer-grid {
        padding-bottom: 1rem;
    }

    .footer-extra {
        padding-bottom: 1rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }

    .newsletter-form input {
        font-size: 16px;
        /* Previene zoom en iOS */
    }

    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .footer {
        padding: 1rem 0.5rem;
    }

    .footer-top button,
    .cta-creador {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .newsletter-form button {
        padding: 0.6rem 1rem;
    }

    .store-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}