/* ==============================================================================
   SHAREBACK GROUP - ESTILOS GLOBALES UNIFICADOS (PC Y MÓVIL ESTABLES)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --color-brand-red: #d90429;
    --color-brand-dark-red: #9e001c;
    --color-brand-navy: #0b1120;
    --color-brand-dark: #0f172a;
    --color-brand-card: #1e293b;
}

/* ==========================================
   BASE UNIVERSAL Y SCROLL NATIVO EN PC
   ========================================== */
html {
    background-color: #0b1120 !important;
    width: 100%;
    overflow-x: clip;
    font-family: var(--font-sans);
    color-scheme: dark;
}

body {
    background-color: #f1f5f9 !important;
    width: 100%;
    min-height: 100dvh;
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

@media (hover: none) and (pointer: coarse) {
    html, body {
        overscroll-behavior-y: none !important;
    }
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
}

@supports (height: 100dvh) {
    #global-preloader,
    [role="dialog"] {
        min-height: 100dvh;
    }
    [role="dialog"] > div {
        max-height: calc(100dvh - 2rem) !important;
    }
}

/* ==========================================
   PRELOADER
   ========================================== */
#global-preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #111a2e 0%, #0b1120 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

#global-preloader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.preloader-logo-wrap {
    position: relative;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-spinner-ring {
    position: absolute;
    inset: 0;
    border: 3.5px solid rgba(217, 4, 41, 0.15);
    border-top-color: var(--color-brand-red);
    border-radius: 50%;
    animation: preloader-spin 0.85s linear infinite;
}

.preloader-circle-logo {
    width: 66px;
    height: 66px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    box-shadow: 0 0 28px rgba(217, 4, 41, 0.45);
    animation: preloader-pulse 2s ease-in-out infinite alternate;
}

.preloader-circle-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse {
    0% { transform: scale(0.96); box-shadow: 0 0 15px rgba(217, 4, 41, 0.35); }
    100% { transform: scale(1.04); box-shadow: 0 0 32px rgba(217, 4, 41, 0.65); }
}

/* ==========================================
   BLOQUEO DE SCROLL EN MODALES
   ========================================== */
html.sb-scroll-locked {
    overflow: hidden !important;
    height: 100% !important;
}

body.sb-scroll-locked {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

[role="dialog"],
[id*="modal"],
[id*="Modal"],
.custom-scroll,
.overflow-y-auto {
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

[role="dialog"] > div,
[id*="modal"] > div,
[id*="Modal"] > div {
    position: relative !important;
}

/* ==========================================
   COLORES DE MARCA
   ========================================== */
.bg-brand-navy { background-color: #0b1120 !important; }
.bg-brand-red { background-color: #d90429 !important; }
.bg-brand-darkRed { background-color: #9e001c !important; }
.text-brand-red { color: #d90429 !important; }
.text-brand-darkRed { color: #9e001c !important; }
.font-heading { font-family: 'Outfit', sans-serif !important; }

/* ==========================================
   HEADER Y TICKER FIJOS
   ========================================== */
header.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

.marquee-container {
    display: flex !important;
    overflow: hidden !important;
    user-select: none !important;
    width: 100% !important;
}

.marquee-content {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2.5rem !important;
    padding-right: 2.5rem !important;
    animation: scroll-marquee 40s linear infinite !important;
    will-change: transform;
}

.marquee-content > * {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

@media (min-width: 640px) {
    .marquee-content {
        gap: 3.5rem !important;
        padding-right: 3.5rem !important;
    }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused !important;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ===================================================
   MAIN UNIVERSAL (ESPACIADO EXACTO EN TODAS LAS PÁGINAS)
   =================================================== */
main {
    flex: 1 0 auto !important;
    width: 100% !important;
    padding-top: 102px !important; /* Espacio justo debajo del header móvil */
    padding-bottom: 1rem !important;
}

@media (min-width: 640px) {
    main {
        padding-top: 118px !important; /* Espacio justo debajo del header en PC */
        padding-bottom: 1.5rem !important;
    }
}

#banner-top-container:empty,
#banner-bottom-container:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   FOOTER
   ========================================== */
#footer-contenedor {
    background-color: #0b1120 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    margin-top: auto !important;
}

footer {
    position: relative !important;
    background-color: #0b1120 !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)) !important;
    margin-bottom: 0 !important;
}