/* ==========================================================================
   LAGUIAVENEZOLANA.COM - Global Styles
   Mobile-First Approach
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0f0f0f;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.1);
    --accent-glow-strong: rgba(0, 255, 136, 0.25);
    --warning: #ffaa00;
    --error: #ff4444;
    --success: #00ff88;
    --border: #1f1f1f;
    --border-light: #2a2a2a;
    --code-bg: #0d0d0d;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Container */
    --container-sm: 600px;
    --container-md: 800px;
    --container-lg: 900px;
    --container-xl: 1000px;
    --container-2xl: 1200px;
}

/* ==========================================================================
   Reset & Base (Mobile-First)
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle grid background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.mono {
    font-family: var(--font-mono);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    line-height: 1.3;
    color: var(--text-primary);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

.external-link::after {
    content: " ↗";
    font-size: 0.8em;
}

code {
    font-family: var(--font-mono);
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* ==========================================================================
   Lists
   ========================================================================== */
ul, ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

li::marker {
    color: var(--accent);
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
}

/* ==========================================================================
   Header (Mobile-First)
   ========================================================================== */
.disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: linear-gradient(90deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.disclaimer-banner strong {
    color: var(--warning);
}

header {
    position: fixed;
    top: 52px; /* Account for multi-line disclaimer on mobile */
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: var(--container-2xl);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo-prefix {
    color: var(--text-muted);
}

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

/* Desktop nav - hidden on mobile */
.desktop-nav {
    display: none;
    gap: 1.5rem;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.desktop-nav a:hover {
    color: var(--accent);
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--accent);
    background: var(--bg-tertiary);
    border-left-color: var(--accent);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
    opacity: 1;
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.25);
    opacity: 1;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--accent);
}

/* ==========================================================================
   Callouts
   ========================================================================== */
.callout {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.25rem;
    margin: var(--space-lg) 0;
    border-radius: 0 8px 8px 0;
}

.callout.warning {
    border-left-color: var(--warning);
}

.callout.error {
    border-left-color: var(--error);
}

.callout.success {
    border-left-color: var(--success);
}

.callout-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.callout.warning .callout-title {
    color: var(--warning);
}

.callout.error .callout-title {
    color: var(--error);
}

.callout.success .callout-title {
    color: var(--success);
}

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

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    margin: var(--space-lg) 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

th {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    white-space: nowrap;
}

td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tr:hover td {
    background: var(--bg-secondary);
}

.status-yes { color: var(--success); }
.status-no { color: var(--error); }
.status-maybe { color: var(--warning); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) var(--space-md);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    line-height: 1.7;
}

.footer-links h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-bottom {
    max-width: var(--container-xl);
    margin: var(--space-xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.accent { color: var(--accent); }
.warning { color: var(--warning); }
.error { color: var(--error); }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   TABLET+ (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {
    .disclaimer-banner {
        padding: 0.5rem 2rem;
        font-size: 0.8rem;
    }

    header {
        top: 34px;
        padding: 1rem 2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn {
        width: auto;
        padding: 1rem 2rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   DESKTOP (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-sidebar,
    .sidebar-overlay {
        display: none;
    }

    body::before {
        background-size: 50px 50px;
    }
}

/* ==========================================================================
   LARGE DESKTOP (min-width: 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .desktop-nav {
        gap: 2rem;
    }
}

