/* ============================================
   Help-U — Global Styles
   ============================================ */

:root {
    --bg-primary: #0b0f1a;
    --bg-secondary: #101828;
    --bg-tertiary: #1a2540;
    --bg-card: #121a2e;
    --bg-card-hover: #1a2744;
    --border: #243049;
    --border-light: #2e3f5e;
    --text-primary: #f0f2f7;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --accent-primary: #F7941D;
    --accent-primary-light: #FBAB42;
    --accent-primary-dark: #E07D0A;
    --accent-cyan: #1F355E;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-orange: #F7941D;
    --gradient-primary: linear-gradient(135deg, #1F355E, #F7941D);
    --gradient-hero: linear-gradient(135deg, #1F355E 0%, #2a4a7a 50%, #F7941D 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(247, 148, 29, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ============================================
   Typography
   ============================================ */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: var(--font-mono);
}

.text-green {
    color: var(--accent-green);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(247, 148, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(247, 148, 29, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-light);
    background: rgba(247, 148, 29, 0.05);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.85;
}

.logo-img-origin {
    height: 80px;
    width: auto;
    transition: opacity 0.2s;
}

.logo i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo strong {
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta a::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 148, 29, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 148, 29, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(31, 53, 94, 0.2) 0%, rgba(247, 148, 29, 0.08) 40%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(247, 148, 29, 0.1);
    border: 1px solid rgba(247, 148, 29, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary-light);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.important-tag {
    color: var(--accent-primary-light);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.35s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: rgba(247, 148, 29, 0.3);
    background: linear-gradient(135deg, rgba(31, 53, 94, 0.15), rgba(247, 148, 29, 0.06));
}

.service-card.featured::before {
    opacity: 1;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 148, 29, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.3rem;
    color: var(--accent-primary-light);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    margin-bottom: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0;
}

.service-features li i {
    color: var(--accent-green);
    font-size: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary-light);
}

.service-link:hover {
    gap: 10px;
}

/* ============================================
   Platform Modules
   ============================================ */
.platform-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 32px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s;
}

.module-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.module-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.4rem;
}

.ticketing-icon {
    background: rgba(247, 148, 29, 0.12);
    color: var(--accent-primary-light);
}

.inventory-icon {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
}

.module-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.module-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.module-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.module-features {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.module-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}

.module-feature:hover {
    border-color: var(--border-light);
}

.module-feature i {
    font-size: 1.1rem;
    color: var(--accent-primary-light);
    margin-top: 2px;
}

.module-feature strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.module-feature span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.about-card {
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
}

.about-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.about-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--accent-primary-light);
}

.about-card h4 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 148, 29, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary-light);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.contact-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.contact-socials a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-light);
    background: rgba(247, 148, 29, 0.1);
}

/* ============================================
   Forms
   ============================================ */
.contact-form,
.ticket-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.form-disclaimer i {
    margin-right: 4px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form-card h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-card h3 i {
    margin-right: 8px;
    color: var(--accent-primary-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.file-upload {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: var(--accent-primary);
}

.file-upload i {
    font-size: 2rem;
    color: var(--accent-primary-light);
    margin-bottom: 12px;
}

.file-upload p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.file-upload span {
    color: var(--accent-primary-light);
    font-weight: 600;
}

.file-upload small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary-light);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   App Layout (Ticketing & Inventario)
   ============================================ */
.app-body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(247, 148, 29, 0.1);
    color: var(--accent-primary-light);
}

.sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(247, 148, 29, 0.15);
    color: var(--accent-primary-light);
    border-radius: 50px;
}

.sidebar-badge.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.sidebar-badge.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
}

.user-info strong {
    display: block;
    font-size: 0.85rem;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* App Main */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Top Bar */
.app-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    height: var(--topbar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.topbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-width: 450px;
}

.topbar-search i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.topbar-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
}

.topbar-search input::placeholder {
    color: var(--text-muted);
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.topbar-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
}

/* App Content */
.app-content {
    padding: 28px;
}

