/* =====================================================
   KleyCheats — Estilos
   Separado automáticamente desde index.html
===================================================== */

:root {
    --bg: #030305;
    --accent: #ff0000;
    --accent-light: #ff4d4d;
    --neon-pink: #ff1a1a;
    --neon-cyan: #ff3333;
    --accent-rgb: 255, 0, 0;
    --text-glow: #ffcccc;
    --text: #ffebeb;
    --muted: rgba(255, 255, 255, 0.4);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    --radius-bubble: 50px;
    --radius-card: 32px;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    color: inherit; 
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background: radial-gradient(circle at 50% 50%, #2e0b0b 0%, #030305 100%);
    display: flex;
    flex-direction: column;
}

/* Partículas Flotantes */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 0, 0, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s infinite linear;
    will-change: transform;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px) scale(0); opacity: 0; }
}

/* Animación de Escaneo Biométrico */
@keyframes biometricScan {
    0% { transform: scaleY(0) translateY(-50%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleY(1) translateY(0); opacity: 0; }
}

.biometric-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 30px;
}

.biometric-overlay.active {
    display: flex;
}

.biometric-scanner {
    width: 120px;
    height: 120px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 0, 0, 0.3);
}

.biometric-scanner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: biometricScan 2s infinite;
}

.biometric-text {
    color: var(--accent-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    animation: textGlow 2s ease-in-out infinite;
}

/* Resplandor Dinámico en Tarjetas */
.login-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(255, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 0, 0, 0.3);
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.country-btn:hover {
    border-color: var(--accent-light);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* iPhone Frame */
.iphone-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Status Bar (Barra de Estado) */
.status-bar {
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2000;
}

.status-time {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.status-icon {
    width: 16px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* Screen Shine Effect - removed */
.screen-shine {
    display: none;
    pointer-events: none;
    z-index: 9999;
    animation: shineSweep 12s infinite ease-in-out;
    will-change: left;
}

@keyframes shineSweep {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Fondos Galácticos */
.aura-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; background: #000; overflow: hidden;
}
.aura-blob {
    position: absolute; width: 80vw; height: 80vw; border-radius: 50%;
    filter: blur(50px); opacity: 0.10; animation: auraFloat 30s infinite alternate ease-in-out;
    will-change: transform;
}
.aura-1 { top: -20%; left: -20%; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }
.aura-2 { bottom: -20%; right: -20%; background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%); animation-delay: -5s; }
.aura-3 { top: 30%; right: 10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%); animation-delay: -10s; }

@keyframes auraFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(15%, 20%) scale(1.3) rotate(45deg); }
}

/* Main Content */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Necesita overflow:hidden para que pages-container sea el que scrollea */
}

/* Header */
header {
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav { 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 20px; 
}

.logo-wrap { display: flex; align-items: center; gap: 12px; }

.logo-img { 
    width: 40px; height: 40px; 
    border-radius: 12px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.logo-text { 
    font-weight: 800; 
    font-size: 1.2rem; 
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Menú Hamburguesa */
.hbg {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    position: relative;
}

.hbg span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hbg-x {
    position: absolute;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    transform: scale(0.5) rotate(-90deg) translate(-50%, -50%);
    transform-origin: top left;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    top: 50%;
    left: 50%;
    line-height: 1;
}

.hbg.open span:not(.hbg-x) {
    opacity: 0;
    transform: scaleX(0);
}

.hbg.open .hbg-x {
    opacity: 1;
    transform: scale(1) rotate(0deg) translate(-50%, -50%);
}

/* Menú Móvil */
.mmenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    gap: 18px;
    animation: iosMenuFade 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mmenu.open {
    display: flex;
}

@keyframes iosMenuFade {
    from { opacity: 0; backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}

.mmenu-link {
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mmenu-link i {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
}

.mmenu-link:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.94);
    border-color: rgba(255, 255, 255, 0.3);
}

.mmenu-link.logout {
    margin-top: 30px;
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.25);
    color: #ff3b30;
}

.mmenu-link.logout:active {
    background: rgba(255, 59, 48, 0.25);
}

#admin-menu-link {
    display: none !important;
}

/* Page Container */
.pages-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    /* flex:1 + overflow-y:auto es suficiente cuando el padre tiene altura fija */
}

.pages-container::-webkit-scrollbar {
    width: 6px;
}

.pages-container::-webkit-scrollbar-track {
    background: transparent;
}

