/* ================================================================
   BOBINAS PP — Sistema de Gestión de Stock v6.0 ULTRA PREMIUM
   CSS Ultra Premium Mobile-First
   Paleta: Navy #070E1A, Gold #E8A838, Cyan #00D4FF, Rose #FF4D6A
   ================================================================ */

/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #070E1A;
    --bg-secondary: #0D1526;
    --bg-card: rgba(15, 25, 45, 0.85);
    --bg-glass: rgba(13, 21, 38, 0.75);
    --gold: #E8A838;
    --gold-light: #F5C96A;
    --cyan: #00D4FF;
    --green: #10B981;
    --green-glow: rgba(16, 185, 129, 0.25);
    --yellow: #FBBF24;
    --yellow-glow: rgba(251, 191, 36, 0.25);
    --red: #EF4444;
    --red-glow: rgba(239, 68, 68, 0.25);
    --rose: #FF4D6A;
    --purple: #A855F7;
    --blue: #3B82F6;
    --text-primary: #E8ECF4;
    --text-secondary: #7B8BA6;
    --text-muted: #4A5568;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --blur: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--cyan); text-decoration: none; }
input, select, textarea, button { font-family: var(--font); }

/* ==================== SCREENS ==================== */
.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; animation: screenIn 0.35s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==================== SPLASH ==================== */
#splash-screen { background: radial-gradient(ellipse at center, #0D1526, #070E1A); justify-content: center; align-items: center; }
.splash-content { text-align: center; }
.splash-rings { position: relative; width: 140px; height: 140px; margin: 0 auto 24px; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.ring-outer { border-top-color: var(--gold); animation: spinOuter 2s linear infinite; }
.ring-middle { inset: 14px; border-right-color: var(--cyan); animation: spinMiddle 1.5s linear infinite reverse; }
.ring-inner { inset: 28px; border-bottom-color: var(--green); animation: spinOuter 1s linear infinite; }
@keyframes spinOuter { to { transform: rotate(360deg); } }
@keyframes spinMiddle { to { transform: rotate(360deg); } }
.splash-logo-center { position: absolute; inset: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 50%; border: 2px solid var(--gold); }
.splash-logo-center span { font-size: 1.8rem; font-weight: 900; color: var(--gold); letter-spacing: 2px; }
.splash-title { font-size: 2rem; font-weight: 900; color: var(--gold); letter-spacing: 6px; }
.splash-subtitle { font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 3px; margin-top: 6px; }
.splash-version { font-size: 0.7rem; color: var(--cyan); margin-top: 12px; letter-spacing: 2px; }
.splash-loader { width: 200px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 3px; margin: 24px auto; overflow: hidden; }
.loader-bar { width: 0; height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); border-radius: 3px; animation: loadBar 2.2s ease forwards; }
@keyframes loadBar { to { width: 100%; } }
.splash-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.splash-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: dotPulse 1.2s ease infinite; }
.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1.2); } }

/* ==================== LOGIN ==================== */
#login-screen { background: var(--bg-primary); justify-content: center; align-items: center; position: relative; overflow: hidden; }
.login-particles { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(232,168,56,0.03), transparent 50%), radial-gradient(circle at 80% 50%, rgba(0,212,255,0.03), transparent 50%); }
.login-content { position: relative; z-index: 2; width: 100%; max-width: 400px; padding: 20px; }
.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}
.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.login-logo-ring { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; animation: pulseRing 2s ease infinite; }
@keyframes pulseRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,168,56,0.3); } 50% { box-shadow: 0 0 0 12px rgba(232,168,56,0); } }
.login-logo-inner { width: 60px; height: 60px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.login-logo-inner span { font-size: 1.4rem; font-weight: 900; color: var(--gold); letter-spacing: 2px; }
.login-title { text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--gold); letter-spacing: 4px; }
.login-tagline { text-align: center; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.input-group { display: flex; align-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); }
.input-group:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.1); }
.input-icon { padding: 0 14px; color: var(--text-secondary); font-size: 0.9rem; }
.input-group input { flex: 1; background: transparent; border: none; color: var(--text-primary); padding: 14px 0; font-size: 0.95rem; outline: none; }
.input-group input::placeholder { color: var(--text-muted); }
.toggle-pass { background: none; border: none; color: var(--text-secondary); padding: 0 14px; cursor: pointer; font-size: 0.9rem; }
.login-error { font-size: 0.82rem; color: var(--red); text-align: center; min-height: 0; overflow: hidden; transition: all 0.3s; }
.login-error.show { min-height: 20px; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; border: none; border-radius: var(--radius-sm); padding: 14px 24px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,168,56,0.3); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-login { width: 100%; }
.login-mode-indicator { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); margin-top: 16px; }
.login-mode-indicator.online i { color: var(--green); }
.login-mode-indicator.offline i { color: var(--yellow); }
.login-footer { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 12px; }

