/* ═══════════════════════════════════════════
   KALMAR — footer.css
   ═══════════════════════════════════════════ */

.kalmar-footer {
    position: relative;
    overflow: hidden;
    background: var(--azul);
    padding: 5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.kalmar-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ── Layout ── */

.footer-inner,
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding-inline: var(--nav-padding-x, 4vw);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

@media (min-width: 992px) {
    .footer-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

/* ── Brand Column ── */

.footer-brand {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
}

@media (min-width: 992px) {
    .footer-brand {
        padding-right: 4rem;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.footer-logo {
    display: block;
    margin-bottom: 1.75rem;
    text-align: center;
}

.footer-logo img {
    display: block;
    height: 120px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-data-fiscal {
    margin: 2rem 0 0;
    text-align: center;
}

.footer-data-fiscal img {
    display: block;
    height: 100px;
    width: auto;
    margin: 0 auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-data-fiscal a:hover img {
    opacity: 1;
}

/* Social links */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.footer-social__link svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.footer-social__link:hover {
    border-color: var(--color-terra, #D36A4D);
    background: rgba(211, 106, 77, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Nav Grid ── */

.footer-nav-grid {
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 4rem;
        gap: 2rem;
        align-items: start;
    }

    .footer-spotify {
        grid-column: 1 / 3;
        padding-right: 4rem;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-cols {
        grid-column: 3;
    }
}

/* ── Spotify Embed ── */

.footer-spotify {
    border-radius: 12px;
    overflow: hidden;
}

.footer-spotify iframe {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* ── Nav Cols (columna derecha) ── */

.footer-cols {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Nav Column ── */

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    margin: 0 0 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-gotham);
    font-weight: var(--fw-medium);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-terra, #D36A4D);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-list a {
    display: inline-block;
    font-family: var(--font-gotham);
    font-weight: var(--fw-light);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-base), transform var(--transition-base);
}

.footer-nav-list a:hover {
    color: #fff;
    transform: translateX(3px);
}

/* ── Bottom Bar ── */

.footer-bottom {
    margin-top: 4rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 992px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
}

.footer-copy,
.footer-legal a {
    font-family: var(--font-gotham);
    font-weight: var(--fw-light);
    font-size: var(--fs-sm);
    line-height: 1.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    flex-shrink: 0;
}

.footer-legal a {
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* ── Mobile ── */

@media (max-width: 991px) {
    .kalmar-footer {
        padding-top: 4rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo img {
        height: 100px;
    }

    .footer-bottom {
        margin-top: 3rem;
    }
}

@media (max-width: 575px) {
    .footer-cols {
        gap: 1.5rem;
    }

    .footer-data-fiscal img {
        height: 50px;
    }
}