.pages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Page Animations */
.page { display: none; padding-bottom: 120px; }
.page.active { display: block; animation: iosPageSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

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

/* Login Card */
.login-card {
    max-width: 380px; 
    margin: 50px 20px; 
    background: rgba(255, 255, 255, 0.05);
    padding: 45px 28px; 
    border-radius: 40px; 
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 450px) {
    .login-card { margin: 50px auto; }
}

.login-card h2 { 
    font-size: 2.4rem; 
    text-align: center; 
    margin-bottom: 10px; 
    font-weight: 900; 
    background: linear-gradient(to bottom, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.login-card p {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 35px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Country Selector */
.country-selector { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
    margin-bottom: 32px; 
}

.country-btn { 
    background: rgba(28, 10, 10, 0.92); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    color: var(--text); 
    padding: 16px 8px; 
    border-radius: 24px; 
    font-size: 0.8rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-weight: 600;
}

.country-btn:active {
    transform: scale(0.95);
}

.country-btn.active { 
    background: rgba(255, 0, 0, 0.25); 
    border-color: var(--accent); 
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    transform: scale(1.05);
}

.country-btn span { font-size: 1.6rem; }

/* Inputs */
.fi-wrap { margin-bottom: 20px; }

.fi-label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: rgba(255, 255, 255, 0.6);
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.fi { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    padding: 16px 20px; 
    border-radius: 24px; 
    color: #fff; 
    font-size: 1rem; 
    outline: none; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    font-family: var(--font);
    font-weight: 500;
}

.fi:focus { 
    background: rgba(255, 255, 255, 0.12); 
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fi::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Botón Primary */
.b-primary { 
    width: 100%; 
    background: linear-gradient(180deg, var(--accent) 0%, #800000 100%); 
    color: #fff; 
    padding: 18px; 
    border-radius: 28px; 
    font-weight: 700; 
    border: none; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: var(--font);
    font-weight: 700;
}

.b-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.b-primary:active { 
    transform: scale(0.96) translateY(2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

/* Botón Secondary */
.b-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font);
    font-size: 0.95rem;
}

.b-secondary:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.15);
}

.b-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
}

.b-secondary:active {
    transform: scale(0.96);
}

/* Dashboard Header */
.dashboard-header {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.user-avatar {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--neon-pink));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.user-info h3 { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); font-weight: 500; }

.user-info h2 { 
    font-size: 1.5rem; 
    font-weight: 900; 
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase; 
    letter-spacing: 0.3px; 
}

.online-badge {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.online-dot { 
    width: 6px; height: 6px; 
    background: #34c759; 
    border-radius: 50%; 
    box-shadow: 0 0 8px #34c759; 
    animation: iosPulse 2s infinite; 
}

@keyframes iosPulse { 
    0%, 100% { transform: scale(1); opacity: 1; } 
    50% { transform: scale(1.4); opacity: 0.5; } 
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(28, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 22px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent-light), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Store Grid */
.pgrid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 14px; 
    padding: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
}
.pcard { 
    background: rgba(28, 10, 10, 0.92); 
    border-radius: 28px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    overflow: hidden; 
    position: relative; 
    backdrop-filter: blur(10px); 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pcard:active { 
    transform: scale(0.96);
}

.pcard.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.pimg { 
    height: 160px; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 3.2rem;
    position: relative;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: rgba(0,0,0,0.25) !important;
}

.pbody { padding: 18px; text-align: center; }

.pname { font-weight: 800; font-size: 0.95rem; margin-bottom: 8px; color: #fff; }

.pprice { 
    color: var(--accent-light); 
    font-weight: 900; 
    font-size: 1.1rem; 
    background: rgba(255, 0, 0, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.unavailable-badge {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Carousel */
.carousel-section {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
    height: 3px;
}

.carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.5);
    border-radius: 2px;
}

.carousel-card {
    flex: 0 0 calc(50% - 6px);
    background: rgba(28, 10, 10, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 18px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.carousel-card:active {
    transform: scale(0.96);
}

.carousel-tag {
    display: inline-block;
    background: rgba(255, 0, 0, 0.2);
    color: var(--accent-light);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Admin Form */
.admin-form {
    width: 100%;
    margin: 10px auto;
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.form-group textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* ── Precios: lista vertical en móvil ── */
.days-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.day-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 9px 13px;
}

.day-input label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0;
    text-transform: none;
    margin: 0;
    white-space: nowrap;
    min-width: 56px;
}

.day-input input {
    margin: 0;
    padding: 8px 11px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    width: 100px !important;
    flex-shrink: 0;
    text-align: right;
}

/* Products List */
.products-list {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.product-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* fila superior: imagen + info */
.product-item-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.product-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.07);
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
}

.product-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-prices {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.price-badge {
    background: rgba(255, 0, 0, 0.12);
    color: var(--accent-light);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid rgba(255, 0, 0, 0.18);
}

/* fila inferior: botones en horizontal */
.product-actions {
    display: flex;
    gap: 7px;
    flex-direction: row;
    flex-wrap: wrap;
}

.product-actions button {
    flex: 1;
    min-width: 70px;
    padding: 9px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 11px !important;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-edit, .btn-delete {
    padding: 9px 16px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.78rem;
    white-space: nowrap;
}

.btn-edit {
    background: rgba(52, 199, 89, 0.18);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

.btn-edit:active {
    transform: scale(0.95);
}

.btn-delete {
    background: rgba(255, 59, 48, 0.18);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.25);
}

.btn-delete:active {
    transform: scale(0.95);
}

/* Dynamic Island */
.dynamic-island { 
    position: fixed; top: 50px; left: 50%; 
    transform: translateX(-50%) scale(0.8); 
    background: rgba(0, 0, 0, 0.8); 
    color: #fff; 
    padding: 12px 28px; 
    border-radius: 40px; 
    z-index: 2001; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.dynamic-island.show { 
    opacity: 1; 
    transform: translateX(-50%) scale(1); 
    top: 60px; 
}

/* Home Indicator */
.home-indicator {
    display: none;
}

/* Botones Flotantes */
.control-center-btn { 
    position: fixed; bottom: 50px; left: 24px; 
    width: 60px; height: 60px; 
    background: rgba(30, 30, 30, 0.8); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 24px; color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    z-index: 2000; cursor: pointer; 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.control-center-btn:active { 
    transform: scale(0.9);
}

.wa-float { 
    position: fixed; bottom: 50px; right: 24px; 
    width: 60px; height: 60px; 
    background: #25d366; 
    border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 28px; 
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); 
    z-index: 1000; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-float:active { 
    transform: scale(0.9); 
}

/* Control Panel */
.control-panel { 
    position: fixed; bottom: 120px; left: 24px; 
    width: 280px; 
    background: rgba(20, 20, 20, 0.9); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px; 
    padding: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    z-index: 1999; 
    display: none; 
    transform-origin: bottom left; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.control-panel.active { 
    display: block; 
    animation: iosControlPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

@keyframes iosControlPop { 
    from { transform: scale(0.6); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

.control-item {
    display: flex; 
    justify-content: space-between;
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.control-item:last-child { border: none; }

.section-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    padding: 0 20px;
    margin: 18px 0 12px 0;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2);
}

/* Glow Effects */
@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2); }
    50% { text-shadow: 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4), 0 0 40px rgba(255, 0, 0, 0.2); }
}

@keyframes priceGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 77, 77, 0.5), 0 0 15px rgba(255, 0, 0, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 77, 77, 0.8), 0 0 25px rgba(255, 0, 0, 0.5), 0 0 35px rgba(255, 0, 0, 0.2); }
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 15px rgba(255, 0, 0, 0.5), 0 0 25px rgba(255, 77, 77, 0.3); }
    50% { text-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 77, 77, 0.5), 0 0 50px rgba(255, 0, 0, 0.3); }
}

.logo-text {
    animation: titleGlow 3s ease-in-out infinite;
}

.pname {
    animation: textGlow 2.5s ease-in-out infinite;
}

.pprice {
    animation: priceGlow 2s ease-in-out infinite;
}

.stat-number {
    animation: priceGlow 2.5s ease-in-out infinite;
}

.user-info h2 {
    animation: titleGlow 3s ease-in-out infinite;
}

.login-card h2 {
    animation: titleGlow 3s ease-in-out infinite;
}

/* ===== iOS Alert Messages ===== */
.ios-alert {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 20px;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid;
    animation: iosAlertPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    line-height: 1.4;
}

.ios-alert.show {
    display: flex;
}

@keyframes iosAlertPop {
    from { opacity: 0; transform: scale(0.88) translateY(-8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ios-alert::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.07), transparent);
    pointer-events: none;
}

.ios-alert-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px currentColor);
}

.ios-alert-text {
    flex: 1;
}

/* Error rojo */
.ios-alert.error {
    background: rgba(255, 59, 48, 0.18);
    border-color: rgba(255, 59, 48, 0.45);
    color: #ff6b6b;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Éxito verde */
.ios-alert.success {
    background: rgba(52, 199, 89, 0.18);
    border-color: rgba(52, 199, 89, 0.45);
    color: #4cd964;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Advertencia amarilla */
.ios-alert.warning {
    background: rgba(255, 204, 0, 0.15);
    border-color: rgba(255, 204, 0, 0.4);
    color: #ffd60a;
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Indicador de Fuerza de Contraseña */
.password-strength {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #ff0000;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

/* Modo Mantenimiento */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.maintenance-overlay.active {
    display: flex;
}

.maintenance-icon {
    font-size: 5rem;
    animation: maintenanceBounce 2s infinite ease-in-out;
}

@keyframes maintenanceBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.maintenance-text h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--accent), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.maintenance-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal de Detalles del Producto */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.product-modal.active {
    display: flex;
}

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

.modal-content {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 28px 24px 32px;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(255,0,0,0.3); border-radius: 2px; }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 12px;
}

.modal-close {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    font-weight: bold;
}

.modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 59, 48, 0.35);
}

.modal-product-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 51, 51, 0.08));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 0, 0, 0.15);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: rgba(0,0,0,0.3) !important;
}

