* { 
    -webkit-tap-highlight-color: transparent; 
    box-sizing: border-box; 
}

html, body { 
    background-color: #f0f2f5; 
    color: #111111; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    touch-action: none;
}

.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}

.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.allow-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* --- MOTOR DE INERCIA Y DESLIZAMIENTO EN VIVO (APPLE STYLE) --- */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    height: 100%;
    flex-wrap: nowrap;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.view-pane {
    min-width: 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-shrink: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-dark {
    background: linear-gradient(135deg, #111111 0%, #1c1c1e 100%);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* --- ANIMACIONES APPLE-LIKE --- */
.slide-in-right {
    animation: slideInRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.25s ease-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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