/* ==========================================================================
   DEPOOL VIDEO & NEXT LIVE STREAM — ESTILO CINEMATOGRÁFICO PREMIUM (UI/UX 2026)
   Dark Glassmorphism, Micro-animaciones, Mobile-First y Alto Rendimiento
   ========================================================================== */

:root {
    --bg-main: #08090d;
    --bg-gradient: radial-gradient(circle at 50% 0%, #171b26 0%, #08090d 65%);
    --surface-card: rgba(18, 22, 32, 0.85);
    --surface-card-hover: rgba(23, 28, 40, 0.92);
    --surface-input: rgba(11, 14, 21, 0.92);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-bright: rgba(255, 255, 255, 0.15);
    --border-focus: #ef4444;
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --accent-red-glow: rgba(239, 68, 68, 0.35);
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.25);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
}

/* ── TIPOGRAFÍA BEISBOLPLAY OTT SPORTS STYLE ──────────────────────────── */
h1, h2, h3, h4, .bebas-font, .nav-cta-btn, .vip-cta-btn, .mobile-planes, .badge-price {
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 1.5px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ── CONTENEDOR CENTRAL DE CONTENIDO ─────────────────────────────────── */
.site-content-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 16px 14px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

@media (min-width: 640px) {
    .site-content-wrapper {
        padding: 24px 20px 48px;
        gap: 20px;
    }
}

/* ── REPRODUCTOR DE VIDEO (CINEMA DISPLAY) ───────────────────────────── */
.video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border-card-bright), 0 0 24px var(--accent-red-glow);
    transition: var(--transition-smooth);
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #181d29 0%, #090b10 100%);
    font-size: 52px;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

.video-wrap:hover {
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 32px rgba(239, 68, 68, 0.5);
}

/* ── BANNER PROMOCIONAL / SORTEO (RESPONSIVO Y DESTACADO) ─────────────── */
.raffle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.raffle-promo-banner {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0d111a;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.75), 0 0 20px var(--accent-gold-glow);
    transition: var(--transition-smooth);
}

.raffle-promo-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 16px 36px -5px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.45);
}

.raffle-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── CONTENEDOR PRINCIPAL DEL FORMULARIO Y AUTENTICACIÓN ─────────────── */
.form-wrap {
    width: 100%;
    background: var(--surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card-bright);
    border-radius: var(--radius-lg);
    padding: 22px 18px 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

@media (min-width: 480px) {
    .form-wrap {
        padding: 26px 24px 28px;
    }
}

/* ── BADGE DE TRANSMISIÓN EN DIRECTO ─────────────────────────────────── */
.live-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.75; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px #ef4444; }
}

.viewers-count {
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── ENCABEZADOS Y DESCRIPCIÓN ───────────────────────────────────────── */
h1 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@media (min-width: 480px) {
    h1 {
        font-size: 32px;
    }
}

.form-wrap > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: -6px;
}

/* ── RETURNING USER CARD (PASE VIP DE RECONOCIMIENTO) ─────────────────── */
.returning-card {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.12) 0%, rgba(20, 24, 34, 0.92) 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.45);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-red-glow);
    position: relative;
    overflow: hidden;
}

.returning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, transparent);
}

.welcome-badge {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: var(--radius-full);
}

.returning-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.returning-sub {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.45;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px var(--accent-red-glow);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.primary-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
}

.primary-btn:active {
    transform: scale(0.98);
}

.pulse-glow {
    animation: btnGlowPulse 2.4s infinite ease-in-out;
}

@keyframes btnGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.7); }
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px;
    font-family: inherit;
    transition: color 0.15s;
}

.link-btn:hover {
    color: #cbd5e1;
}

/* ── TABS DE NAVEGACIÓN (SEGMENTED CONTROL) ───────────────────────────── */
.tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(11, 14, 21, 0.95);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-card);
    margin-bottom: 4px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #e2e8f0;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(30, 36, 50, 0.9) 100%);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.login-instruction {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 4px;
}

/* ── FORMULARIOS Y CAMPOS ────────────────────────────────────────────── */
form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.field-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-label .field-hint {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Contenedor relativo de inputs para iconos y validaciones */
.input-control-wrap {
    position: relative;
    width: 100%;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-input);
    border: 1.5px solid var(--border-card-bright);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px; /* Evita auto-zoom molesto en iOS Safari */
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
    font-weight: 400;
}

input:focus {
    background: rgba(15, 19, 29, 0.98);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input.is-valid {
    border-color: var(--accent-emerald);
}

input.is-valid:focus {
    box-shadow: 0 0 0 3px var(--accent-emerald-glow);
}

/* Indicador dinámico de validación a la derecha del input */
.input-feedback-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-emerald);
    display: none;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.input-feedback-badge.visible {
    display: flex;
}

/* Mini chip explicativo bajo el input de teléfono */
.phone-format-helper {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 2px;
}