.modal-product-name {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.modal-product-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.modal-prices {
    background: rgba(255, 0, 0, 0.06);
    border: 1px solid rgba(255, 0, 0, 0.18);
    border-radius: 24px;
    padding: 8px 12px;
    margin-bottom: 24px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 4px 0;
    transition: background 0.2s ease;
    gap: 12px;
}

.price-option:last-child {
    border-bottom: none;
}

.price-option:hover, .price-option:active {
    background: rgba(255, 0, 0, 0.12) !important;
}

.price-option.selected {
    background: rgba(255, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 0, 0, 0.4) !important;
}

.price-duration {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-duration::before {
    content: '⏱';
    font-size: 0.85rem;
}

.price-amount {
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--accent-light);
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
    background: rgba(255,0,0,0.12);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,0,0,0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, #800000 100%);
    color: #fff;
    padding: 18px;
    border-radius: 24px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.35);
    letter-spacing: 0.3px;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, #800000 100%);
    color: #fff;
    padding: 16px;
    border-radius: 24px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.35);
}

.btn-add-cart:active {
    transform: scale(0.96);
}

/* Carrito Flotante */
.cart-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-float:active {
    transform: scale(0.9);
}

.cart-icon {
    font-size: 1.8rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #34c759;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.5);
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Panel del Carrito */
.cart-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    z-index: 4999;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
}

.cart-panel.open {
    height: 80vh;
}

.cart-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-items {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: calc(80vh - 200px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: rgba(255,0,0,0.3); border-radius: 2px; }

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 18px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
}

.cart-item:active {
    transform: scale(0.98);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.cart-item-price {
    font-size: 0.82rem;
    color: var(--accent-light);
    font-weight: 700;
    background: rgba(255,0,0,0.1);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,0,0,0.2);
}

.cart-item-remove {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.2);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cart-item-remove:active {
    transform: scale(0.92);
    background: rgba(255, 59, 48, 0.28);
}

.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px 28px;
    background: rgba(5, 5, 8, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.cart-total-amount {
    color: var(--accent-light);
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, #800000 100%);
    color: #fff;
    padding: 18px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.4);
    letter-spacing: 0.3px;
    font-family: var(--font);
}

.btn-checkout:active {
    transform: scale(0.96);
    filter: brightness(1.1);
}

/* Efecto de Entrada Suave para Productos */
@keyframes productSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pcard {
    animation: productSlideIn 0.5s ease-out forwards;
}

.pcard:nth-child(1) { animation-delay: 0.1s; }
.pcard:nth-child(2) { animation-delay: 0.2s; }
.pcard:nth-child(3) { animation-delay: 0.3s; }
.pcard:nth-child(4) { animation-delay: 0.4s; }
.pcard:nth-child(5) { animation-delay: 0.5s; }
.pcard:nth-child(6) { animation-delay: 0.6s; }

/* Efecto Neon Glow en Precios */
.pprice {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6), 0 0 20px rgba(255, 0, 0, 0.3);
}

/* ====== NUEVAS FEATURES ====== */

/* 1. Animación stagger de entrada en productos */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(28px) scale(0.93); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.pcard.animate-in {
    opacity: 0;
    animation: cardSlideIn 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

/* 2. Glow pulsante en tarjetas */
@keyframes cardGlow {
    0%,100% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 8px rgba(255,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.08); }
    50%      { box-shadow: 0 8px 30px rgba(0,0,0,0.3),  0 0 28px rgba(255,0,0,0.45), 0 0 60px rgba(255,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.12); }
}
.pcard { animation: cardGlow 3.5s ease-in-out infinite; }

/* 3. Contador de oferta */
.offer-timer-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, rgba(255,0,0,0.15), rgba(120,0,0,0.2));
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 20px; padding: 10px 20px; margin: 0 20px 16px;
    backdrop-filter: blur(10px);
}
.offer-timer-label { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }
.offer-timer-count {
    font-size: 1.05rem; font-weight: 900; color: var(--accent-light);
    font-variant-numeric: tabular-nums; letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(255,0,0,0.6);
}
@keyframes timerPulse { 50% { opacity: 0.4; } }
.offer-timer-dot { animation: timerPulse 1s infinite; color: var(--accent-light); }

