/* ============================================
   LS SYSTEM - PREMIUM MODERN PHP 8.1
   Escalas de Azul - Visual Impactante
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #000814;
    color: #F2FDFF;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'JetBrains Mono', 'Fira Code', monospace; line-height: 1.2; }
::selection { background: #0094C6; color: #000814; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === MATRIX RAIN CANVAS === */
#matrix-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.35;
}

/* === PARTICLES === */
.particle {
    position: fixed; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,180,255,0.8), transparent);
    pointer-events: none; z-index: 1;
    animation: float-particle linear infinite;
}
@keyframes float-particle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* === GLASSMORPHISM === */
.glass {
    background: linear-gradient(135deg, rgba(0,50,120,0.4), rgba(0,10,30,0.6));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,148,198,0.15);
}
.glass:hover {
    border-color: rgba(0,148,198,0.4);
    box-shadow: 0 8px 32px rgba(0,148,198,0.15);
}

/* === GLOW EFFECTS === */
.glow-cyan { box-shadow: 0 0 20px rgba(0,148,198,0.4), 0 0 60px rgba(0,148,198,0.1); }
.glow-text { text-shadow: 0 0 20px rgba(0,180,255,0.5); }

/* === BUTTONS PREMIUM === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border: none; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, #0094C6, #0077B6);
    color: #fff; box-shadow: 0 4px 20px rgba(0,148,198,0.4);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #00B4D8, #0094C6);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(0,148,198,0.6); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
    background: rgba(0,50,120,0.3); color: #A2BCE0;
    border: 1px solid rgba(0,148,198,0.3);
}
.btn-outline:hover {
    background: rgba(0,148,198,0.15); border-color: rgba(0,148,198,0.6);
    color: #F2FDFF; transform: translateY(-3px);
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #0094C6, #00B4D8, #48CAE4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BADGE === */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(0,148,198,0.1); border: 1px solid rgba(0,148,198,0.3);
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: #A2BCE0; letter-spacing: 0.15em; text-transform: uppercase;
}

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 70px; display: flex; align-items: center;
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(0,8,28,0.9); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,148,198,0.2);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #0094C6, #0077B6); display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: bold; font-size: 16px; color: #fff; box-shadow: 0 0 15px rgba(0,148,198,0.4); }
.nav-logo-text { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: bold; color: #F2FDFF; }
.nav-logo-text span { color: #0094C6; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: #A2BCE0; transition: all 0.3s; }
.nav-links a:hover { color: #F2FDFF; background: rgba(0,148,198,0.1); }
.nav-cta { padding: 10px 20px; border-radius: 10px; background: linear-gradient(135deg, #0094C6, #0077B6); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; font-weight: 600; transition: all 0.3s; box-shadow: 0 0 15px rgba(0,148,198,0.3); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 5px 25px rgba(0,148,198,0.5); }
.nav-toggle { display: none; background: none; border: none; color: #A2BCE0; cursor: pointer; }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 70px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #001845 0%, #000814 70%); }
.hero-glow { position: absolute; inset: 0; opacity: 0.3; background: radial-gradient(ellipse at 30% 20%, rgba(0,148,198,0.3), transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(0,180,216,0.2), transparent 50%); }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; padding: 0 24px; }
.hero-badge { margin-bottom: 32px; }
.hero-title { font-size: clamp(40px, 8vw, 80px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 24px; color: #F2FDFF; }
.hero-title .gradient-text { display: block; }
.hero-subtitle { font-size: 16px; color: #A2BCE0; max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tag { padding: 8px 18px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: #A2BCE0; background: rgba(0,50,120,0.3); border: 1px solid rgba(0,148,198,0.2); transition: all 0.3s; }
.hero-tag:hover { border-color: rgba(0,148,198,0.5); color: #F2FDFF; background: rgba(0,148,198,0.15); }

/* === SECTIONS === */
.section { position: relative; padding: 100px 24px; overflow: hidden; }
.section-bg-dark { background: linear-gradient(180deg, #000814, #001233); }
.section-bg-mid { background: linear-gradient(180deg, #001233, #001845, #001233); }
.section-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; opacity: 0.15; filter: blur(100px); pointer-events: none; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: #0094C6; text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 5vw, 44px); font-weight: 700; color: #F2FDFF; line-height: 1.15; margin-bottom: 16px; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; border: 2px solid rgba(0,148,198,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.about-image::before { content: ''; position: absolute; inset: -20px; border-radius: 28px; border: 1px solid rgba(0,148,198,0.15); z-index: -1; }
.about-text p { color: #A2BCE0; margin-bottom: 16px; line-height: 1.8; }
.about-founder { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 16px; border-radius: 12px; background: rgba(0,50,120,0.3); border: 1px solid rgba(0,148,198,0.2); }
.about-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,148,198,0.4); }
.about-founder-info h4 { font-size: 15px; color: #F2FDFF; margin-bottom: 4px; }
.about-founder-info p { font-size: 12px; color: #A2BCE0; margin: 0; }

/* === CARDS === */
.cards-grid { display: grid; gap: 24px; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    padding: 32px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(0,40,100,0.4), rgba(0,10,30,0.6));
    transition: all 0.4s ease; position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, #0094C6), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(0,148,198,0.3); box-shadow: 0 12px 40px rgba(0,148,198,0.15); }
.card:hover::before { opacity: 1; }
.card-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 28px; }
.card-title { font-size: 20px; font-weight: 700; color: #F2FDFF; margin-bottom: 12px; }
.card-desc { font-size: 14px; color: #A2BCE0; line-height: 1.7; margin-bottom: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tag { padding: 4px 12px; border-radius: 6px; font-size: 10px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; color: #A2BCE0; background: rgba(0,50,120,0.3); border: 1px solid rgba(0,148,198,0.2); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-number { font-size: clamp(36px, 5vw, 56px); font-weight: 700; font-family: 'JetBrains Mono', monospace; background: linear-gradient(135deg, #0094C6, #00B4D8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.15em; color: #A2BCE0; text-transform: uppercase; margin-top: 8px; }

/* === MARQUEE === */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 24px; animation: marquee 40s linear infinite; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-card { flex-shrink: 0; width: 200px; padding: 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); background: linear-gradient(135deg, rgba(0,40,100,0.4), rgba(0,10,30,0.6)); transition: all 0.3s; }
.marquee-card:hover { border-color: rgba(0,148,198,0.3); transform: translateY(-4px); }
.marquee-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; filter: sepia(30%) hue-rotate(180deg) saturate(1.2) brightness(0.9); transition: filter 0.3s; }
.marquee-card:hover img { filter: none; }

/* === BLOG === */
.blog-card { padding: 28px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); background: linear-gradient(135deg, rgba(0,40,100,0.4), rgba(0,10,30,0.6)); transition: all 0.4s; }
.blog-card:hover { border-color: rgba(0,148,198,0.3); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,148,198,0.1); }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #A2BCE0; margin-bottom: 12px; }
.blog-card-title { font-size: 18px; font-weight: 700; color: #F2FDFF; margin-bottom: 12px; line-height: 1.4; }
.blog-card-title:hover { color: #0094C6; }
.blog-card-excerpt { font-size: 14px; color: #A2BCE0; line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; color: #0094C6; transition: all 0.3s; }
.blog-card-link:hover { gap: 10px; }

/* === CONTACT BUTTONS === */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 800px; margin: 0 auto; }
.contact-btn {
    display: flex; align-items: center; gap: 12px; padding: 20px;
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(0,50,120,0.4), rgba(0,15,45,0.6));
    transition: all 0.3s ease;
}
.contact-btn:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(0,148,198,0.4); }
.contact-btn-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-btn-info { min-width: 0; }
.contact-btn-label { font-size: 10px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; color: #A2BCE0; text-transform: uppercase; }
.contact-btn-value { font-size: 14px; color: #F2FDFF; font-weight: 600; }

/* === ANGELA CHAT === */
.angela-toggle {
    position: fixed; bottom: 24px; right: 24px; z-index: 1000;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #0094C6, #0077B6);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; box-shadow: 0 4px 20px rgba(0,148,198,0.5);
    transition: all 0.3s ease;
}
.angela-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,148,198,0.7); }
.angela-panel {
    position: fixed; bottom: 100px; right: 24px; z-index: 1000;
    width: 400px; max-width: calc(100vw - 48px); height: 520px;
    border-radius: 24px; overflow: hidden;
    background: rgba(0,12,36,0.97); backdrop-filter: blur(20px);
    border: 1px solid rgba(0,148,198,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,148,198,0.1);
    display: flex; flex-direction: column;
    transform: scale(0.9) translateY(20px); opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.angela-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.angela-header { padding: 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(0,148,198,0.2); background: linear-gradient(135deg, rgba(0,148,198,0.15), rgba(0,50,120,0.2)); }
.angela-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #0094C6, #00B4D8); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.angela-info h4 { font-size: 15px; color: #F2FDFF; margin-bottom: 2px; }
.angela-info p { font-size: 11px; color: #A2BCE0; }
.angela-status { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.angela-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.angela-status-text { font-size: 10px; color: #22c55e; }
.angela-close { background: none; border: none; color: #A2BCE0; cursor: pointer; font-size: 18px; margin-left: 8px; }
.angela-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.angela-msg { display: flex; gap: 10px; max-width: 85%; }
.angela-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.angela-msg-bubble { padding: 12px 16px; border-radius: 18px; font-size: 13px; line-height: 1.6; }
.angela-msg.angela .angela-msg-bubble { background: rgba(0,148,198,0.15); color: #e0f0ff; border: 1px solid rgba(0,148,198,0.2); border-radius: 4px 18px 18px 18px; }
.angela-msg.user .angela-msg-bubble { background: rgba(51,65,92,0.6); color: #F2FDFF; border: 1px solid rgba(51,65,92,0.5); border-radius: 18px 4px 18px 18px; }
.angela-msg-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.angela-msg.angela .angela-msg-avatar { background: linear-gradient(135deg, #0094C6, #00B4D8); }
.angela-msg.user .angela-msg-avatar { background: rgba(51,65,92,0.8); }
.angela-input-area { padding: 16px; border-top: 1px solid rgba(0,148,198,0.2); display: flex; gap: 10px; }
.angela-input { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid #33415C; background: rgba(0,8,28,0.6); color: #F2FDFF; font-size: 13px; outline: none; }
.angela-input:focus { border-color: #0094C6; }
.angela-input::placeholder { color: #33415C; }
.angela-send { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #0094C6, #0077B6); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.angela-send:hover { transform: scale(1.05); }

/* === FOOTER === */
.footer { background: linear-gradient(180deg, #000814 0%, #001233 50%, #001845 100%); position: relative; overflow: hidden; padding: 80px 24px 40px; }
.footer-glow { position: absolute; top: 0; left: 25%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, #0094C6, transparent 70%); opacity: 0.15; filter: blur(80px); pointer-events: none; }
.footer-content { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* === ADMIN === */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: #001233; border-right: 1px solid rgba(0,148,198,0.2); position: fixed; height: 100vh; overflow-y: auto; }
.admin-main { flex: 1; margin-left: 260px; padding: 32px; background: #000814; min-height: 100vh; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 13px; color: #A2BCE0; border-radius: 8px; margin: 2px 12px; transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(0,148,198,0.15); color: #F2FDFF; }
.admin-nav a.active { border-left: 2px solid #0094C6; }
.admin-card { padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); background: linear-gradient(135deg, rgba(0,40,100,0.4), rgba(0,10,30,0.6)); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; color: #A2BCE0; text-transform: uppercase; border-bottom: 1px solid rgba(0,148,198,0.2); background: rgba(0,50,120,0.3); }
.admin-table td { padding: 12px 16px; font-size: 13px; color: #F2FDFF; border-bottom: 1px solid rgba(255,255,255,0.05); }
.admin-table tr:hover td { background: rgba(0,148,198,0.05); }
.form-input { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #33415C; background: rgba(0,8,28,0.6); color: #F2FDFF; font-size: 14px; outline: none; transition: all 0.3s; }
.form-input:focus { border-color: #0094C6; box-shadow: 0 0 0 3px rgba(0,148,198,0.1); }
.form-label { display: block; font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; color: #A2BCE0; text-transform: uppercase; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }

/* === LOGIN === */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #001845 0%, #000814 70%); }
.login-box { width: 100%; max-width: 420px; padding: 40px; border-radius: 24px; border: 1px solid rgba(0,148,198,0.2); background: linear-gradient(135deg, rgba(0,40,100,0.4), rgba(0,10,30,0.6)); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000814; }
::-webkit-scrollbar-thumb { background: #0094C6; border-radius: 3px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { transform: translateX(-100%); position: fixed; z-index: 200; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; }
    .hero-title { font-size: 36px; }
    .cards-grid-2, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 16px; }
    .angela-panel { width: calc(100vw - 32px); right: 16px; }
}