/* ==================== TOP BAR ==================== */
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-glass); backdrop-filter: blur(var(--blur)); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.top-bar-left { display: flex; align-items: center; gap: 10px; }
.top-bar-logo { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-light)); display: flex; align-items: center; justify-content: center; }
.top-bar-logo span { font-weight: 900; color: #000; font-size: 0.75rem; letter-spacing: 1px; }
.top-bar-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.top-bar-user { font-size: 0.72rem; color: var(--text-secondary); }
.top-bar-right { display: flex; gap: 8px; }
.btn-icon { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-xs); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.btn-icon:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-notif-premium { position: relative; }
.notification-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: white; font-size: 0.6rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: badgePulse 1.5s ease infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.btn-logout:hover { color: var(--red); }

/* ==================== ALERT BANNER ==================== */
.alert-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05)); border-bottom: 1px solid rgba(239,68,68,0.2); cursor: pointer; animation: bannerPulse 2s ease infinite; }
.alert-banner.warning { background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04)); border-bottom-color: rgba(251,191,36,0.2); }
@keyframes bannerPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.alert-icon-anim { color: var(--red); animation: iconShake 0.5s ease infinite; }
.alert-banner.warning .alert-icon-anim { color: var(--yellow); }
@keyframes iconShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
.alert-banner-text { flex: 1; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

/* ==================== DASHBOARD GRID ==================== */
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
.dash-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden;
}
.dash-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.dash-card:active { transform: scale(0.97); }
.dash-card-hero { grid-column: 1 / -1; }
.dash-card-glow { position: absolute; inset: 0; opacity: 0; transition: var(--transition); }
.stock-critical .dash-card-glow { background: radial-gradient(circle, rgba(239,68,68,0.08), transparent); opacity: 1; }
.stock-warning .dash-card-glow { background: radial-gradient(circle, rgba(251,191,36,0.08), transparent); opacity: 1; }
.stock-optimal .dash-card-glow { background: radial-gradient(circle, rgba(16,185,129,0.08), transparent); opacity: 1; }
.dash-card-icon-wrap { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.hero-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; font-size: 1.4rem; }
.icon-green { background: rgba(16,185,129,0.15); color: var(--green); }
.icon-red { background: rgba(239,68,68,0.15); color: var(--red); }
.icon-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.icon-purple { background: rgba(168,85,247,0.15); color: var(--purple); }
.icon-cyan { background: rgba(0,212,255,0.15); color: var(--cyan); }
.dash-card-label { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.dash-card-sublabel { font-size: 0.72rem; color: var(--text-secondary); }
.dash-card-badge { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #000; font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.admin-only { display: none; }
.admin-only.visible { display: flex; }

/* ==================== QUICK STATS ==================== */
.quick-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 20px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.clickable-stat { cursor: pointer; transition: var(--transition); }
.clickable-stat:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.clickable-stat:active { transform: scale(0.97); }
.stat-icon { font-size: 1.1rem; opacity: 0.7; }
.stat-number { font-size: 1.6rem; font-weight: 900; }
.stat-label { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-gold .stat-icon, .stat-gold .stat-number { color: var(--gold); }
.stat-green .stat-icon, .stat-green .stat-number { color: var(--green); }
.stat-rose .stat-icon, .stat-rose .stat-number { color: var(--rose); }
.stat-cyan .stat-icon, .stat-cyan .stat-number { color: var(--cyan); }

/* ==================== SUB HEADER ==================== */
.sub-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-glass); backdrop-filter: blur(var(--blur)); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.sub-header h2 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sub-header h2 i { color: var(--gold); font-size: 0.9rem; }
.btn-back { background: none; border: none; color: var(--text-secondary); font-size: 1.1rem; cursor: pointer; padding: 8px; transition: var(--transition); }
.btn-back:hover { color: var(--text-primary); }

/* ==================== SCREEN BODY ==================== */
.screen-body { flex: 1; padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ==================== STOCK SUMMARY (3 CLICKABLE STATES) ==================== */
.stock-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.clickable-summary { cursor: pointer; transition: var(--transition); }
.clickable-summary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); }
.clickable-summary:active { transform: scale(0.96); }
.summary-icon { font-size: 1.3rem; }
.summary-count { font-size: 1.4rem; font-weight: 900; }
.summary-count-big { font-size: 2rem; }
.summary-label { font-size: 0.65rem; color: var(--text-secondary); line-height: 1.3; }
.summary-green { border-color: rgba(16,185,129,0.2); }
.summary-green .summary-icon, .summary-green .summary-count { color: var(--green); }
.summary-yellow { border-color: rgba(251,191,36,0.2); }
.summary-yellow .summary-icon, .summary-yellow .summary-count { color: var(--yellow); }
.summary-red { border-color: rgba(239,68,68,0.2); }
.summary-red .summary-icon, .summary-red .summary-count { color: var(--red); }

/* ==================== FALTANTES ALERT BOX ==================== */
.faltantes-alert-box {
    background: linear-gradient(135deg, rgba(239,68,68,0.18), rgba(239,68,68,0.06));
    border: 2px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--transition);
    animation: faltantesPulse 2s ease infinite;
}
.faltantes-alert-box:hover { transform: translateY(-1px); }
@keyframes faltantesPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.faltantes-alert-inner { display: flex; align-items: center; gap: 12px; }
.faltantes-alert-inner > i:first-child { font-size: 1.5rem; color: var(--red); animation: iconShake 0.5s ease infinite; }
.faltantes-alert-title { display: block; font-size: 0.8rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; }
.faltantes-alert-count { display: block; font-size: 1.3rem; font-weight: 900; color: var(--text-primary); }

