/*
 * Footer Govee — layout + tema oscuro (footer.govee-footer--dark).
 * Fuera de #app. Sin scroll horizontal.
 */

.govee-footer {
    overflow-x: clip;
    max-width: 100%;
}

.govee-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--govee-space-10, 2rem);
    padding: var(--govee-space-10, 2rem) var(--govee-container-pad, 1rem);
    max-width: var(--govee-container-max, 1440px);
    margin: 0 auto;
    min-width: 0;
}

@media (min-width: 768px) {
    .govee-footer__main {
        /* More room for 4 link columns; newsletter stays secondary */
        grid-template-columns: minmax(0, 1.75fr) minmax(0, 0.85fr);
        gap: var(--govee-space-10, 2rem);
        padding: var(--govee-space-12, 3rem) var(--govee-container-pad-md, 2rem);
        align-items: start;
    }
}

@media (min-width: 1180px) {
    .govee-footer__main {
        padding-left: var(--govee-container-pad-lg, 3.75rem);
        padding-right: var(--govee-container-pad-lg, 3.75rem);
    }
}

.govee-footer__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--govee-space-8, 1.5rem);
    min-width: 0;
}

@media (min-width: 480px) {
    .govee-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--govee-space-6, 1.25rem);
    }
}

@media (min-width: 900px) {
    .govee-footer__columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.govee-footer__column {
    min-width: 0;
}

a.govee-footer__column-title {
    display: inline-block;
    text-decoration: none;
}

.govee-footer__column-title {
    margin: 0 0 var(--govee-space-4, 0.75rem);
    font-family: var(--govee-font-sans, inherit);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
}

.govee-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.govee-footer__list a {
    font-size: 0.875rem;
    line-height: 1.4;
    text-decoration: none;
    word-break: break-word;
}

/* Newsletter — compact so 4 link columns keep visual balance */
.govee-footer__newsletter {
    min-width: 0;
    max-width: 20rem;
    justify-self: stretch;
}

.govee-footer__newsletter-title {
    margin: 0 0 var(--govee-space-2, 0.35rem);
    font-family: var(--govee-font-sans, inherit);
    font-size: 1.15rem;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: inherit;
}

.govee-footer__newsletter-text {
    margin: 0 0 var(--govee-space-4, 0.75rem);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: inherit;
    opacity: 0.85;
}

.govee-footer__newsletter-field {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.govee-footer__newsletter-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 2px solid #e9decc;
    background: #f1eadf;
    padding: 0.85rem 6.5rem 0.85rem 0.95rem;
    font-size: 0.9375rem;
}

.govee-footer__newsletter-submit {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .govee-footer__newsletter-input {
        padding-right: 1.1rem;
        padding-bottom: 3.25rem;
    }

    .govee-footer__newsletter-submit {
        top: auto;
        bottom: 0.4rem;
        right: 0.4rem;
        left: 0.4rem;
        transform: none;
        width: calc(100% - 0.8rem);
        text-align: center;
    }
}

/* Bottom bar: payments + copyright */
.govee-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--govee-space-5, 1rem) var(--govee-space-8, 1.5rem);
    padding: var(--govee-space-5, 1rem) var(--govee-container-pad, 1rem);
    max-width: var(--govee-container-max, 1440px);
    margin: 0 auto;
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .govee-footer__bottom {
        padding-left: var(--govee-container-pad-md, 2rem);
        padding-right: var(--govee-container-pad-md, 2rem);
    }
}

@media (min-width: 1180px) {
    .govee-footer__bottom {
        padding-left: var(--govee-container-pad-lg, 3.75rem);
        padding-right: var(--govee-container-pad-lg, 3.75rem);
    }
}

.govee-footer__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    min-width: 0;
}

.govee-footer__payments-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.75;
}

.govee-footer__payments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.govee-footer__payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.35rem 0.55rem;
    border-radius: 0.45rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 0;
}

.govee-footer__payment-logo {
    display: block;
    height: 22px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

.govee-footer__payment-logo--webpay {
    height: 28px;
    max-width: 110px;
}

.govee-footer__copyright {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 100%;
}

.govee-footer__copyright a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Dark theme                                                         */
/* ------------------------------------------------------------------ */

footer.govee-footer--dark {
    background: #050b14 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0 !important;
}

footer.govee-footer--dark .govee-footer__column-title,
footer.govee-footer--dark .govee-footer__newsletter-title,
footer.govee-footer--dark [role="heading"] {
    color: #ffffff !important;
}

footer.govee-footer--dark a {
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.15s ease;
}

footer.govee-footer--dark a:hover,
footer.govee-footer--dark a:focus,
footer.govee-footer--dark a:focus-visible {
    color: #ffffff;
    outline: none;
}

footer.govee-footer--dark p,
footer.govee-footer--dark li,
footer.govee-footer--dark span:not([class*="icon-"]) {
    color: rgba(255, 255, 255, 0.82);
}

footer.govee-footer--dark .govee-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: transparent !important;
}

footer.govee-footer--dark .govee-footer__copyright,
footer.govee-footer--dark .govee-footer__payments-label {
    color: rgba(255, 255, 255, 0.52) !important;
}

footer.govee-footer--dark .govee-footer__copyright a {
    color: rgba(255, 255, 255, 0.72);
}

footer.govee-footer--dark .govee-footer__copyright a:hover {
    color: #ffffff;
}

footer.govee-footer--dark .govee-footer__newsletter-input,
footer.govee-footer--dark input[type="email"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

footer.govee-footer--dark .govee-footer__newsletter-input::placeholder,
footer.govee-footer--dark input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

footer.govee-footer--dark .govee-footer__newsletter-submit,
footer.govee-footer--dark button[type="submit"] {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

footer.govee-footer--dark .govee-footer__newsletter-submit:hover,
footer.govee-footer--dark button[type="submit"]:hover,
footer.govee-footer--dark button[type="submit"]:focus-visible {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

footer.govee-footer--dark .govee-footer__payment-badge {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

footer.govee-footer--dark [class^="icon-"],
footer.govee-footer--dark [class*=" icon-"] {
    color: rgba(255, 255, 255, 0.72) !important;
}