/* 4. Canvas partículas chispas */
#spark-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* 5. Reviews / estrellas */
.reviews-section {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 16px; padding-top: 16px;
}
.stars-row { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.star-btn {
    font-size: 1.5rem; cursor: pointer; transition: transform 0.2s;
    filter: grayscale(1) opacity(0.35);
    border: none; background: none; padding: 0;
}
.star-btn.active, .star-btn:hover { filter: none; transform: scale(1.2); }
.avg-score {
    font-size: 2rem; font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff9f0a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* 6. Historial de compras — página */
#orders-page .order-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 16px; margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
#orders-page .order-card:active { transform: scale(0.98); }

/* 7. Chat de soporte */
.support-fab {
    position: fixed; bottom: 160px; right: 20px;
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer; z-index: 900;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.support-fab:active { transform: scale(0.9); }
.support-panel {
    position: fixed; bottom: 230px; right: 16px;
    width: 280px; background: rgba(10,10,20,0.97);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 28px;
    padding: 20px; z-index: 901; backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.8) translateY(20px); transform-origin: bottom right;
    opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.support-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.support-panel h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; color: #fff; }
.support-panel p { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.support-option {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 12px 14px; margin-bottom: 8px;
    cursor: pointer; font-size: 0.85rem; font-weight: 600; color: #fff;
    transition: all 0.2s;
}
.support-option:active { background: rgba(255,255,255,0.12); transform: scale(0.97); }

/* ── Notificación badge admin ── */
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    background: #ff3b30; color: #fff;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 0.6rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    animation: cartBounce 0.5s ease;
    pointer-events: none;
}
.notif-bell {
    display: none; position: relative;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem;
    transition: all 0.3s ease;
}
.notif-bell:active { transform: scale(0.92); }
.notif-panel {
    position: fixed; top: 70px; right: 16px;
    width: min(320px, calc(100vw - 32px)); max-height: 480px;
    background: rgba(8,8,12,0.98); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px; z-index: 8000;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    transform: scale(0.85) translateY(-10px); transform-origin: top right;
    opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden; display: flex; flex-direction: column;
}
.notif-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.notif-panel-header {
    padding: 18px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.notif-panel-header h4 { font-size: 0.95rem; font-weight: 800; color: #fff; }
.notif-list { overflow-y: auto; flex: 1; padding: 10px 12px; }
.notif-list::-webkit-scrollbar { width: 3px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,0,0,0.3); border-radius: 2px; }
.notif-item {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 14px; margin-bottom: 8px;
}
.notif-item.new-notif { border-color: rgba(255,0,0,0.35); background: rgba(255,0,0,0.08); }
.notif-item-title { font-size: 0.82rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.notif-item-body  { font-size: 0.72rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.notif-item-time  { font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-top: 6px; }
/* ── Paso de verificación de email ── */
.verify-step { display: none; }
.verify-step.show { display: block; }
.code-input-wrap { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.code-digit {
    width: 44px; height: 56px; border-radius: 16px; border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07); color: #fff; font-size: 1.6rem; font-weight: 900;
    text-align: center; outline: none; font-family: monospace;
    transition: all 0.2s ease;
}
.code-digit:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,0,0,0.15); background: rgba(255,255,255,0.1); }

/* ===== CATEGORÍAS ===== */
.cat-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 1000px;
    margin: 0 auto;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
}
.cat-tab:active { transform: scale(0.93); }
.cat-tab.active {
    background: rgba(255,0,0,0.22);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 18px rgba(255,0,0,0.3);
}

/* Badge de categoría en tarjeta */
.cat-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.4px;
    backdrop-filter: blur(6px);
    z-index: 2;
    text-transform: uppercase;
}

/* Admin: gestión de categorías */
.cat-manage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}
.cat-manage-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}
.cat-toggle {
    width: 44px; height: 26px;
    border-radius: 13px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.cat-toggle::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 3px; left: 3px;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.cat-toggle.on  { background: var(--accent); }
.cat-toggle.off { background: rgba(255,255,255,0.2); }
.cat-toggle.on::after  { transform: translateX(18px); }

/* ===== USUARIOS ACTIVOS — iOS 18 Style ===== */
.active-users-section {
    padding: 24px 20px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header pill — estilo Dynamic Island */
.active-users-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 99px;
    padding: 10px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content;
}
.active-users-header-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.2px;
}
.active-users-header-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    padding-left: 12px;
    letter-spacing: 0.2px;
}

.live-dot {
    width: 8px; height: 8px;
    background: #34c759;
    border-radius: 50%;
    box-shadow: 0 0 8px #34c759, 0 0 16px rgba(52,199,89,0.4);
    animation: iosPulse 2s infinite;
    flex-shrink: 0;
}

/* Cards estilo iOS 18 — material translúcido */
.active-panel-card {
    background: rgba(28, 28, 30, 0.7);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 28px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow:
        0 2px 1px rgba(255,255,255,0.04) inset,
        0 16px 40px rgba(0,0,0,0.35);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}
/* Brillo sutil en la parte superior de la card */
.active-panel-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.18),
        transparent);
}
.active-panel-card:active {
    transform: scale(0.97);
}

/* Ícono de la app — estilo iOS con esquinas de superelipse */
.active-panel-img {
    width: 58px; height: 58px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,0,0,0.25), rgba(80,0,0,0.4));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1) inset;
}
.active-panel-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.active-panel-info { flex: 1; min-width: 0; }

.active-panel-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.active-panel-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contador — pill verde estilo iOS */
.active-panel-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(52,199,89,0.14);
    border: 1px solid rgba(52,199,89,0.22);
    color: #34c759;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.1px;
}

/* Separador estilo lista iOS */
.active-panel-card + .active-panel-card::after {
    content: '';
    position: absolute;
    top: 0; left: 72px; right: 0;
    height: 0.5px;
    background: rgba(255,255,255,0.07);
}