/* ==================== STOCK ACTION BUTTONS ==================== */
.stock-actions-bar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.stock-action-btn {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 16px; cursor: pointer; color: var(--text-primary);
    font-size: 0.88rem; transition: var(--transition); width: 100%; text-align: left;
}
.stock-action-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.12); }
.stock-action-btn:active { transform: scale(0.98); }
.stock-action-btn i { font-size: 1.1rem; }
.btn-cant-bobinas i { color: var(--gold); }
.btn-peso-total i { color: var(--cyan); }
.btn-enviar-faltantes { background: linear-gradient(135deg, rgba(37,211,102,0.15), rgba(37,211,102,0.05)); border-color: rgba(37,211,102,0.3); }
.btn-enviar-faltantes i { color: #25D366; font-size: 1.2rem; }
.btn-enviar-faltantes:hover { border-color: #25D366; }

/* ==================== STOCK LIST ==================== */
.stock-list { display: flex; flex-direction: column; gap: 10px; }
.stock-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; cursor: pointer; transition: var(--transition);
    display: flex;
}
.stock-card:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.1); }
.stock-card:active { transform: scale(0.99); }
.stock-indicator { width: 5px; flex-shrink: 0; }
.stock-indicator.green { background: var(--green); }
.stock-indicator.yellow { background: var(--yellow); }
.stock-indicator.red { background: var(--red); animation: indicatorPulse 1.5s ease infinite; }
@keyframes indicatorPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.stock-card-body { flex: 1; padding: 12px 14px; }
.stock-info { display: flex; flex-direction: column; gap: 6px; }
.stock-header { display: flex; justify-content: space-between; align-items: center; }
.stock-title { font-size: 0.95rem; font-weight: 700; }
.stock-qty { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.stock-qty.green { color: var(--green); }
.stock-qty.yellow { color: var(--yellow); }
.stock-qty.red { color: var(--red); }
.stock-specs { display: flex; gap: 16px; }
.stock-spec { display: flex; flex-direction: column; gap: 2px; }
.stock-spec-label { font-size: 0.65rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.stock-spec-label i { font-size: 0.6rem; }
.stock-spec-value { font-size: 0.82rem; font-weight: 600; }
.stock-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stock-status-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-status-badge.green { background: var(--green-glow); color: var(--green); }
.stock-status-badge.yellow { background: var(--yellow-glow); color: var(--yellow); }
.stock-status-badge.red { background: var(--red-glow); color: var(--red); }
.stock-faltantes-badge { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--red-glow); color: var(--red); }
.stock-tap-hint { margin-left: auto; font-size: 0.65rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ==================== DETAIL SCREEN ==================== */
.detail-hero { text-align: center; margin-bottom: 20px; }
.detail-hero-status { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 36px; border-radius: var(--radius); }
.detail-hero-status.green { background: var(--green-glow); }
.detail-hero-status.yellow { background: var(--yellow-glow); }
.detail-hero-status.red { background: var(--red-glow); animation: criticalPulse 1.5s ease infinite; }
@keyframes criticalPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.detail-hero-qty { font-size: 3rem; font-weight: 900; }
.detail-hero-status.green .detail-hero-qty { color: var(--green); }
.detail-hero-status.yellow .detail-hero-qty { color: var(--yellow); }
.detail-hero-status.red .detail-hero-qty { color: var(--red); }
.detail-faltantes-badge { background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(239,68,68,0.05)); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-sm); padding: 10px 16px; text-align: center; margin-bottom: 16px; font-size: 0.9rem; color: var(--red); }
.detail-faltantes-badge strong { font-size: 1.2rem; }
.detail-specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.detail-spec { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.detail-spec-icon { font-size: 1.1rem; color: var(--gold); }
.detail-spec-value { font-size: 1.05rem; font-weight: 700; }
.detail-spec-label { font-size: 0.65rem; color: var(--text-secondary); }
.detail-flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.detail-flow { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.detail-flow.green { border-color: rgba(16,185,129,0.2); }
.detail-flow.red { border-color: rgba(239,68,68,0.2); }
.detail-flow-icon { font-size: 1.1rem; }
.detail-flow.green .detail-flow-icon { color: var(--green); }
.detail-flow.red .detail-flow-icon { color: var(--red); }
.detail-flow-num { font-size: 1.6rem; font-weight: 900; }
.detail-flow-label { font-size: 0.65rem; color: var(--text-secondary); }
.detail-section { margin-bottom: 20px; }
.detail-section-title { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.detail-mov-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px; background: rgba(255,255,255,0.02); border-radius: var(--radius-sm); margin-bottom: 6px; }
.detail-mov-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.detail-mov-icon.entrada { background: var(--green-glow); color: var(--green); }
.detail-mov-icon.salida { background: var(--red-glow); color: var(--red); }
.detail-mov-info { display: flex; flex-direction: column; gap: 2px; }
.detail-mov-info strong { font-size: 0.82rem; }
.detail-mov-info span { font-size: 0.72rem; color: var(--text-secondary); }

/* ==================== METHOD GRID ==================== */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.method-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; transition: var(--transition); color: var(--text-secondary); font-size: 0.82rem; font-weight: 600;
}
.method-card:hover, .method-card.active { border-color: var(--gold); color: var(--gold); }
.method-card.active { background: rgba(232,168,56,0.08); }
.method-icon-fa { font-size: 1.5rem; }
.method-title { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.method-hint { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.4; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 16px; }
.form-group label { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.label-big { font-size: 0.9rem !important; }
.form-group input, .form-group select {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; color: var(--text-primary); font-size: 0.92rem; outline: none; transition: var(--transition);
}
.input-big { font-size: 1.2rem !important; padding: 16px !important; font-weight: 700; letter-spacing: 2px; text-align: center; }
.input-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-group input:focus, .form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,168,56,0.1); }
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%237B8BA6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group select option { background: var(--bg-secondary); color: var(--text-primary); }
.inline-input { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px 10px; color: var(--text-primary); font-size: 0.88rem; outline: none; width: 120px; }

/* ==================== RADIO CARDS ==================== */
.radio-group { display: grid; gap: 8px; }
.radio-group-3 { grid-template-columns: repeat(3, 1fr); }
.radio-group-4 { grid-template-columns: repeat(2, 1fr); }
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.radio-content {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 8px; transition: var(--transition); text-align: center;
}
.radio-card input:checked + .radio-content { border-color: var(--gold); background: rgba(232,168,56,0.08); }
.radio-icon-fa { font-size: 1.2rem; color: var(--text-secondary); }
.radio-card input:checked + .radio-content .radio-icon-fa { color: var(--gold); }
.radio-label-text { font-size: 0.75rem; font-weight: 600; }

/* ==================== DETAIL CARD ==================== */
.detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.detail-card-big { }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row span { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.detail-row strong { font-size: 0.92rem; }

/* ==================== BUTTONS ==================== */
.btn-full { width: 100%; }
.btn-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.06); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 20px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--red), #DC2626); color: white; border: none; border-radius: var(--radius-sm); padding: 14px 24px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(239,68,68,0.3); }
.btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #25D366, #128C7E); color: white; border: none; border-radius: 14px; padding: 16px 28px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: var(--transition); min-height: 56px; }
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.btn-export { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(0,212,255,0.1); color: var(--cyan); border: 2px solid rgba(0,212,255,0.25); border-radius: 14px; padding: 16px 24px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: var(--transition); margin-top: 18px; width: 100%; }
.btn-export:hover { background: rgba(0,212,255,0.2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,212,255,0.15); }
.btn-export-xl { padding: 18px 28px; font-size: 1.15rem; min-height: 56px; border-radius: 16px; }
.btn-sm { width: 32px; height: 32px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 0.8rem; transition: var(--transition); }
.btn-sm.edit { color: var(--cyan); }
.btn-sm.edit:hover { background: rgba(0,212,255,0.1); }
.btn-sm.delete { color: var(--red); }
.btn-sm.delete:hover { background: rgba(239,68,68,0.1); }

