/* Footer público (base + login/registro/recuperación). Tokens en .site-footer para herencia. */
.site-footer {
    --primary: #d7ff1f;
    --ink: #08111c;
    margin-top: 0;
    position: relative;
    background: linear-gradient(180deg, #0a1628 0%, #07111f 40%, #050d18 100%);
    color: rgba(220, 230, 245, 0.92);
}

.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.footer-top-row {
    padding: 28px 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-cta-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.footer-cta-headline {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0d1117;
    line-height: 1.2;
}

.footer-cta-sub {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.4;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-cta-btn-primary {
    background: var(--primary);
    color: var(--ink);
}

.footer-cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(215, 255, 31, 0.35);
    background: #e4ff4d;
}

.footer-cta-btn-whatsapp {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-cta-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    border-color: rgba(37, 211, 102, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

.footer-newsletter-block {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px 40px;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.footer-newsletter-copy {
    min-width: 0;
}

.footer-newsletter-copy .footer-cta-headline {
    margin-bottom: 6px;
}

.footer-newsletter-copy .footer-cta-sub {
    margin: 0;
    max-width: 360px;
}

.footer-newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    max-width: 380px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

.footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0d1117;
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-newsletter-input::placeholder {
    color: #64748b;
}

.footer-newsletter-input:focus {
    outline: none;
    background: #fff;
}

.footer-newsletter-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(215, 255, 31, 0.2);
}

.footer-newsletter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 14px 22px;
    border-radius: 0;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 720px) {
    .footer-newsletter-block {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .footer-newsletter-copy .footer-cta-sub {
        max-width: 100%;
    }
    .footer-newsletter-form {
        max-width: 100%;
    }
}

.footer-trust-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 20px 32px;
}

.footer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(220, 230, 245, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-trust-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

.footer-main {
    position: relative;
    padding: 28px 0 24px;
    overflow: hidden;
}

.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}

.footer-main .footer-container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 40px;
    align-items: start;
    width: 100%;
}

.footer-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col-logo {
    justify-content: center;
}

.footer-col-logo .footer-logo-link {
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
}

.footer-col-logo .footer-logo-link img {
    width: 100%;
    height: auto;
    max-height: 170px;
    object-fit: contain;
    object-position: center;
}

.footer-logo-link {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-col-info {
    gap: 10px;
}

.footer-col-info .footer-tagline {
    margin: 0 0 4px;
}

.footer-col-info .footer-col-title {
    margin-top: 4px;
}

.footer-hours {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(220, 230, 245, 0.85);
}

.footer-col-info .footer-phone {
    margin-top: 2px;
}

.footer-tagline {
    margin: 0;
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(220, 230, 245, 0.85);
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(215, 255, 31, 0.12);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col-nav,
.footer-col-social {
    gap: 12px;
}

.footer-col-nav .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col-nav .footer-links li {
    margin-bottom: 8px;
}

.footer-col-social .footer-social-links {
    justify-content: center;
}

.footer-col-title {
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(220, 230, 245, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(220, 230, 245, 0.85);
}

.footer-contact-list li {
    margin-bottom: 10px;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.footer-contact-list strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-phone {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-phone:hover {
    color: #e4ff4d;
    transform: translateX(2px);
}

.footer-social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(220, 230, 245, 0.95);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(215, 255, 31, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-social-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
}

.footer-bottom .footer-container {
    padding: 0;
}

.footer-bottom {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 13, 24, 0.6);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-copy,
.footer-powered {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(220, 230, 245, 0.6);
}

a.footer-powered {
    text-decoration: none;
}

.footer-powered-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    padding: 8px 14px;
    margin: -4px 0;
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.footer-powered-link:hover,
.footer-powered-link:focus-visible {
    color: rgba(235, 242, 252, 0.92);
    background: rgba(215, 255, 31, 0.1);
    box-shadow: 0 0 0 1px rgba(215, 255, 31, 0.35);
    outline: none;
}

.footer-powered strong {
    color: rgba(215, 255, 31, 0.95);
    font-weight: 700;
}

.footer-powered-link:hover strong,
.footer-powered-link:focus-visible strong {
    color: rgba(230, 255, 80, 1);
}

/* Encima de fondos fijos en páginas de auth */
.au-public-footer-slot {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 100%;
}

@media (max-width: 900px) {
    .footer-top-row {
        padding: 20px 16px;
    }

    .footer-top-inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        text-align: center;
    }

    .footer-cta-block {
        flex-direction: column;
        align-items: center;
    }

    .footer-newsletter-block {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        max-width: 100%;
    }

    .footer-newsletter-copy .footer-cta-sub {
        max-width: 100%;
    }

    .footer-newsletter-form {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
        border-radius: 12px;
    }

    .footer-newsletter-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .footer-newsletter-btn {
        width: auto;
        padding: 12px 18px;
    }

    .footer-cta-headline {
        font-size: 1.15rem;
        line-height: 1.25;
    }

    .footer-cta-sub {
        font-size: 0.85rem;
    }

    .footer-cta-actions {
        justify-content: center;
    }

    .footer-cta-btn {
        width: auto;
        max-width: none;
    }

    .footer-container {
        width: calc(100% - 32px);
    }

    .footer-trust-items {
        justify-content: center;
        gap: 12px 20px;
    }

    .footer-trust-item {
        font-size: 0.8rem;
    }

    .footer-main {
        padding: 24px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: center;
        justify-items: center;
        text-align: center;
    }

    .footer-col-logo,
    .footer-col-info {
        justify-content: center;
    }

    .footer-col-logo .footer-logo-link {
        max-width: min(280px, 88vw);
    }

    .footer-col-logo .footer-logo-link img {
        max-height: 140px;
    }

    .footer-tagline {
        text-align: center;
        max-width: none;
    }

    .footer-col-nav .footer-links {
        align-items: center;
    }

    .footer-contact-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
