/*
 * footer.css — Footer global de calcularrentabilidad.com
 * Se encola en todas las páginas junto a global.css.
 */

.crr-footer {
    position: relative;
    background: linear-gradient(180deg, var(--color-navy) 0%, #0A1830 100%);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    padding: var(--space-16) 0 var(--space-8);
}

/* Filete superior de acento */
.crr-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--color-accent);
}

/* ─── GRID SUPERIOR ─────────────────────────────────────────── */
.crr-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── MARCA ─────────────────────────────────────────────────── */
.crr-footer__logo {
    display: inline-block;
    font-family: var(--font-head);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.crr-footer__logo span { color: var(--color-accent); }

.crr-footer__logo em {
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.crr-footer__tagline {
    margin-top: var(--space-4);
    max-width: 34ch;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* ─── COLUMNA "POR QUÉ ESTA WEB" ────────────────────────────── */
.crr-footer__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.crr-footer__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    line-height: 1.5;
}

.crr-footer__features svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-accent);
}

/* ─── COLUMNAS DE ENLACES ───────────────────────────────────── */
.crr-footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: var(--space-5);
}

.crr-footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.crr-footer__list a {
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition);
}

.crr-footer__list a:hover {
    color: var(--color-accent);
}

/* ─── DISCLAIMER ────────────────────────────────────────────── */
.crr-footer__disclaimer {
    padding: var(--space-6) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crr-footer__disclaimer p {
    max-width: none;
    font-size: var(--text-xs);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}

.crr-footer__disclaimer strong {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

/* ─── BARRA INFERIOR ────────────────────────────────────────── */
.crr-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-6);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
}

.crr-footer__bottom-note {
    color: rgba(255, 255, 255, 0.3);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 980px) {
    .crr-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10) var(--space-8);
    }

    .crr-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .crr-footer {
        padding-top: var(--space-12);
    }

    .crr-footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .crr-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