/* Grupo estilo iOS grouped list */
.active-panels-group {
    border-radius: 28px;
    overflow: hidden;
    background: rgba(28,28,30,0.7);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.active-panels-group .active-panel-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}
.active-panels-group .active-panel-card::before { display: none; }
.active-panels-group .active-panel-card:not(:last-child) {
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.active-panels-group .active-panel-card:first-child { border-radius: 28px 28px 0 0; }
.active-panels-group .active-panel-card:last-child  { border-radius: 0 0 28px 28px; }
.active-panels-group .active-panel-card:only-child  { border-radius: 28px; }

/* Admin: tarjeta de edición de panel activo */
.active-panel-admin-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}
.active-panel-admin-card .fi {
    margin-bottom: 10px;
}


/* =====================================================
   OPTIMIZACIONES DE RENDIMIENTO MÓVIL
   Reduce blur, sombras y animaciones en dispositivos
   con pantalla pequeña o que prefieren menos movimiento
===================================================== */

/* En móvil: eliminar backdrop-filter blur (es el mayor consumidor de GPU) */
@media (max-width: 768px) {
    .modal-content,
    .cart-panel,
    .notif-panel,
    .mmenu,
    .support-panel,
    .control-panel,
    .login-card,
    .product-modal,
    .cart-header,
    .aura-bg,
    [style*="backdrop-filter"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Simplificar sombras en móvil */
    .pcard,
    .carousel-card,
    .active-panel-card,
    .b-primary,
    .wa-float,
    .support-fab,
    .control-center-btn {
        box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    }

    /* Reducir blobs de aura — son costosos */
    .aura-blob {
        display: none !important;
    }

    /* Desactivar animación de partículas CSS en móvil
       (el canvas ya las maneja con menos carga) */
    .particle {
        display: none !important;
    }

    /* Transiciones más rápidas en móvil */
    * {
        transition-duration: 0.15s !important;
    }

    /* Forzar aceleración de hardware en elementos que se mueven */
    .pcard,
    .mmenu,
    .cart-panel,
    .notif-panel,
    .product-modal {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Reducir animaciones del dynamic island */
    .dynamic-island.show {
        animation-duration: 0.2s !important;
    }

    /* Contener el layout de tarjetas para evitar reflows */
    .pcard,
    .active-panel-card,
    .carousel-card {
        contain: layout style;
    }

    /* Simplificar el gradiente de fondo */
    body {
        background: #0d0205 !important;
    }
}

/* Respetar preferencia del sistema de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #spark-canvas {
        display: none !important;
    }
}

/* Optimización de imágenes lazy */
img {
    content-visibility: auto;
}

/* =====================================================
   DISEÑO PARA PC / ESCRITORIO (≥900px)
   Layout de dos columnas, admin organizado, tienda wide
===================================================== */
@media (min-width: 900px) {

    /* ── Fondo más rico en desktop ── */
    body {
        background: radial-gradient(ellipse at 20% 30%, #3a0a0a 0%, #030305 55%),
                    radial-gradient(ellipse at 80% 70%, #1a0505 0%, transparent 60%);
        align-items: center;
        justify-content: flex-start;
    }

    /* ── Frame principal: centrado y con max-width ── */
    .iphone-frame {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
        box-shadow: 0 0 80px rgba(255,0,0,0.08);
    }

    /* ── Header más alto y espacioso ── */
    .nav {
        height: 70px;
        padding: 0 40px;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
    }

    .logo-text { font-size: 1.2rem !important; }
    .logo-img  { width: 38px !important; height: 38px !important; }

    /* ── Dynamic Island centrado ── */
    .dynamic-island {
        left: 50%;
        transform: translateX(-50%);
    }

    /* ── Menú horizontal en desktop — reset completo del mobile menu ── */
    .mmenu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        padding: 0 40px !important;
        max-height: none !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        z-index: auto !important;
        animation: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    .mmenu.open, .mmenu:not(.open) {
        display: flex !important;
        height: auto !important;
    }
    .mmenu-link {
        padding: 10px 16px !important;
        border-radius: 12px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        background: none !important;
        border: none !important;
        white-space: nowrap;
        width: auto !important;
        max-width: none !important;
        opacity: 0.7;
        transition: opacity 0.2s, background 0.2s !important;
    }
    .mmenu-link:hover { opacity: 1; background: rgba(255,255,255,0.06) !important; }
    .mmenu-link.logout { margin-left: auto; color: #ff3b30 !important; }

    /* Ocultar el botón hamburguesa en desktop */
    .hbg { display: none !important; }

    /* ── Pages container con scroll correcto en desktop ── */
    .pages-container {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 80px !important;
        height: 0 !important; /* flex:1 necesita height:0 para funcionar en algunos browsers */
    }

    /* ── LOGIN / REGISTER centrado y más compacto ── */
    #login-page.active, #register-page.active, #verify-page.active, #google-setup-modal.active {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 130px);
    }
    .login-card {
        max-width: 460px !important;
        width: 100% !important;
        margin: 40px auto !important;
    }

    /* ── TIENDA: grid más rico ── */
    #main-page > div {
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Stats de confianza en fila */
    #main-page > div > div[style*="display:grid"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .pgrid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
        padding: 0 24px 24px !important;
    }

    .pcard {
        border-radius: 24px !important;
    }

    .section-title {
        padding-left: 24px !important;
        font-size: 1rem !important;
    }

    /* Categorías tabs más grandes */
    .cat-tabs {
        padding: 0 24px 16px !important;
        gap: 10px !important;
    }
    .cat-tab {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }

    /* ── PANEL ADMIN: layout de dos columnas ── */
    #admin-page {
        padding: 0 !important;
    }
    #admin-page > div {
        max-width: 1100px;
        margin: 0 auto;
        padding: 32px 24px;
    }

    /* Tabs del admin en fila completa */
    #admin-page [id^="atab-"]:not([id*="content"]) {
        font-size: 0.82rem !important;
        padding: 10px 18px !important;
    }

    /* Grid de stats del admin */
    #admin-page [style*="display:grid"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Formulario de agregar producto — dos columnas */
    .days-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 10px !important;
    }

    /* Lista de productos en admin — grid */
    #products-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    /* Lista de usuarios — más cómoda */
    #users-list-container > div {
        padding: 16px 20px !important;
    }

    /* Paneles activos en admin — dos columnas */
    #admin-active-panels {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    /* ── CARRITO panel más ancho ── */
    .cart-panel {
        width: 380px !important;
        right: 24px !important;
        bottom: 24px !important;
        top: auto !important;
        border-radius: 24px !important;
        height: 0 !important;
        max-height: 75vh !important;
    }
    .cart-panel.open {
        height: 70vh !important;
        border-radius: 24px !important;
    }

    /* ── Modales centrados y más anchos ── */
    .product-modal .modal-content {
        max-width: 520px !important;
        border-radius: 32px !important;
    }

    /* ── Panel de notificaciones ── */
    .notif-panel {
        width: 400px !important;
        right: 80px !important;
        border-radius: 24px !important;
    }

    /* ── Botones flotantes mejor posicionados ── */
    .wa-float       { bottom: 40px !important; right: 40px !important; }
    .support-fab    { bottom: 110px !important; right: 40px !important; }
    .control-center-btn { bottom: 180px !important; right: 40px !important; }

    /* ── About / Canales / Contacto — centrado ── */
    #about-page > div,
    #canales-page > div,
    #contact-page > div,
    #orders-page > div {
        max-width: 720px;
        margin: 0 auto;
    }

    /* Inputs más cómodos en desktop */
    .fi {
        font-size: 0.95rem !important;
        padding: 16px 18px !important;
    }

    /* Ocultar el panel de control flotante en desktop (está en el nav) */
    .control-panel {
        right: 40px !important;
        bottom: 210px !important;
        width: 220px !important;
    }
}

