/* footer.css */

.hype-footer {
    background-color: #0a0a0a;
    position: relative !important;
    z-index: 200 !important;
}

/* Línea verde que separa Own The Game del footer */
.footer-top-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4cff00;
}

/* ==========================================================
   NEWSLETTER
========================================================== */
.footer-newsletter {
    background-color: #4cff00;
    padding: 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.newsletter-text {
    font-family: 'QarantaBold', Arial, sans-serif;
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

/* Input redondeado negro — texto blanco */
.newsletter-form {
    display: flex;
    align-items: center;
    background-color: #0a0a0a;
    border-radius: 999px;
    padding: 0.2rem 0.2rem 0.2rem 1.2rem;
    min-width: 300px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
    color: #ffffff;
    flex: 1;
    min-width: 0;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Botón circular negro, borde blanco, flecha blanca centrada */
.newsletter-form button {
    background-color: #0a0a0a;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.newsletter-form button svg {
    display: block;
    width: 13px;
    height: 13px;
}

.newsletter-form button:hover {
    opacity: 0.75;
}

/* ==========================================================
   FOOTER PRINCIPAL (escritorio: 6 columnas)
========================================================== */
.footer-main {
    padding: 2.5rem 3rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1fr 1fr auto;
    gap: 2rem;
    align-items: start;
}

/* Col 1: logo + redes */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    padding-right: 0;
}

.hype-footer .footer-logo-img {
    display: block;
    height: 2.6rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: #4cff00;
    opacity: 1;
    transform: translateY(-2px);
}

/* Columnas de enlaces / direcciones */
.footer-col {
    align-self: start;
}

.footer-heading {
    font-family: 'QarantaBold', Arial, sans-serif;
    color: #4cff00;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.footer-heading a {
    color: inherit;
    text-decoration: none;
}

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

/* (antes era una regla global `li {...}` que afectaba a toda la web; ahora solo al footer) */
.hype-footer li,
.footer-links li {
    list-style: none;
    padding: 0;
    margin: 0 0 0.28rem;
    color: #cccccc;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-links a:hover {
    color: #4cff00;
}

/* Copyright */
.footer-copyright {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: end;
    justify-self: end;
    width: 100%;
    text-align: right;
    white-space: nowrap;
    font-size: 0.7rem;
    color: #666666;
}

.footer-copyright .font-hype {
    font-family: 'HYPE', sans-serif !important;
    color: #666666;
}

/* ==========================================================
   TABLET (≤ 1024px): 2 columnas, logo arriba, copyright abajo
   Las medidas van en px para que se vean igual aunque el
   html tenga otro font-size en cada página.
========================================================== */
@media (max-width: 1024px) {

    .footer-newsletter {
        padding: 1.4rem 2rem;
        gap: 2rem;
    }

    .footer-main {
        padding: 2.25rem 2rem calc(2rem + env(safe-area-inset-bottom));
    }

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

    /* Logo a la izquierda, redes a la derecha */
    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .footer-social {
        margin-top: 0;
    }

    .footer-heading {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hype-footer li,
    .footer-links li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 4px;
    }

    .footer-links a {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        justify-content: center;
        justify-self: stretch;
        text-align: center;
        font-size: 12px;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ==========================================================
   MÓVIL (≤ 600px): todo centrado y apilado
========================================================== */
@media (max-width: 600px) {

    .footer-newsletter {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1.25rem;
    }

    .newsletter-text {
        text-align: center;
        font-size: 12px;
    }

    .newsletter-form {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 4px 4px 4px 18px;
    }

    .newsletter-form input {
        font-size: 16px;            /* evita el zoom automático de iOS al enfocar */
        padding: 10px 8px;
    }

    .newsletter-form button {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .footer-main {
        padding: 2rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom));
    }

    .footer-grid {
        gap: 1.75rem 1.25rem;
    }

    /* Logo y redes centrados, uno encima del otro */
    .footer-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .hype-footer .footer-logo-img {
        object-position: center;
        height: 2.4rem;
    }

    .footer-social {
        justify-content: center;
        gap: 1.25rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;           /* zona táctil cómoda */
    }

    /* Home + Information en 2 columnas; direcciones a ancho completo */
    .footer-col:nth-of-type(n + 4) {
        grid-column: 1 / -1;
    }

    .footer-links a {
        display: inline-block;
        padding: 3px 0;         /* más fácil de pulsar */
    }
}

/* ==========================================================
   MÓVILES MUY PEQUEÑOS (≤ 400px): una sola columna
========================================================== */
@media (max-width: 400px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col:nth-of-type(n + 1) {
        grid-column: 1 / -1;
    }
}