/* ==================== VOICE / MIC ==================== */
.btn-mic { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-secondary); font-size: 1.8rem; cursor: pointer; transition: var(--transition); margin: 20px auto; display: flex; align-items: center; justify-content: center; }
.btn-mic:hover { border-color: var(--gold); color: var(--gold); }
.btn-mic.recording { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.1); animation: micPulse 1s ease infinite; }
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 0 16px rgba(239,68,68,0); } }
.mic-status { text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.voz-transcript { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-top: 14px; }
.transcript-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.transcript-text { font-size: 0.92rem; color: var(--text-primary); font-style: italic; }
.voz-parsed { background: rgba(232,168,56,0.06); border: 1px solid rgba(232,168,56,0.15); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; }
.voz-parsed h4 { font-size: 0.9rem; color: var(--gold); margin-bottom: 12px; }
.parsed-data { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.parsed-item { display: flex; justify-content: space-between; align-items: center; }
.parsed-item span { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.parsed-item strong { font-size: 1rem; color: var(--text-primary); }
.voz-confirm-btns { display: flex; gap: 10px; }
.voz-confirm-btns .btn-secondary, .voz-confirm-btns .btn-primary { flex: 1; }

/* ==================== CAMERA GUIDE FRAME ==================== */
.foto-input { position: relative; }
.foto-input input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.foto-placeholder { border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 200px; justify-content: center; cursor: pointer; transition: var(--transition); }
.foto-placeholder:hover { border-color: var(--gold); }
.foto-placeholder.large { min-height: 300px; }
.foto-placeholder.has-image { border-style: solid; border-color: var(--green); padding: 10px; }

.camera-guide-frame {
    position: relative;
    width: 220px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}
.camera-guide-frame span { font-size: 0.75rem; text-align: center; }
.guide-corner { position: absolute; width: 30px; height: 30px; border: 3px solid var(--gold); }
.guide-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.guide-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.guide-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.guide-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

/* ==================== OCR ==================== */
.ocr-loading { text-align: center; padding: 20px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); width: 0; transition: width 0.3s; border-radius: 4px; }

/* ==================== FILTER BAR ==================== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.filter-bar select, .filter-bar input { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text-primary); font-size: 0.85rem; outline: none; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--gold); }

/* ==================== HISTORIAL ==================== */
.historial-list { display: flex; flex-direction: column; gap: 8px; }
.historial-card { display: flex; align-items: flex-start; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.historial-type { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.historial-type.entrada { background: var(--green-glow); color: var(--green); }
.historial-type.salida { background: var(--red-glow); color: var(--red); }
.historial-info { flex: 1; }
.historial-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.historial-meta { display: flex; flex-direction: column; gap: 2px; }
.historial-meta span { font-size: 0.72rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ==================== USERS ==================== */
.usuarios-list { display: flex; flex-direction: column; gap: 8px; }
.user-card { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.user-avatar.admin { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #000; }
.user-avatar.usuario { background: rgba(59,130,246,0.15); color: var(--blue); }
.user-avatar.ingresos { background: var(--green-glow); color: var(--green); }
.user-avatar.salidas { background: var(--red-glow); color: var(--red); }
.user-info { flex: 1; }
.user-name { font-size: 0.92rem; font-weight: 700; }
.user-meta { font-size: 0.72rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.user-actions { display: flex; gap: 6px; }

/* ==================== REPORTS ==================== */
.report-cards { display: flex; flex-direction: column; gap: 18px; }
.report-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; cursor: pointer; transition: var(--transition); width: 100%;
    color: var(--text-primary); text-align: left;
}
.report-card-xl {
    padding: 28px 22px;
    border-width: 2px;
    min-height: 110px;
    border-radius: 16px;
    gap: 18px;
}
.report-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.report-card:active { transform: scale(0.98); }
.report-icon-wrap { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.report-icon-xl { width: 68px; height: 68px; font-size: 1.8rem; border-radius: 16px; }
.rc-gold { background: rgba(232,168,56,0.15); color: var(--gold); }
.rc-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.rc-red { background: rgba(239,68,68,0.15); color: var(--red); }
.report-card h4 { font-size: 1.15rem; font-weight: 700; }
.report-card-xl h4 { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.3px; }
.report-card p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.report-card-xl p { font-size: 0.95rem; }
.report-arrow { margin-left: auto; color: var(--text-muted); font-size: 1.1rem; }
.report-output { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.report-output h4 { margin-bottom: 14px; }
.report-metrics-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.report-metric { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; display: flex; align-items: center; gap: 4px; }
.report-metric.green { background: var(--green-glow); color: var(--green); }
.report-metric.yellow { background: var(--yellow-glow); color: var(--yellow); }
.report-metric.red { background: var(--red-glow); color: var(--red); }

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.78rem; }
table.table-large { font-size: 0.92rem; }
thead { background: rgba(255,255,255,0.04); }
th { padding: 8px 6px; text-align: left; font-weight: 700; color: var(--gold); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.table-large td { padding: 12px 8px; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ==================== NOTIFICATIONS ==================== */
.notif-section { margin-bottom: 20px; }
.notif-section-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.notif-section-title.notif-critical { color: var(--red); }
.notif-section-title.notif-warning { color: var(--yellow); }
.notif-section-title.notif-info { color: var(--blue); }
.notif-section-title.notif-stock { color: var(--gold); }
.notif-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 6px; cursor: pointer; transition: var(--transition); }
.notif-card:hover { background: rgba(255,255,255,0.04); }
.notif-card-critical { border-color: rgba(239,68,68,0.2); }
.notif-card-warning { border-color: rgba(251,191,36,0.2); }
.notif-card-info { border-color: rgba(59,130,246,0.15); cursor: default; }
.notif-card-left { flex: 1; display: flex; align-items: center; gap: 10px; }
.notif-card-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.notif-card-sub { font-size: 0.75rem; color: var(--text-secondary); }
.notif-card-total { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.notif-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(59,130,246,0.15); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.notif-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.notif-summary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; }
.notif-summary-card.green { border-color: rgba(16,185,129,0.2); }
.notif-summary-card.yellow { border-color: rgba(251,191,36,0.2); }
.notif-summary-card.red { border-color: rgba(239,68,68,0.2); }
.notif-summary-num { display: block; font-size: 1.6rem; font-weight: 900; }
.notif-summary-card.green .notif-summary-num { color: var(--green); }
.notif-summary-card.yellow .notif-summary-num { color: var(--yellow); }
.notif-summary-card.red .notif-summary-num { color: var(--red); }
.notif-summary-label { font-size: 0.65rem; color: var(--text-secondary); }

/* ==================== MODAL ==================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-content { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; width: 100%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { color: var(--gold); }
.btn-close-modal { border-radius: 50%; }
.modal-body { flex: 1; overflow-y: auto; padding: 20px; -webkit-overflow-scrolling: touch; }

/* ==================== STAT DETAIL (Modal) ==================== */
.stat-detail-big { text-align: center; font-size: 3rem; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.stat-detail-list { max-height: 300px; overflow-y: auto; }
.stat-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.stat-detail-row span { color: var(--text-secondary); }
.stat-detail-row strong { color: var(--text-primary); font-weight: 700; }

/* ==================== FILTERED STOCK LIST ==================== */
.filtered-stock-list { max-height: 400px; overflow-y: auto; }

/* ==================== TOAST ==================== */
.toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; box-shadow: var(--shadow); animation: toastIn 0.3s ease; font-size: 0.85rem; }
.toast.success { border-color: var(--green); }
.toast.success i { color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.error i { color: var(--red); }
.toast.warning { border-color: var(--yellow); }
.toast.warning i { color: var(--yellow); }
.toast.info { border-color: var(--cyan); }
.toast.info i { color: var(--cyan); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; color: var(--text-muted); }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 600px) {
    .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-stats { grid-template-columns: repeat(4, 1fr); }
    .radio-group-4 { grid-template-columns: repeat(4, 1fr); }
    .stock-actions-bar { flex-direction: row; flex-wrap: wrap; }
    .stock-action-btn { flex: 1; min-width: 200px; }
    .modal-content { border-radius: var(--radius); margin: auto; }
    .modal-overlay { align-items: center; }
}
@media (min-width: 900px) {
    .login-content { max-width: 440px; }
    .screen-body { max-width: 700px; margin: 0 auto; }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ==================== PWA / iOS ==================== */
@supports (-webkit-touch-callout: none) {
    body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* ================================================================
   MEGA LOGIN FIELDS — Campos enormes de login
   ================================================================ */
.input-group-mega {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    min-height: 68px;
}
.input-group-mega:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(232,168,56,0.15);
    background: rgba(255,255,255,0.08);
}
.input-icon-mega {
    padding: 0 18px;
    color: var(--gold);
    font-size: 1.4rem;
}
.input-group-mega input,
.input-mega {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 20px 0;
    font-size: 1.35rem !important;
    font-weight: 600;
    outline: none;
    letter-spacing: 0.5px;
}
.input-group-mega input::placeholder {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 400;
}
.toggle-pass-mega {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0 18px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition);
}
.toggle-pass-mega:hover { color: var(--gold); }

/* Login button mega */
.btn-xl {
    padding: 18px 28px !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    min-height: 60px;
    border-radius: 14px !important;
    letter-spacing: 0.5px;
}

/* Login card wider on desktop */

/* ================================================================
   STOCK SUMMARY 2-COL — Indicadores grandes
   ================================================================ */
.stock-summary-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}
.summary-item-big {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.summary-item-big i { font-size: 1.6rem; }
.summary-count-xl {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}
.summary-label-big {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.summary-green { border-color: rgba(16,185,129,0.3); }
.summary-green i, .summary-green .summary-count-xl { color: var(--green); }
.summary-red { border-color: rgba(239,68,68,0.3); }
.summary-red i, .summary-red .summary-count-xl { color: var(--red); }

/* ================================================================
   FALTANTES ALERT BOX — XL TEXT
   ================================================================ */
.faltantes-alert-title-xl {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.faltantes-alert-count-xl {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ================================================================
   STOCK CARDS XL — Texto más grande
   ================================================================ */
.stock-title-xl {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.stock-qty-xl {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}
.stock-qty-xl.green { color: var(--green); }
.stock-qty-xl.red { color: var(--red); }
.stock-specs-xl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.stock-specs-xl i { margin-right: 3px; }
.stock-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.stock-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stock-status-badge.green { background: rgba(16,185,129,0.15); color: var(--green); }
.stock-status-badge.red { background: rgba(239,68,68,0.15); color: var(--red); }
.stock-tap-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================================================================
   FALTANTES MODAL LIST — XL
   ================================================================ */
.faltantes-list-xl {
    max-height: 400px;
    overflow-y: auto;
}
.faltante-row-xl {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.faltante-row-xl:hover { background: rgba(255,255,255,0.03); }
.faltante-info-xl { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.faltante-code-xl { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.faltante-desc-xl { font-size: 0.82rem; color: var(--text-secondary); }
.faltante-nums-xl { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.faltante-exist-xl { font-size: 0.8rem; color: var(--text-secondary); }
.faltante-need-xl { font-size: 1rem; font-weight: 800; color: var(--red); }

/* ================================================================
   WHATSAPP BUTTON
   ================================================================ */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 28px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 56px;
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.btn-whatsapp i { font-size: 1.5rem; }

/* ================================================================
   DETAIL HERO — XL
   ================================================================ */
.detail-hero { display: flex; justify-content: center; margin-bottom: 20px; }
.detail-hero-status {
    text-align: center;
    padding: 20px 40px;
    border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.detail-hero-status.green { background: rgba(16,185,129,0.1); border: 2px solid rgba(16,185,129,0.3); }
.detail-hero-status.red { background: rgba(239,68,68,0.1); border: 2px solid rgba(239,68,68,0.3); }
.detail-hero-qty { font-size: 3.5rem; font-weight: 900; }
.detail-hero-status.green .detail-hero-qty { color: var(--green); }
.detail-hero-status.red .detail-hero-qty { color: var(--red); }
.detail-hero-status span:last-child { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.detail-hero-status.green span:last-child { color: var(--green); }
.detail-hero-status.red span:last-child { color: var(--red); }

.detail-faltantes-badge-xl {
    text-align: center;
    padding: 14px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    color: var(--red);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.detail-spec {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.detail-spec-icon { font-size: 1.2rem; color: var(--gold); }
.detail-spec-value { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.detail-spec-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }

.detail-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.detail-flow {
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.detail-flow.green { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.detail-flow.red { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.detail-flow-icon { font-size: 1rem; }
.detail-flow.green .detail-flow-icon, .detail-flow.green .detail-flow-num { color: var(--green); }
.detail-flow.red .detail-flow-icon, .detail-flow.red .detail-flow-num { color: var(--red); }
.detail-flow-num { font-size: 1.8rem; font-weight: 900; }
.detail-flow-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; }

.detail-section { margin-top: 10px; }
.detail-section-title { font-size: 0.95rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.detail-section-title i { margin-right: 6px; }

.detail-mov-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.detail-mov-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.detail-mov-icon.entrada { background: rgba(16,185,129,0.12); color: var(--green); }
.detail-mov-icon.salida { background: rgba(239,68,68,0.12); color: var(--red); }
.detail-mov-info { flex: 1; }
.detail-mov-info strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.detail-mov-info span { font-size: 0.75rem; color: var(--text-secondary); }

/* ================================================================
   NOTIFICATION CARDS — XL
   ================================================================ */
.notif-section { margin-bottom: 20px; }
.notif-section-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.notif-critical { background: rgba(239,68,68,0.1); color: var(--red); }
.notif-stock { background: rgba(59,130,246,0.1); color: var(--blue); }
.notif-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.notif-card:hover { transform: translateY(-1px); }
.notif-card-critical { border-left: 4px solid var(--red); }
.notif-card-left { flex: 1; display: flex; align-items: center; gap: 10px; }
.notif-card-title-xl { font-size: 0.95rem; font-weight: 700; }
.notif-card-sub-xl { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.notif-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.notif-summary-card {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.notif-summary-card.green { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); }
.notif-summary-card.red { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.notif-summary-num { font-size: 2rem; font-weight: 900; }
.notif-summary-card.green .notif-summary-num { color: var(--green); }
.notif-summary-card.red .notif-summary-num { color: var(--red); }
.notif-summary-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; }

/* ================================================================
   CLICKABLE STATS — Dashboard
   ================================================================ */
.clickable-stat {
    cursor: pointer;
    transition: var(--transition);
}
.clickable-stat:hover { transform: translateY(-2px); }
.clickable-stat:active { transform: scale(0.97); }
.stat-detail-sub { text-align: center; font-size: 0.9rem; color: var(--text-secondary); }
.stat-row-label { color: var(--text-secondary); font-size: 0.82rem; }
.stat-row-val { color: var(--text-primary); font-weight: 700; }

/* ================================================================
   LABELS BIG & DETAIL CARD BIG
   ================================================================ */
.label-big { font-size: 1rem !important; font-weight: 700 !important; }
.input-big { font-size: 1.1rem !important; padding: 14px !important; }
.detail-card-big { font-size: 0.95rem; }
.detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }

/* ================================================================
   STOCK CARD ALERTS — Hero card
   ================================================================ */
.stock-critical .dash-card-glow { background: radial-gradient(circle, rgba(239,68,68,0.2), transparent 70%); }
.stock-optimal .dash-card-glow { background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%); }

/* ================================================================
   TABLE REPORTS — Bigger fonts
   ================================================================ */
.table-large {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.table-large th, .table-large td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
}
.table-large th {
    background: rgba(232,168,56,0.1);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Report tables (generic) */
#report-output table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
#report-output table th, #report-output table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    text-align: center;
}
#report-output table th {
    background: rgba(232,168,56,0.08);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.3);
    color: var(--cyan);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}
.btn-export:hover { background: rgba(0,212,255,0.2); }

/* ================================================================
   MISC
   ================================================================ */
.btn-full { width: 100%; }
.btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--red), #DC2626);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(239,68,68,0.3); }
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.btn-sm.edit:hover { color: var(--cyan); border-color: var(--cyan); }
.btn-sm.delete:hover { color: var(--red); border-color: var(--red); }

.btn-close-modal {
    width: 32px !important;
    height: 32px !important;
}

.inline-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 1rem;
    outline: none;
    width: 120px;
}
.inline-input:focus { border-color: var(--gold); }

.input-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}
