/* ============================================================
   FOOTER COMPARTIDO — TeraPoint / TeraConnect
   Incluir en todas las páginas que no usen index.css
   ============================================================ */

:root {
    --primary-color: #a78bfa;
    --gradient-accent: linear-gradient(135deg, hsl(258, 90%, 70%) 0%, hsl(286, 85%, 66%) 100%);
    --text-light: #f8fafc;
    --footer-bg: hsl(258, 26%, 11%);
    --footer-border: hsl(258, 26%, 20%);
    --footer-text-secondary: hsl(250, 16%, 72%);
}

.main-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 5rem 2rem 2rem 2rem;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--footer-border);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0.85;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    max-width: 340px;
}

.footer-logo {
    max-width: 220px;
    height: auto;
}

.footer-logo-brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
}

.footer-logo-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.footer-logo-tagline {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--footer-text-secondary);
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 999px;
}

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

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-link-group h4 {
    position: relative;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.7rem 0;
    padding-bottom: 0.6rem;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}

.footer-link-group a {
    position: relative;
    width: fit-content;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link-group a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
    transition: width 0.25s ease;
}

.footer-link-group a:visited {
    color: rgba(255, 255, 255, 0.55) !important;
}

.footer-link-group a:hover,
.footer-link-group a:visited:hover {
    color: #fff !important;
}

.footer-link-group a:hover::after {
    width: 100%;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-heart {
    color: #ef4444;
    display: inline-block;
    animation: footer-heartbeat 1.4s ease-in-out infinite;
}

@keyframes footer-heartbeat {
    0%, 100% { transform: scale(1); }
    15%       { transform: scale(1.3); }
    30%       { transform: scale(1); }
    45%       { transform: scale(1.2); }
    60%       { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-heart { animation: none; }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        text-align: center;
    }
}
