/* =============================================================================
   SABORA · ACCESO, CARGA Y PÁGINAS PÚBLICAS
   -----------------------------------------------------------------------------
   Extraído de los bloques <style> que vivían dentro de los .razor. Se conserva
   el origen de cada tramo para poder seguir migrándolo a componentes.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Layout/Loading.razor
   -------------------------------------------------------------------------- */
    .sb-splash-root {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #fff6f2 0%, var(--sb-neutral-50) 50%, #fdf7ee 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: var(--sb-z-toast);
        overflow: hidden;
        font-family: var(--sb-font);
    }

    /* Ambient Glowing Orbs */
    .sb-splash-ambient {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
        opacity: 0.9;
    }

    .sb-ambient-1 {
        width: 420px;
        height: 420px;
        background: radial-gradient(circle, #ffd3c6 0%, transparent 70%);
        top: 20%;
        left: 30%;
        animation: sbAmbientMove1 10s ease-in-out infinite alternate;
    }

    .sb-ambient-2 {
        width: 480px;
        height: 480px;
        background: radial-gradient(circle, #ffe7bf 0%, transparent 70%);
        bottom: 15%;
        right: 25%;
        animation: sbAmbientMove2 12s ease-in-out infinite alternate;
    }

    /* Grid backdrop */
    .sb-splash-grid-pattern {
        position: absolute;
        inset: 0;
        background-image: 
            linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.7;
        pointer-events: none;
    }

    /* Glass Card */
    .sb-splash-card {
        position: relative;
        z-index: var(--sb-z-raised);
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid var(--sb-neutral-150);
        border-radius: 28px;
        padding: 44px 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px;
        box-shadow: 
            0 24px 60px -12px rgba(15, 23, 42, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
        max-width: 400px;
        width: 90%;
        animation: sbCardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .sb-splash-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .sb-splash-logo-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sb-splash-logo {
        height: 64px;
        width: auto;
        filter: drop-shadow(0 8px 24px rgba(200, 40, 0, 0.22));
        animation: sbLogoFloat 3.2s ease-in-out infinite alternate;
    }

    .sb-splash-logo-glow {
        position: absolute;
        width: 140px;
        height: 140px;
        background: radial-gradient(circle, rgba(255, 122, 89, 0.35) 0%, transparent 70%);
        border-radius: 50%;
        filter: blur(20px);
        z-index: var(--sb-z-below);
        animation: sbGlowPulse 2.5s ease-in-out infinite alternate;
    }

    .sb-splash-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--sb-brand-50);
        border: 1px solid #ffc9b8;
        padding: 4px 12px;
        border-radius: 99px;
        color: var(--sb-brand);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.2px;
    }

    .sb-badge-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--sb-green-500);
        box-shadow: 0 0 8px var(--sb-green-500);
        animation: sbDotPulse 1.5s infinite;
    }

    /* Progress Area */
    .sb-splash-progress-area {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .sb-splash-track {
        width: 100%;
        height: 5px;
        background: #e9edf3;
        border-radius: 99px;
        overflow: hidden;
        position: relative;
    }

    .sb-splash-indicator {
        position: absolute;
        top: 0;
        bottom: 0;
        left: -40%;
        width: 45%;
        background: linear-gradient(90deg, var(--sb-brand) 0%, #ff7a59 50%, var(--sb-amber-500) 100%);
        border-radius: 99px;
        box-shadow: 0 0 12px rgba(200, 40, 0, 0.35);
        animation: sbSweepBar 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }

    .sb-splash-status {
        display: flex;
        align-items: center;
        gap: 2px;
        color: var(--sb-neutral-500);
        font-size: 0.82rem;
        font-weight: 500;
        letter-spacing: 0.4px;
    }

    .sb-status-dots span {
        animation: sbDotsFade 1.4s infinite;
        opacity: 0;
    }
    .sb-status-dots span:nth-child(1) { animation-delay: 0.2s; }
    .sb-status-dots span:nth-child(2) { animation-delay: 0.4s; }
    .sb-status-dots span:nth-child(3) { animation-delay: 0.6s; }

    .sb-splash-extra {
        width: 100%;
    }

    /* Keyframes */
    @keyframes sbCardEntrance {
        from { opacity: 0; transform: scale(0.95) translateY(10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

    @keyframes sbLogoFloat {
        0% { transform: translateY(0); }
        100% { transform: translateY(-6px); }
    }

    @keyframes sbGlowPulse {
        0% { transform: scale(0.9); opacity: 0.35; }
        100% { transform: scale(1.2); opacity: 0.8; }
    }

    @keyframes sbSweepBar {
        0% { left: -45%; }
        100% { left: 105%; }
    }

    @keyframes sbDotPulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.85); }
    }

    @keyframes sbDotsFade {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }

    @keyframes sbAmbientMove1 {
        0% { transform: translate(0, 0); }
        100% { transform: translate(-30px, 40px); }
    }

    @keyframes sbAmbientMove2 {
        0% { transform: translate(0, 0); }
        100% { transform: translate(40px, -30px); }
    }

/* ----------------------------------------------------------------------------
   Layout/Login.razor
   -------------------------------------------------------------------------- */
    :root {
        --sb-red: var(--sb-brand);
        --sb-red-dark: #9e1f00;
        --sb-red-light: #ff451a;
        --sb-dark: var(--sb-neutral-900);
        --sb-slate: var(--sb-neutral-800);
    }

    /* Aquí había un `* { box-sizing }` y un `body { ... }` global que venían del
       <style> de Login.razor. Al pasar esta hoja al documento host se aplicaban
       a TODAS las pantallas: cambiaban el fondo del panel y activaban
       overflow-x:hidden en todo el producto. Se acotan a la pantalla de acceso. */
    .sb-auth-wrapper, .sb-auth-wrapper * { box-sizing: border-box; }

    .sb-auth-wrapper {
        min-height: 100vh;
        width: 100vw;
        display: flex;
        background: linear-gradient(135deg, #fff6f2 0%, var(--sb-neutral-50) 45%, #fdf7ee 100%);
        position: relative;
        overflow: hidden;
    }

    /* Ambient Background Mesh */
    .sb-auth-ambient {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: var(--sb-z-base);
        overflow: hidden;
    }

    .sb-ambient-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(110px);
        opacity: 0.75;
        animation: orbPulse 12s ease-in-out infinite alternate;
    }

    .sb-orb-1 { width: 600px; height: 600px; background: #ffd3c6; top: -150px; left: -100px; }
    .sb-orb-2 { width: 500px; height: 500px; background: #e0e7ff; bottom: -100px; right: 10%; animation-delay: -4s; }
    .sb-orb-3 { width: 400px; height: 400px; background: #ffe7bf; top: 30%; left: 35%; animation-delay: -8s; opacity: 0.5; }

    @keyframes orbPulse {
        0% { transform: scale(1) translate(0, 0); }
        50% { transform: scale(1.1) translate(20px, -30px); }
        100% { transform: scale(0.95) translate(-20px, 20px); }
    }

    /* Split Screen Layout */
    .sb-auth-brand-pane {
        flex: 1.1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 56px 64px;
        position: relative;
        z-index: var(--sb-z-raised);
        color: var(--sb-neutral-900);
    }

    .sb-brand-logo-wrap {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sb-brand-logo-img {
        height: 52px;
        width: auto;
        filter: drop-shadow(0 4px 12px rgba(200, 40, 0, 0.18));
    }

    .sb-brand-showcase {
        max-width: 540px;
        margin: auto 0;
    }

    .sb-brand-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: var(--sb-brand-50);
        border: 1px solid #ffc9b8;
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--sb-brand);
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 20px;
        backdrop-filter: blur(10px);
    }

    .sb-brand-title {
        font-size: 2.75rem;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.03em;
        margin: 0 0 16px;
        color: var(--sb-neutral-900);
    }

    .sb-brand-title span {
        background: linear-gradient(135deg, var(--sb-brand) 0%, #ff7a59 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .sb-brand-desc {
        font-size: 1.05rem;
        color: var(--sb-neutral-600);
        line-height: 1.6;
        margin: 0 0 36px;
    }

    .sb-features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .sb-feature-chip {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid #e9edf3;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
        backdrop-filter: blur(12px);
        transition: all 0.25s ease;
    }

    .sb-feature-chip:hover {
        background: var(--sb-neutral-0);
        border-color: #ffc9b8;
        box-shadow: 0 10px 24px rgba(200, 40, 0, 0.08);
        transform: translateY(-2px);
    }

    .sb-feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--sb-brand-50);
        color: var(--sb-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .sb-feature-text h4 {
        margin: 0;
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--sb-neutral-900);
    }

    .sb-feature-text p {
        margin: 2px 0 0;
        font-size: 0.74rem;
        color: var(--sb-neutral-400);
    }

    .sb-brand-footer {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--sb-neutral-500);
        font-size: 0.82rem;
    }

    /* Form Pane */
    .sb-auth-form-pane {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px;
        position: relative;
        z-index: var(--sb-z-raised);
    }

    .sb-auth-card {
        width: 100%;
        max-width: 440px;
        background: var(--sb-neutral-0);
        border-radius: 28px;
        padding: 44px 38px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--sb-neutral-150);
        position: relative;
        overflow: hidden;
    }

    .sb-auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--sb-brand), #ff7a59, var(--sb-amber-500));
    }

    .sb-card-header {
        text-align: center;
        margin-bottom: 28px;
    }

    .sb-card-mobile-logo {
        display: none;
        height: 44px;
        margin-bottom: 16px;
    }

    .sb-card-title {
        font-size: 1.65rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        margin: 0 0 8px;
        letter-spacing: -0.02em;
    }

    .sb-card-subtitle {
        font-size: 0.92rem;
        color: var(--sb-neutral-500);
        margin: 0;
        line-height: 1.5;
    }

    /* Modern Input */
    .sb-input-field {
        position: relative;
        margin-bottom: 20px;
    }

    .sb-input-field i.sb-input-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--sb-neutral-400);
        font-size: 1.05rem;
        pointer-events: none;
        transition: color 0.2s ease;
    }

    .sb-input-control {
        width: 100%;
        height: 54px;
        padding: 0 18px 0 48px;
        background: var(--sb-neutral-50);
        border: 1.5px solid var(--sb-neutral-200);
        border-radius: 14px;
        font-size: 0.96rem;
        font-weight: 500;
        color: var(--sb-neutral-900);
        outline: none;
        font-family: inherit;
        transition: all 0.2s ease;
    }

    .sb-input-control:focus {
        background: var(--sb-neutral-0);
        border-color: var(--sb-brand);
        box-shadow: 0 0 0 4px rgba(200, 40, 0, 0.12);
    }

    .sb-input-control:focus + .sb-input-icon {
        color: var(--sb-brand);
    }

    /* Primary Action Button */
    .sb-btn-primary-auth {
        width: 100%;
        height: 54px;
        background: linear-gradient(135deg, var(--sb-brand) 0%, #a52000 100%);
        border: none;
        border-radius: 14px;
        color: var(--sb-neutral-0);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(200, 40, 0, 0.35);
        transition: all 0.25s ease;
        font-family: inherit;
    }

    .sb-btn-primary-auth:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(200, 40, 0, 0.45);
        background: linear-gradient(135deg, #d83000 0%, #b82500 100%);
    }

    .sb-btn-primary-auth:active:not(:disabled) {
        transform: translateY(0);
    }

    .sb-btn-primary-auth:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    /* OTP Inputs */
    .sb-otp-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 24px;
    }

    .sb-otp-box {
        width: 48px;
        height: 58px;
        border: 2px solid var(--sb-neutral-200);
        background: var(--sb-neutral-50);
        border-radius: 12px;
        font-size: 1.5rem;
        font-weight: 800;
        text-align: center;
        color: var(--sb-neutral-900);
        outline: none;
        transition: all 0.2s ease;
        font-family: inherit;
    }

    .sb-otp-box:focus {
        background: var(--sb-neutral-0);
        border-color: var(--sb-brand);
        box-shadow: 0 0 0 4px rgba(200, 40, 0, 0.12);
        transform: scale(1.04);
    }

    .sb-otp-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 18px;
        padding: 0 4px;
    }

    .sb-link-btn {
        border: none;
        background: transparent;
        color: var(--sb-neutral-500);
        font-size: 0.84rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        transition: color 0.2s;
        font-family: inherit;
    }

    .sb-link-btn:hover {
        color: var(--sb-neutral-900);
    }

    .sb-link-btn.danger {
        color: var(--sb-brand);
    }

    .sb-link-btn.danger:hover {
        color: #9e1f00;
    }

    .sb-card-footer {
        margin-top: 28px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sb-register-prompt {
        font-size: 0.88rem;
        color: var(--sb-neutral-500);
    }

    .sb-register-btn {
        border: none;
        background: transparent;
        color: var(--sb-brand);
        font-size: 0.92rem;
        font-weight: 700;
        cursor: pointer;
        padding: 0;
        font-family: inherit;
        transition: color 0.2s;
    }

    .sb-register-btn:hover {
        color: #9e1f00;
        text-decoration: underline;
    }

    .sb-privacy-link {
        font-size: 0.78rem;
        color: var(--sb-neutral-400);
        cursor: pointer;
        border: none;
        background: transparent;
        padding: 0;
        transition: color 0.2s;
        font-family: inherit;
    }

    .sb-privacy-link:hover {
        color: var(--sb-neutral-500);
    }

    .sb-version-tag {
        position: absolute;
        bottom: 20px;
        right: 24px;
        font-size: 0.72rem;
        font-weight: 600;
        color: rgba(15, 23, 42, 0.35);
        letter-spacing: 0.05em;
        pointer-events: none;
    }

    /* Spinner */
    .sb-spinner {
        width: 20px;
        height: 20px;
        border: 2.5px solid rgba(255, 255, 255, 0.35);
        border-top-color: var(--sb-neutral-0);
        border-radius: 50%;
        animation: sbSpin 0.75s linear infinite;
    }

    @keyframes sbSpin {
        to { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 960px) {
        .sb-auth-brand-pane {
            display: none;
        }
        .sb-auth-form-pane {
            padding: 24px;
        }
        .sb-card-mobile-logo {
            display: block;
            margin: 0 auto 16px;
        }
    }
             .academy-modal-dialog { max-width: 900px; width: 95%; margin: 1.75rem auto; }
             .academy-modal-grid { display: grid; grid-template-columns: 320px 1fr; min-height: 550px; }
             .academy-sidebar { height: 100%; }
             @media (max-width: 768px) {
                 .academy-modal-grid { grid-template-columns: 1fr; }
                 .academy-sidebar { padding: 1.5rem !important; height: auto; border-right: none; border-bottom: 1px solid var(--sb-neutral-100); }
                 .academy-form { padding: 1.5rem !important; }
             }
        

/* ----------------------------------------------------------------------------
   Pages/Gestion/AppDownload.razor
   -------------------------------------------------------------------------- */
    .page-content {
        background-color: #f8f9fa;
        min-height: calc(100vh - 100px);
        border-radius: 12px;
        padding: 30px;
    }

    .app-card {
        border-radius: 16px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
        background: var(--sb-neutral-0);
    }

    .app-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
    }

    .android-icon {
        background-color: rgba(61, 220, 132, 0.1);
    }

    .apple-icon {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .qr-container {
        padding: 20px;
        background-color: var(--sb-neutral-0);
        border-radius: 16px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        border: 1px solid #f0f0f0;
        width: 100%;
        max-width: 300px;
        position: relative;
    }

    .qr-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
        pointer-events: none;
    }

    .qr-image {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

    .btn-android {
        background-color: #3DDC84;
        color: var(--sb-neutral-0);
        border: none;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .btn-android:hover {
        background-color: #36c576;
        color: var(--sb-neutral-0);
        transform: scale(1.02);
    }

    .btn-apple {
        background-color: var(--sb-neutral-900);
        color: var(--sb-neutral-0);
        border: none;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .btn-apple:hover {
        background-color: #222222;
        color: var(--sb-neutral-0);
        transform: scale(1.02);
    }

/* ----------------------------------------------------------------------------
   Pages/PrivacyPolicy.razor
   -------------------------------------------------------------------------- */
    @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

    .privacy-page-container {
        min-height: 100vh;
        background: var(--sb-neutral-25);
        background-image: 
            radial-gradient(at 0% 0%, rgba(211, 47, 47, 0.03) 0, transparent 50%),
            radial-gradient(at 100% 100%, rgba(211, 47, 47, 0.03) 0, transparent 50%);
        display: flex;
        justify-content: center;
        padding: 3rem 1.5rem;
        font-family: var(--sb-font);
    }

    .privacy-card {
        background: white;
        width: 100%;
        max-width: 860px;
        border-radius: 32px;
        box-shadow: 0 40px 100px rgba(0,0,0,0.06);
        overflow: hidden;
        border: 1px solid #f1f1f1;
        animation: fadeIn 0.8s ease-out;
    }

    /* Header Refined */
    .privacy-header {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        align-items: center;
        padding: 1.5rem 2.5rem;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #f8f8f8;
        position: sticky;
        top: 0;
        z-index: var(--sb-z-sticky);
    }

    .header-logo {
        height: 32px;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .back-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--sb-neutral-500);
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        width: fit-content;
    }

    .back-link:hover {
        color: #d32f2f;
        transform: translateX(-3px);
    }

    /* Body Spacing */
    .privacy-body {
        padding: 4rem 5rem;
    }

    .privacy-intro {
        text-align: center;
        margin-bottom: 5rem;
    }

    .trust-badge {
        background: var(--sb-red-50);
        color: #d32f2f;
        padding: 0.6rem 1.2rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .privacy-intro h1 {
        font-size: 3rem;
        line-height: 1.1;
        font-weight: 800;
        color: var(--sb-neutral-900);
        margin-bottom: 1.5rem;
    }

    .privacy-intro h1 span {
        color: #d32f2f;
    }

    .privacy-intro p {
        font-size: 1.15rem;
        color: var(--sb-neutral-500);
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

    .title-accent {
        height: 5px;
        width: 50px;
        background: #d32f2f;
        margin: 2rem auto;
        border-radius: 10px;
        opacity: 0.8;
    }

    /* Pillars */
    .trust-pillars {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 6rem;
    }

    .pillar {
        padding: 2rem;
        background: var(--sb-neutral-25);
        border-radius: 24px;
        text-align: center;
        transition: transform 0.3s ease;
    }

    .pillar:hover {
        transform: translateY(-5px);
        background: var(--sb-neutral-25);
        box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    }

    .pillar-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .pillar h3 {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--sb-neutral-800);
        margin-bottom: 0.5rem;
    }

    .pillar p {
        font-size: 0.85rem;
        color: var(--sb-neutral-500);
        line-height: 1.5;
    }

    /* Legal Content */
    .legal-item {
        margin-bottom: 3.5rem;
    }

    .legal-item h2 {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--sb-neutral-900);
        margin-bottom: 1rem;
    }

    .legal-item p {
        color: var(--sb-neutral-600);
        line-height: 1.7;
        font-size: 1rem;
    }

    .data-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .data-card {
        padding: 1.25rem;
        border: 1px solid var(--sb-neutral-200);
        border-radius: 16px;
        background: white;
    }

    .data-card strong {
        display: block;
        color: var(--sb-neutral-900);
        margin-bottom: 4px;
        font-size: 0.95rem;
    }

    .data-card span {
        font-size: 0.85rem;
        color: var(--sb-neutral-500);
    }

    .highlight-box {
        background: var(--sb-neutral-900);
        color: white;
        padding: 3rem;
        border-radius: 28px;
    }

    .highlight-box .box-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 1rem;
        color: var(--sb-red-200);
    }

    .highlight-box h2 {
        color: inherit;
        margin-bottom: 0;
    }

    .highlight-box p {
        color: var(--sb-neutral-300);
        margin-bottom: 0;
    }

    /* Footer */
    .privacy-footer {
        text-align: center;
        padding-top: 4rem;
        margin-top: 4rem;
        border-top: 1px solid #f1f1f1;
    }

    .privacy-footer p {
        font-style: italic;
        color: var(--sb-neutral-400);
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .footer-logo {
        height: 24px;
        opacity: 0.3;
        margin-bottom: 1.5rem;
    }

    .last-update {
        font-size: 0.75rem;
        color: var(--sb-neutral-300);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 1024px) {
        .privacy-body { padding: 3rem; }
    }

    @media (max-width: 768px) {
        .privacy-header { grid-template-columns: 1fr 1fr; padding: 1.2rem 2rem; }
        .header-right { display: none; }
        .header-logo { margin: 0 0 0 auto; }
        .privacy-body { padding: 2.5rem 1.5rem; }
        .privacy-intro h1 { font-size: 2.25rem; }
        .trust-pillars, .data-grid { grid-template-columns: 1fr; }
        .highlight-box { padding: 2rem; }
    }

/* ----------------------------------------------------------------------------
   Diálogo de alta de academia (Layout/Login.razor)
   ----------------------------------------------------------------------------
   Sustituye al bloque que se montaba sobre utilidades de Bootstrap. Se cargaban
   297 KB de CSS en la primera pantalla del producto para usar 62 clases.
   -------------------------------------------------------------------------- */
.sb-auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--sb-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sb-space-4);
    overflow-y: auto;
    background: rgb(15 23 42 / 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sb-auth-modal {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100dvh - var(--sb-space-8));
    overflow: auto;
    border-radius: var(--sb-radius-2xl);
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow-xl);
}

.sb-auth-modal-close {
    position: absolute;
    top: var(--sb-space-3);
    right: var(--sb-space-3);
    z-index: var(--sb-z-raised);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sb-tap-target);
    height: var(--sb-tap-target);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-full);
    background: var(--sb-surface);
    color: var(--sb-text-muted);
    transition: color var(--sb-duration-fast) var(--sb-ease),
                border-color var(--sb-duration-fast) var(--sb-ease);
}
.sb-auth-modal-close:hover {
    color: var(--sb-brand);
    border-color: var(--sb-brand-border);
}