/* ── Extra-wide (≥1300px): más margen lateral ── */
@media (min-width: 1300px) {
    .iphone-frame { max-width: 1300px; }
    .pgrid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
}


/* =====================================================
   ✨ EFECTOS VISUALES iOS 18 — v2
   Resplandor, bordes luminosos, modo rendimiento
===================================================== */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODO RENDIMIENTO — apaga solo efectos, nunca content
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.perf-mode .shine-sweep,
body.perf-mode .shine-sweep-2,
body.perf-mode .prisma-overlay,
body.perf-mode .glow-ring,
body.perf-mode .glow-ring-2,
body.perf-mode .header-beam,
body.perf-mode #spark-canvas {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Pseudoelementos: opacity 0, NUNCA display:none (rompe el card) */
body.perf-mode .pcard::before,
body.perf-mode .pcard::after,
body.perf-mode .pimg::after,
body.perf-mode .b-primary::after,
body.perf-mode .section-title::after {
    opacity: 0 !important;
    animation: none !important;
}

body.perf-mode .logo-img {
    animation: none !important;
    filter: none !important;
}
body.perf-mode .aura-blob,
body.perf-mode .particle {
    display: none !important;
}
body.perf-mode .pcard:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
}
body.perf-mode * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. RESPLANDOR QUE BARRE PANTALLA — suavizado
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.shine-sweep {
    position: fixed;
    top: -10%;
    left: -50%;
    width: 35%;
    height: 120%;
    background: linear-gradient(
        108deg,
        transparent 25%,
        rgba(255,255,255,0.025) 42%,
        rgba(255,180,180,0.055) 50%,
        rgba(255,255,255,0.025) 58%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 9990;
    animation: shineSweepFull 9s cubic-bezier(0.45,0,0.55,1) infinite;
    will-change: left;
    mix-blend-mode: screen;
    filter: blur(2px);
}
.shine-sweep-2 {
    position: fixed;
    top: -10%;
    left: -50%;
    width: 16%;
    height: 120%;
    background: linear-gradient(
        108deg,
        transparent 30%,
        rgba(255,120,120,0.03) 48%,
        rgba(255,255,255,0.045) 50%,
        rgba(255,120,120,0.03) 52%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 9989;
    animation: shineSweepFull 9s cubic-bezier(0.45,0,0.55,1) infinite;
    animation-delay: 0.22s;
    will-change: left;
    mix-blend-mode: screen;
    filter: blur(1px);
}
@keyframes shineSweepFull {
    0%          { left: -55%; opacity: 0; }
    4%          { opacity: 1; }
    52%         { left: 120%; opacity: 1; }
    53%, 100%   { left: 120%; opacity: 0; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HALO EN EL HEADER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.header-beam {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,80,80,0.5) 25%,
        rgba(255,255,255,0.85) 50%,
        rgba(255,80,80,0.5) 75%,
        transparent
    );
    pointer-events: none;
    animation: beamPulse 4s ease-in-out infinite;
    z-index: 1001;
    filter: blur(0.5px);
}
.header-beam::after {
    content: '';
    position: absolute;
    top: 0; left: 10%;
    width: 80%; height: 18px;
    background: radial-gradient(ellipse at center top,
        rgba(255,50,50,0.12) 0%, transparent 70%
    );
}
@keyframes beamPulse {
    0%,100% { opacity: 0.45; transform: translateX(-50%) scaleX(0.85); }
    50%      { opacity: 1;    transform: translateX(-50%) scaleX(1.08); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. LOGO GLOW
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.logo-img {
    filter: drop-shadow(0 0 7px rgba(255,60,60,0.45)) drop-shadow(0 0 18px rgba(255,0,0,0.2));
    animation: logoGlow 4.5s ease-in-out infinite;
}
@keyframes logoGlow {
    0%,100% { filter: drop-shadow(0 0 5px rgba(255,60,60,0.35)) drop-shadow(0 0 14px rgba(255,0,0,0.15)); }
    50%      { filter: drop-shadow(0 0 12px rgba(255,80,80,0.7)) drop-shadow(0 0 28px rgba(255,0,0,0.35)); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. CARDS — shine suavizado, sin romper layout
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.pcard {
    isolation: isolate; /* evita que pseudoelementos afecten al contenido */
}
.pcard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255,80,80,0.07) 0%,
        transparent 60%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: cardAurora 6s ease-in-out infinite;
}
@keyframes cardAurora {
    0%,100% { opacity: 0; }
    50%      { opacity: 1; }
}
.pcard::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        108deg,
        transparent,
        rgba(255,255,255,0.055) 50%,
        transparent
    );
    pointer-events: none;
    z-index: 0;
    animation: cardShine 8s ease-in-out infinite;
    border-radius: inherit;
}
@keyframes cardShine {
    0%        { left: -100%; opacity: 0; }
    5%        { opacity: 1; }
    42%       { left: 140%;  opacity: 1; }
    43%,100%  { left: 140%;  opacity: 0; }
}
.pcard:nth-child(2)::after  { animation-delay: 1.1s; }
.pcard:nth-child(3)::after  { animation-delay: 2.2s; }
.pcard:nth-child(4)::after  { animation-delay: 3.3s; }
.pcard:nth-child(5)::after  { animation-delay: 4.4s; }
.pcard:nth-child(6)::after  { animation-delay: 5.5s; }

.pcard:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 22px 52px rgba(255,0,0,0.22), 0 0 0 1px rgba(255,80,80,0.28), inset 0 1px 0 rgba(255,255,255,0.12) !important;
    border-color: rgba(255,80,80,0.35) !important;
}

/* ── Imagen del producto: prisma leve ── */
.pimg {
    position: relative;
}
.pimg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 20%,
        rgba(255,255,255,0.035) 45%,
        rgba(255,140,140,0.055) 50%,
        rgba(255,255,255,0.035) 55%,
        transparent 80%
    );
    pointer-events: none;
    animation: prismShift 7s ease-in-out infinite;
    border-radius: inherit;
}
@keyframes prismShift {
    0%,100% { opacity: 0.3; transform: translateX(-8%) skewX(-3deg); }
    50%      { opacity: 1;   transform: translateX( 8%) skewX( 3deg); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. BORDES LUMINOSOS — tarjetas, nav, login, modal
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Cards de producto */
.pcard {
    border: 1px solid transparent !important;
    background-clip: padding-box;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,60,60,0.12),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* Borde superior brillante en las cards */
.pcard > .pimg::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,120,120,0.5) 40%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,120,120,0.5) 60%,
        transparent
    );
    z-index: 2;
    animation: topLineShine 5s ease-in-out infinite;
}
@keyframes topLineShine {
    0%,100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* Login card borde luminoso */
.login-card {
    border: 1px solid rgba(255,60,60,0.15) !important;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,80,80,0.1),
        inset 0 1px 0 rgba(255,255,255,0.07) !important;
    position: relative;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,100,100,0.6) 30%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,100,100,0.6) 70%,
        transparent
    );
    border-radius: 50%;
    animation: beamPulse 4s ease-in-out infinite;
}

