/* ============================================ */
/* FOOTER                                       */
/* Pie de pagina con links y redes sociales     */
/* ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

/* ── LOGO DEL FOOTER ─────────────────────────── */
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer__logo i {
    color: var(--color-secondary);
}

.footer__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* ── REDES SOCIALES ──────────────────────────── */
.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.footer__social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer__app-download {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    margin-top: var(--space-lg);
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.footer__app-download:hover,
.footer__app-download:focus-visible {
    border-color: var(--color-primary-light);
    background: rgba(var(--color-primary-rgb), 0.08);
}

.footer__app-download-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(var(--color-primary-rgb), 0.14);
    color: var(--color-primary-light);
}

.footer__app-download-icon svg,
.footer__app-download-arrow {
    width: 18px;
    height: 18px;
}

.footer__app-download span:nth-child(2) {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.footer__app-download strong {
    font-size: 0.84rem;
    line-height: 1.35;
}

.footer__app-download small {
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.footer__app-download-arrow {
    flex: 0 0 18px;
    margin-left: auto;
    color: var(--text-muted);
}

/* ── TITULOS ─────────────────────────────────── */
.footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

/* ── LINKS ───────────────────────────────────── */
.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-sm);
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-primary-light);
    padding-left: 5px;
}

/* ── CONTACTO ────────────────────────────────── */
.footer__contact {
    list-style: none;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer__contact i {
    width: 20px;
    color: var(--color-primary-light);
}

/* ── BARRA INFERIOR ──────────────────────────── */
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__payments {
    display: flex;
    gap: var(--space-md);
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================ */
/* TOAST NOTIFICACIONES                         */
/* ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03) inset;
    min-width: 300px;
    max-width: 420px;
    overflow: hidden;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}

.toast--exit {
    animation: toastOut 0.3s cubic-bezier(0.55,0,1,0.45) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--error { border-left: 3px solid var(--color-error); }
.toast--warning { border-left: 3px solid var(--color-warning); }
.toast--info { border-left: 3px solid var(--color-info); }

.toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast--success .toast__icon { background: rgba(var(--color-success-rgb), 0.15); color: var(--color-success); }
.toast--error .toast__icon { background: rgba(var(--color-error-rgb), 0.15); color: var(--color-error); }
.toast--warning .toast__icon { background: rgba(var(--color-warning-rgb), 0.15); color: var(--color-warning); }
.toast--info .toast__icon { background: rgba(var(--color-info-rgb), 0.15); color: var(--color-info); }

.toast__icon svg,
.toast__icon i[data-lucide] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast__content { flex: 1; min-width: 0; }

.toast__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.toast__message {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.3;
}

.toast__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast__close svg,
.toast__close i[data-lucide] {
    width: 16px;
    height: 16px;
}

.toast__close:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}

.toast__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: toastProgress 3s linear forwards;
}

.toast--success .toast__progress { background: var(--color-success); }
.toast--error .toast__progress { background: var(--color-error); }
.toast--warning .toast__progress { background: var(--color-warning); }
.toast--info .toast__progress { background: var(--color-info); }

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}