.sb-auth-modal-grid { display: grid; }
@media (min-width: 992px) {
    .sb-auth-modal-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
}

.sb-auth-modal-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sb-space-4);
    padding: var(--sb-space-8);
    background: var(--sb-surface-subtle);
    border-right: 1px solid var(--sb-border-subtle);
}
@media (max-width: 991px) {
    .sb-auth-modal-aside { border-right: 0; border-bottom: 1px solid var(--sb-border-subtle); }
}

.sb-auth-modal-eyebrow {
    align-self: flex-start;
    padding: var(--sb-space-2) var(--sb-space-3);
    border-radius: var(--sb-radius-full);
    background: var(--sb-danger-surface);
    color: var(--sb-danger-text);
    font-size: var(--sb-text-xs);
    font-weight: var(--sb-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sb-auth-modal-title {
    font-size: var(--sb-text-xl);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sb-auth-modal-lead {
    margin: 0;
    color: var(--sb-text-muted);
    font-size: var(--sb-text-sm);
    line-height: var(--sb-leading-relaxed);
}

.sb-auth-modal-features {
    display: flex;
    flex-direction: column;
    gap: var(--sb-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.sb-auth-modal-features li {
    display: flex;
    align-items: center;
    gap: var(--sb-space-3);
    font-size: var(--sb-text-sm);
    font-weight: var(--sb-weight-medium);
    color: var(--sb-text-strong);
}
.sb-auth-modal-features i { color: var(--sb-brand); }

.sb-auth-modal-contact {
    display: flex;
    align-items: center;
    gap: var(--sb-space-2);
    margin-top: auto;
    padding: var(--sb-space-3);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius-lg);
    background: var(--sb-surface);
}
.sb-auth-modal-contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: var(--sb-radius-full);
    background: var(--sb-brand);
    color: var(--sb-text-on-brand);
    font-size: var(--sb-text-sm);
}
.sb-auth-modal-contact a {
    color: var(--sb-text-strong);
    font-size: var(--sb-text-sm);
    font-weight: var(--sb-weight-bold);
    text-decoration: none;
}
.sb-auth-modal-contact a:hover { text-decoration: underline; }

.sb-auth-modal-form { padding: var(--sb-space-8); background: var(--sb-surface); }
.sb-auth-modal-form-title {
    margin-bottom: var(--sb-space-5);
    font-size: var(--sb-text-xl);
}
.sb-auth-modal-submit {
    width: 100%;
    height: 54px;
    margin-top: var(--sb-space-2);
    border-radius: var(--sb-radius-lg);
    font-size: var(--sb-text-base);
}

@media (max-width: 640px) {
    .sb-auth-modal-aside,
    .sb-auth-modal-form { padding: var(--sb-space-5); }
}

/* -----------------------------------------------------------------------------
   Logo dentro de la tarjeta de acceso, encima de "Bienvenido de nuevo". Es el
   único acceso de vuelta a la landing (enlaza a "/"). Visible en todos los
   tamaños (antes solo se mostraba en móvil).
   -------------------------------------------------------------------------- */
.sb-card-header a { display: inline-flex; }
.sb-card-logo {
    display: block;
    height: 46px;
    width: auto;
    margin: 0 auto 18px;
    transition: transform .15s ease, opacity .15s ease;
}
.sb-card-logo:hover { transform: translateY(-1px); opacity: .9; }

/* -----------------------------------------------------------------------------
   Política de privacidad (página estática del servidor). Sustituye al style
   en línea que llevaba el layout de acceso: la tarjeta va por encima de las
   esferas de ambiente.
   -------------------------------------------------------------------------- */
.sb-auth-static { position: relative; z-index: var(--sb-z-raised); width: 100%; }
a.back-link:hover { text-decoration: none; }