/* Header borde inferior luminoso */
header {
    border-bottom: 1px solid rgba(255,40,40,0.15) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 1px 0 rgba(255,60,60,0.08) !important;
}

/* Modal borde luminoso */
.modal-content {
    border: 1px solid rgba(255,60,60,0.18) !important;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,80,80,0.12),
        inset 0 1px 0 rgba(255,255,255,0.06) !important;
    position: relative;
    overflow: hidden;
}
.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,100,100,0.5) 30%,
        rgba(255,255,255,0.75) 50%,
        rgba(255,100,100,0.5) 70%,
        transparent
    );
    pointer-events: none;
    z-index: 10;
    animation: beamPulse 5s ease-in-out infinite;
}

/* Botón primario borde glow */
.b-primary {
    position: relative;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(255,0,0,0.35),
        0 0 0 1px rgba(255,80,80,0.3),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
.b-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -70%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        108deg,
        transparent,
        rgba(255,255,255,0.15) 50%,
        transparent
    );
    animation: btnShine 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnShine {
    0%        { left: -70%; }
    55%       { left: 130%; }
    100%      { left: 130%; }
}

/* Carousel cards borde luminoso */
.carousel-card {
    border: 1px solid rgba(255,60,60,0.15) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06) !important;
    position: relative;
    overflow: hidden;
}
.carousel-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,120,120,0.5) 40%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,120,120,0.5) 60%,
        transparent
    );
    pointer-events: none;
}

/* Inputs borde glow al focus */
.fi:focus {
    border-color: rgba(255,60,60,0.5) !important;
    box-shadow: 0 0 0 3px rgba(255,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    outline: none;
}

/* Active panels cards */
.active-panel-card {
    border: 1px solid rgba(255,60,60,0.12) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. SHIMMER EN TÍTULOS DE SECCIÓN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-title {
    position: relative;
}
.section-title::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.55) 50%,
        transparent 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s linear infinite;
    pointer-events: none;
}
@keyframes textShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. ANILLOS DE LUZ EN EL FONDO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.glow-ring {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 65vw; height: 65vw;
    max-width: 580px; max-height: 580px;
    border-radius: 50%;
    border: 1px solid rgba(255,30,30,0.07);
    box-shadow: 0 0 50px rgba(255,0,0,0.03), inset 0 0 50px rgba(255,0,0,0.03);
    pointer-events: none;
    z-index: -1;
    animation: ringPulse 9s ease-in-out infinite;
}
.glow-ring-2 {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 42vw; height: 42vw;
    max-width: 380px; max-height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255,30,30,0.05);
    pointer-events: none;
    z-index: -1;
    animation: ringPulse 9s ease-in-out infinite;
    animation-delay: -4.5s;
}
@keyframes ringPulse {
    0%,100% { opacity: 0.35; transform: translate(-50%,-50%) scale(0.96); }
    50%      { opacity: 0.9;  transform: translate(-50%,-50%) scale(1.04); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. DYNAMIC ISLAND — glow
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.dynamic-island {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 4px 20px rgba(0,0,0,0.65),
        0 0 24px rgba(255,0,0,0.08) !important;
}
.dynamic-island.show {
    box-shadow:
        0 0 0 1px rgba(255,100,100,0.28),
        0 8px 32px rgba(0,0,0,0.8),
        0 0 36px rgba(255,0,0,0.28) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. OVERLAY SCANLINES — sutil, tipo OLED
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.prisma-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9988;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255,255,255,0.006) 3px,
        rgba(255,255,255,0.006) 4px
    );
    mix-blend-mode: screen;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. BOTÓN MODO RENDIMIENTO — toggle iOS style
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.perf-toggle-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.2s;
    font-family: var(--font);
}
.perf-toggle-btn:active { background: rgba(255,255,255,0.1); }
.perf-toggle-btn .perf-dot {
    width: 32px; height: 18px;
    border-radius: 9px;
    background: rgba(255,255,255,0.15);
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}
.perf-toggle-btn .perf-dot::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
body.perf-mode .perf-toggle-btn .perf-dot {
    background: #34c759;
}
body.perf-mode .perf-toggle-btn .perf-dot::after {
    transform: translateX(14px);
}
body.perf-mode .perf-toggle-btn {
    color: #34c759;
    border-color: rgba(52,199,89,0.3);
}