.app-content.hidden {
    display: none;
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.content-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.content-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* KPIs */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.kpi-icon.blue {
    background: rgba(247, 148, 29, 0.12);
    color: var(--accent-primary-light);
}

.kpi-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.kpi-icon.yellow {
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-yellow);
}

.kpi-icon.red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.kpi-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kpi-trend {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
}

.kpi-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.kpi-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.table-header h3 i {
    margin-right: 8px;
    color: var(--accent-primary-light);
}

.table-filters {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 7px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background: rgba(247, 148, 29, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status & Priority Badges */
.status-badge,
.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.status-badge.abierto { background: rgba(247, 148, 29, 0.12); color: var(--accent-primary-light); }
.status-badge.en-progreso { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); }
.status-badge.pendiente { background: rgba(249, 115, 22, 0.12); color: var(--accent-orange); }
.status-badge.resuelto { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.status-badge.cerrado { background: rgba(107, 107, 128, 0.12); color: var(--text-muted); }
.status-badge.asignado { background: rgba(247, 148, 29, 0.12); color: var(--accent-primary-light); }
.status-badge.stock { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); }
.status-badge.reparacion { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); }
.status-badge.retirado { background: rgba(107, 107, 128, 0.12); color: var(--text-muted); }

.priority-badge.critica { background: rgba(239, 68, 68, 0.12); color: var(--accent-red); }
.priority-badge.alta { background: rgba(249, 115, 22, 0.12); color: var(--accent-orange); }
.priority-badge.media { background: rgba(245, 158, 11, 0.12); color: var(--accent-yellow); }
.priority-badge.baja { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }

.type-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.type-icon i {
    color: var(--accent-primary-light);
}

.table-action {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s;
}

.table-action:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-light);
}

/* ============================================
   Ticket Detail
   ============================================ */
.ticket-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-card h3 i {
    margin-right: 8px;
    color: var(--accent-primary-light);
}

.detail-card h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.detail-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.detail-field:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.spec-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Activity Timeline */
.activity-timeline {
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.activity-avatar.system {
    background: rgba(247, 148, 29, 0.12);
    color: var(--accent-primary-light);
    border-color: rgba(247, 148, 29, 0.2);
}

.activity-content strong {
    font-size: 0.85rem;
}

.activity-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.activity-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.comment-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.comment-box textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    resize: vertical;
    min-height: 80px;
}

.comment-box textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ============================================
   Chatbot
   ============================================ */
.chatbot-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(247, 148, 29, 0.4);
    z-index: 200;
    transition: transform 0.2s;
}

.chatbot-trigger:hover {
    transform: scale(1.08);
}

.chatbot-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
}

.chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-height: 540px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-window.hidden {
    display: none;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: #fff;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title i {
    font-size: 1.3rem;
}

.chatbot-title strong {
    display: block;
    font-size: 0.95rem;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 148, 29, 0.15);
    color: var(--accent-primary-light);
    border-radius: 50%;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.chat-bubble {
    max-width: 260px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px 12px 12px 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.chat-message.user .chat-bubble {
    background: rgba(247, 148, 29, 0.12);
    border-color: rgba(247, 148, 29, 0.2);
    border-radius: 12px 12px 4px 12px;
    color: var(--text-primary);
}

.chat-bubble p {
    margin-bottom: 8px;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-bubble ul {
    margin: 8px 0;
    padding-left: 0;
}

.chat-bubble li {
    padding: 3px 0;
    font-size: 0.82rem;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}

.suggestion-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.suggestion-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-light);
}

.chatbot-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s;
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

/* ============================================
   Toast / Notifications
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .platform-modules {
        grid-template-columns: 1fr;
    }

    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* App Layout */
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .table-filters {
        width: 100%;
    }

    .table-filters .filter-select {
        flex: 1;
    }

    .content-header {
        flex-direction: column;
        gap: 16px;
    }

    .chatbot-window {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 84px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat {
        padding: 14px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
