:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #10b981;
    --bg-main: #0f172a; /* Dark theme for premium feel */
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-logo span {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 24px;
    align-items: center;
}

.qr-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.qr-download:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.qr-download img {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-sm);
}

.qr-download span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Sections General */
section {
    padding: 100px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

/* Problem & Solution */
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(129, 140, 248, 0.3);
}

.story-icon {
    font-size: 40px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
}

.story-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.story-card p {
    color: var(--text-secondary);
}

/* How to start */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(135deg, #818cf8, #c084fc);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-secondary);
}

/* Map Section */
.map-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    border: 1px solid var(--border);
}

.map-sidebar {
    padding: 32px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
}

.map-sidebar h3 {
    margin-bottom: 24px;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-item {
    padding: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-item:hover {
    border-color: var(--primary);
}

.store-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.store-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.map-placeholder {
    background: #cbd5e1 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><polygon points="3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21"></polygon><line x1="9" y1="3" x2="9" y2="18"></line><line x1="15" y1="6" x2="15" y2="21"></line></svg>') center center no-repeat;
    background-size: 100px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.map-placeholder::after {
    content: 'Mapa interactivo de puntos de recepción';
    position: absolute;
    bottom: 24px;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-primary);
    backdrop-filter: blur(4px);
}


/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px;
    background: var(--bg-card);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366 !important;
    font-weight: 600;
}

.copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav hide for now */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}


/* Policy pages specific layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 320px; background-color: var(--bg-card); border-right: 1px solid var(--border); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 10; }
.sidebar-header { padding: 32px 24px; border-bottom: 1px solid var(--border); }
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--text-primary); }
.logo-subtitle { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.toc { flex: 1; overflow-y: auto; padding: 24px 16px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc-link { display: block; padding: 10px 16px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.2s ease; }
.toc-link:hover { background-color: var(--bg-main); color: var(--text-primary); }
.toc-link.active { background-color: rgba(79, 70, 229, 0.2); color: var(--primary); font-weight: 600; }
.sidebar-footer { padding: 24px; border-top: 1px solid var(--border); }
.main-content { margin-left: 320px; flex: 1; max-width: 960px; padding: 64px 80px; }
.content-header { margin-bottom: 48px; }
.badge { display: inline-block; padding: 6px 12px; background-color: rgba(79, 70, 229, 0.2); color: var(--primary); font-size: 12px; font-weight: 600; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.content-header h1 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 24px; color: var(--text-primary); }
.metadata-row { display: flex; gap: 32px; padding-top: 16px; border-top: 1px solid var(--border); }
.metadata-item { display: flex; flex-direction: column; gap: 4px; }
.metadata-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; }
.metadata-item .value { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.policy-article { background-color: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 48px; box-shadow: var(--glass-shadow); }
.policy-section { scroll-margin-top: 40px; }
.policy-section h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; margin-top: 32px; }
.policy-section p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.policy-section ul { margin-left: 24px; margin-bottom: 16px; color: var(--text-secondary); }
.policy-section li { margin-bottom: 8px; }
.divider { height: 1px; background-color: var(--border); border: none; margin: 36px 0; }
.info-callout { background-color: rgba(79, 70, 229, 0.1); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 16px; }
.info-callout p { font-size: 14px; color: var(--text-secondary); margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 16px; font-family: var(--font-body); font-size: 14px; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; border: none; }
.btn-secondary { background-color: var(--bg-main); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background-color: var(--bg-secondary); }

/* Responsive adjustments for policies */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { position: relative; width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .toc { display: none; }
    .main-content { margin-left: 0; padding: 32px 20px; }
}