/* =====================================================
   ⚡ OPTIMIZACIÓN DE SCROLL
   Pausa animaciones pesadas mientras el usuario scrollea
   Se activa/desactiva via JS con la clase is-scrolling
===================================================== */
body.is-scrolling .pcard::before,
body.is-scrolling .pcard::after,
body.is-scrolling .pimg::after,
body.is-scrolling .shine-sweep,
body.is-scrolling .shine-sweep-2,
body.is-scrolling .glow-ring,
body.is-scrolling .glow-ring-2,
body.is-scrolling .header-beam,
body.is-scrolling .aura-blob {
    animation-play-state: paused !important;
}

/* Simplificar sombras y blur mientras se scrollea */
body.is-scrolling .pcard {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    will-change: transform;
}
body.is-scrolling .pcard:hover {
    transform: none !important;
}

/* Reducir backdrop-filter durante scroll en TODOS los elementos */
body.is-scrolling header,
body.is-scrolling .mmenu,
body.is-scrolling .login-card {
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* Cards optimizadas para scroll — sin contain que bloquea */
.pcard,
.active-panel-card,
.carousel-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* =====================================================
   ⚡ SCROLL PERFORMANCE — reglas críticas
===================================================== */

/* Quitar backdrop-filter de elementos DENTRO del scroll */
.pcard,
.carousel-card,
.active-panel-card,
.active-panels-group,
.active-panel-admin-card,
.cat-manage-row {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Reducir animaciones simultáneas — max 1 activa por card */
.pcard::before { animation-duration: 8s !important; }
.pcard::after  { animation-duration: 10s !important; }
.pcard:nth-child(even)::before { animation-delay: -4s; }
.pcard:nth-child(even)::after  { animation-delay: -5s; }

/* shine-sweep: solo 1 activo a la vez, más espaciado */
.shine-sweep   { animation-duration: 12s !important; }
.shine-sweep-2 { animation-duration: 12s !important; animation-delay: 6s !important; }

/* Aura blobs: más lentos y menos GPU */
.aura-blob { animation-duration: 40s !important; will-change: auto !important; }

/* pages-container: GPU layer propio */
/* isolation removed */

/* Desactivar will-change en elementos estáticos */
.pcard { will-change: auto; }
.pcard:hover { will-change: transform; }

/* =====================================================
   📱 MÓVIL PERFORMANCE — La solución definitiva
   En pantallas < 768px se eliminan TODOS los efectos
   pesados. El scroll debe ser 60fps sin lag.
===================================================== */
@media (max-width: 768px) {

    /* 1. MATAR todos los backdrop-filter — el mayor culpable */
    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 2. MATAR todas las animaciones CSS en móvil */
    .shine-sweep,
    .shine-sweep-2,
    .prisma-overlay,
    .glow-ring,
    .glow-ring-2,
    .header-beam,
    .aura-blob,
    .aura-1,
    .aura-2,
    .aura-3 {
        display: none !important;
    }

    /* 3. Pseudoelementos de cards — opacity:0 NUNCA display:none (rompe las cards) */
    .pcard::before,
    .pcard::after,
    .pimg::after,
    .pimg::before,
    .b-primary::after,
    .section-title::after,
    .login-card::before,
    .modal-content::before,
    .carousel-card::after,
    .pcard > .pimg::before {
        opacity: 0 !important;
        animation: none !important;
    }


    /* CARDS — fondo siempre visible en móvil */
    .pcard {
        background: rgba(28, 10, 10, 0.95) !important;
        border: 1px solid rgba(255, 60, 60, 0.15) !important;
    }
    .pimg {
        background-color: rgba(0, 0, 0, 0.3) !important;
    }

    /* 4. Animaciones — solo las esenciales, el resto off */
    .logo-img {
        animation: none !important;
        filter: drop-shadow(0 0 6px rgba(255,60,60,0.4)) !important;
    }
    .dynamic-island {
        animation: none !important;
    }
    .live-dot {
        animation: liveDotPulse 2s ease-in-out infinite !important; /* esta sí, es ligera */
    }
    .pcard {
        animation: none !important;
        transition: transform 0.15s ease, opacity 0.15s ease !important;
    }
    .pcard:hover,
    .pcard:active {
        transform: scale(0.97) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
    }

    /* 5. Sombras simplificadas */
    .pcard {
        box-shadow: 0 4px 14px rgba(0,0,0,0.3),
                    0 0 0 1px rgba(255,60,60,0.08) !important;
    }
    .b-primary {
        box-shadow: 0 8px 22px rgba(255,0,0,0.3) !important;
    }

    /* 6. Fondo sólido — sin radial-gradient costoso */
    body {
        background: #0a0205 !important;
    }
    .aura-bg {
        background: #000 !important;
    }

    /* 7. Transiciones globales rápidas */
    * {
        transition-duration: 0.12s !important;
    }

    /* 8. Aceleración hardware en el scroll */
    .pages-container {
        -webkit-overflow-scrolling: touch;
        transform: translate3d(0,0,0);
        backface-visibility: hidden;
        perspective: 1000px;
    }

    /* 9. Reducir z-index layers — menos compositing */
    .wa-float        { z-index: 100 !important; }
    .support-fab     { z-index: 100 !important; }
    .control-center-btn { z-index: 100 !important; }
    #spark-canvas    { display: none !important; }

    /* 10. Imágenes: sin efectos */
    img {
        filter: none !important;
        transform: none !important;
    }
}