.phone-format-helper span {
    color: #38bdf8;
    font-weight: 600;
}

/* ── BOTONES DE ENVÍO Y ACCIÓN ───────────────────────────────────────── */
button[type="submit"] {
    width: 100%;
    margin-top: 6px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    font-family: inherit;
    box-shadow: 0 8px 22px var(--accent-red-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
}

button[type="submit"]:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.5);
}

button[type="submit"]:hover::after {
    transform: rotate(45deg) translateY(100%);
}

button[type="submit"]:active {
    transform: scale(0.98);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes de feedback del formulario */
#formMessage, #loginMessage {
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
    padding: 0 4px;
    transition: all 0.2s;
}

#formMessage.err, #loginMessage.err {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
}

#formMessage.ok, #loginMessage.ok {
    color: #86efac;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
}

/* ── CARACTERÍSTICAS DE CONFIANZA ────────────────────────────────────── */
.trust-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.trust-item {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── LLAMADA A LA ACCIÓN VIP (UPGRADE CTA) ────────────────────────────── */
.vip-upgrade-cta {
    margin-top: 6px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(236, 22, 84, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(236, 22, 84, 0.35);
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vip-cta-label {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
}

.vip-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ec1654 0%, #be123c 100%);
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(236, 22, 84, 0.4);
    transition: var(--transition-smooth);
}

.vip-cta-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 22, 84, 0.55);
}

.vip-cta-btn:active {
    transform: scale(0.97);
}

/* ── HEADER GLOBAL DEL SITIO (DEPOOL & NEXT STREAM UNIFICADO) ────────── */
.global-site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    user-select: none;
}

.header-top-banner {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 5px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-banner-link {
    display: block;
    max-width: 900px;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s;
}

.header-banner-link:hover {
    opacity: 0.92;
}

.header-banner-img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media (min-width: 640px) {
    .header-banner-img { max-height: 64px; }
}

@media (min-width: 768px) {
    .header-banner-img { max-height: 72px; }
}

.header-nav {
    width: 100%;
    background: rgba(8, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card-bright);
    padding: 8px 16px;
    position: relative;
}

.header-nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 10px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-link.nav-live {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ffffff;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: livePulse 1.5s infinite;
}

.badge-price {
    font-size: 10px;
    font-weight: 900;
    background: rgba(236, 22, 84, 0.2);
    color: #ec1654;
    border: 1px solid rgba(236, 22, 84, 0.35);
    padding: 2px 6px;
    border-radius: 6px;
}

.header-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-support-btn {
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: none;
}

@media (min-width: 768px) {
    .nav-support-btn { display: inline-flex; align-items: center; gap: 4px; }
}

.nav-support-btn:hover {
    background: rgba(16, 185, 129, 0.25);
}

.nav-cta-btn {
    background: linear-gradient(135deg, #ec1654 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(236, 22, 84, 0.35);
    transition: var(--transition-smooth);
    display: none;
}

@media (min-width: 640px) {
    .nav-cta-btn { display: inline-block; }
}

.nav-cta-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.nav-mobile-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: var(--transition-smooth);
}

.nav-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

@media (min-width: 880px) {
    .nav-mobile-toggle { display: none; }
}

/* Menú móvil desplegable con transición suave */
.header-mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    animation: drawerFadeIn 0.22s ease-out;
}

.header-mobile-drawer.open {
    display: flex;
}

@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.mobile-nav-link.mobile-live {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ffffff;
}

.mobile-live-tag {
    font-size: 10px;
    font-weight: 900;
    background: #ef4444;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
}

@media (max-width: 880px) {
    .header-nav-links .nav-extra,
    .header-nav-links .nav-link:not(.active):not(.nav-live) {
        display: none;
    }
}

/* ── FOOTER LEGAL INSTITUCIONAL ──────────────────────────────────────── */
.legal-site-footer {
    width: 100%;
    background: #040508;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 16px 52px;
    margin-top: auto;
    text-align: center;
}

.legal-footer-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.legal-footer-banner {
    width: 100%;
    max-width: 500px;
    margin-bottom: 4px;
}

.footer-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.legal-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    font-size: 12.5px;
}

.legal-link-btn, .legal-link-a {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    padding: 2px 4px;
    font-family: inherit;
    transition: color 0.15s;
}

.legal-link-btn:hover, .legal-link-a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.legal-sep {
    color: rgba(255, 255, 255, 0.15);
}

.legal-copy-main {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.legal-copy-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

/* ── MODAL LEGAL INSTITUCIONAL (GLASS OVERLAY) ───────────────────────── */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.legal-modal-card {
    background: #0d1017;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.legal-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.legal-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.legal-modal-body {
    padding: 22px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.6;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-modal-body p {
    margin: 0;
}

.legal-modal-body strong {
    color: #ffffff;
}
