/* ===== CotizaVuelos Landing Page ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #253349;
    --border: #334155;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    --accent: #22c55e;
    --accent-yellow: #eab308;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-logo.small {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

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

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover { background: var(--primary-hover); }

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

.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg-card); }

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

.btn-outline:hover { background: var(--primary-light); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover { background: #b91c1c; }

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-muted); }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

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

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 48px;
}

/* ===== Demo Window ===== */
.demo-section { padding-top: 0; }

.demo-window {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.demo-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.demo-dots { display: flex; gap: 6px; }
.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.demo-dots span:first-child { background: #ef4444; }
.demo-dots span:nth-child(2) { background: #eab308; }
.demo-dots span:last-child { background: #22c55e; }

.demo-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.demo-body { padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }

.demo-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.demo-msg.user { justify-content: flex-end; }

.demo-avatar {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.demo-bubble {
    background: var(--bg-elevated);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.5;
}

.demo-bubble.user {
    background: #1d4ed8;
    color: white;
    border-radius: 12px 12px 4px 12px;
}

.demo-result-header {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.demo-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    background: var(--bg-card);
}

.demo-result-row.best {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.demo-airline { font-weight: 600; min-width: 100px; }
.demo-time { color: var(--text-muted); }
.demo-price { font-weight: 700; color: var(--accent); }
.demo-result-row.best .demo-price { color: var(--accent); }
.demo-result-row:not(.best) .demo-price { color: var(--text); }

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: border-color 0.2s;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== Pricing ===== */
.pricing-section { background: var(--bg-card); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price { margin-bottom: 4px; }
.pricing-amount { font-size: 36px; font-weight: 800; }
.pricing-period { font-size: 14px; color: var(--text-muted); }

.pricing-credits {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--accent);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 32px;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.05));
}

.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: var(--text-muted); margin-bottom: 28px; font-size: 16px; }

/* ===== Footer ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ===== Auth Pages ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .nav-logo {
    margin: 0 auto 16px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder { color: #475569; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* ===== Dashboard Header ===== */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.dash-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.dash-credits {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.dash-credits strong {
    color: var(--accent);
    font-size: 13px;
}

.dash-plan {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    text-transform: uppercase;
}

.dash-logout {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.dash-logout:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .hero-sub { font-size: 15px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-sep { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .pricing-card.popular { transform: none; }
    .nav-links a:not(.btn) { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .auth-card { padding: 32px 24px; }
}
