/* ===== 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;
}

/* ===== Light Mode (Landing, Login, Register) ===== */
body.light {
    --bg: #ffffff;
    --bg-card: #f8fafc;
    --bg-elevated: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.08);
    --accent: #16a34a;
    --accent-yellow: #ca8a04;
    background: #ffffff;
}

/* -- Keyframes -- */
@keyframes float-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.15); }
    50% { box-shadow: 0 0 40px rgba(37, 99, 235, 0.25); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Nav -- */
body.light .nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

body.light .nav-brand span {
    font-weight: 800;
    letter-spacing: -0.3px;
}

body.light .nav-logo {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

body.light .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.25s ease;
}

body.light .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

body.light .btn-ghost {
    color: #334155;
    border-color: #e2e8f0;
    transition: all 0.25s ease;
}

body.light .btn-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

body.light .btn-outline {
    transition: all 0.25s ease;
}

body.light .btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* -- Hero -- */
body.light .hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

body.light .hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.light .hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body.light .hero-inner {
    position: relative;
    z-index: 1;
    animation: fade-in-up 0.7s ease-out;
}

body.light .hero-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.2px;
}

body.light .hero h1 {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #7c3aed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
    letter-spacing: -1.5px;
}

body.light .hero-sub {
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

body.light .hero-stats {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 24px 40px;
    display: inline-flex;
    margin-top: 12px;
}

body.light .stat strong {
    color: #2563eb;
    font-size: 32px;
    font-weight: 800;
}

body.light .stat span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

body.light .stat-sep {
    background: #e2e8f0;
}

/* -- Demo Window -- */
body.light .demo-window {
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(37, 99, 235, 0.06);
    animation: float-up 5s ease-in-out infinite;
    background: #ffffff;
}

body.light .demo-topbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

body.light .demo-bubble {
    background: #f1f5f9;
    color: #334155;
}

body.light .demo-bubble.user {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

body.light .demo-result-row {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

body.light .demo-result-row:hover {
    background: #f8fafc;
}

body.light .demo-result-row:not(.best) .demo-price {
    color: #0f172a;
    font-weight: 700;
}

body.light .demo-result-row.best {
    background: rgba(22, 163, 74, 0.04);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

/* -- Section titles -- */
body.light .section-title {
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #0f172a;
}

body.light .section-sub {
    color: #64748b;
}

/* -- Features -- */
body.light .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.light .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
}

body.light .feature-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

body.light .feature-card:hover::before {
    opacity: 1;
}

body.light .feature-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
    color: #2563eb;
}

body.light .feature-card h3 {
    color: #0f172a;
}

body.light .feature-card p {
    color: #64748b;
}

/* -- Pricing -- */
body.light .pricing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    position: relative;
}

body.light .pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

body.light .pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

body.light .pricing-card.popular {
    border: 2px solid #2563eb;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    animation: pulse-glow 4s ease-in-out infinite;
}

body.light .pricing-card.popular:hover {
    box-shadow: 0 16px 48px rgba(37, 99, 235, 0.18);
}

body.light .pricing-badge {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-weight: 700;
}

body.light .pricing-amount {
    color: #0f172a;
}

body.light .pricing-credits {
    color: #2563eb;
    font-weight: 700;
}

/* -- FAQ -- */
body.light .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

body.light .faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

body.light .faq-item summary {
    color: #0f172a;
}

body.light .faq-item p {
    color: #475569;
}

/* -- CTA -- */
body.light .cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

body.light .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

body.light .cta-inner h2 {
    color: #ffffff;
}

body.light .cta-inner p {
    color: rgba(255, 255, 255, 0.85);
}

body.light .cta-section .btn-primary {
    background: #ffffff;
    color: #1e40af;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-weight: 700;
}

body.light .cta-section .btn-primary:hover {
    background: #f0f4ff;
    color: #1e40af;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* -- Footer -- */
body.light .footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

body.light .footer-brand span {
    color: #0f172a;
}

body.light .footer-links a:hover {
    color: #2563eb;
}

/* -- Auth Pages -- */
body.light .auth-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 50%, #faf5ff 100%);
    min-height: 100vh;
}

body.light .auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 40px rgba(0, 0, 0, 0.06);
    animation: fade-in-up 0.5s ease-out;
}

body.light .auth-card .nav-logo {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

body.light .auth-header h2 {
    color: #0f172a;
}

body.light .form-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
    transition: all 0.25s ease;
}

body.light .form-input::placeholder {
    color: #94a3b8;
}

body.light .form-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.light .alert-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

body.light .alert-success {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.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;
    flex-wrap: wrap;
}

.hero-inner {
    position: relative;
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 19px; font-weight: 800; color: var(--primary); line-height: 1.25; }
.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); }

/* ===== Animated Demo Chat ===== */
.demo-chat-window {
    max-width: 720px;
    margin: 0 auto;
    background: #1e212b;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.25);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 520px;
}

.demo-chat-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: #1e212b;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    flex-shrink: 0;
}

.demo-chat-dots { display: flex; gap: 6px; width: 48px; }
.demo-chat-dots span { width: 11px; height: 11px; border-radius: 50%; }
.demo-chat-dots span:nth-child(1) { background: #ef4444; }
.demo-chat-dots span:nth-child(2) { background: #eab308; }
.demo-chat-dots span:nth-child(3) { background: #22c55e; }

.demo-chat-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.demo-chat-title svg { color: #3b82f6; }

.demo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-behavior: smooth;
}

.demo-chat-messages::-webkit-scrollbar { width: 6px; }
.demo-chat-messages::-webkit-scrollbar-track { background: transparent; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

.demo-chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    background: #1e212b;
    flex-shrink: 0;
}

.demo-chat-input-field {
    flex: 1;
    background: #2b303b;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 13px;
    color: #475569;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.demo-chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Messages */
.dcm-msg { display: flex; gap: 12px; }
.dcm-msg.dcm-user { justify-content: flex-end; }

.dcm-animate {
    animation: dcm-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dcm-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.dcm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dcm-content {
    background: #2b303b;
    color: #cbd5e1;
    padding: 12px 16px;
    border-radius: 16px 16px 16px 4px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 82%;
}

.dcm-bubble-user {
    background: #2563eb;
    color: white;
    padding: 12px 16px;
    border-radius: 16px 16px 4px 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 82%;
}

/* Typing */
.dcm-typing {
    background: #2b303b;
    padding: 14px 20px;
    border-radius: 16px 16px 16px 4px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.dcm-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
    animation: dcm-bounce 1.4s ease-in-out infinite;
}

.dcm-typing span:nth-child(2) { animation-delay: 0.2s; }
.dcm-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dcm-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Cards */
.dcm-card {
    background: #242933;
    border-radius: 16px 16px 16px 4px;
    padding: 16px;
    max-width: 92%;
    border: 1px solid rgba(100, 116, 139, 0.15);
}

.dcm-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 12px;
}

.dcm-card-header svg { color: #64748b; }

/* Flight rows */
.dcm-flight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #1e212b;
    border: 1px solid transparent;
}

.dcm-flight-row.dcm-best {
    background: rgba(26, 46, 38, 0.4);
    border-color: #235c3f;
}

.dcm-flight-info { display: flex; flex-direction: column; gap: 2px; }
.dcm-flight-airline { font-weight: 700; font-size: 14px; color: #fff; }
.dcm-flight-detail { font-size: 11px; color: #64748b; }
.dcm-flight-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dcm-flight-dates { font-size: 12px; color: #94a3b8; }
.dcm-flight-price { font-weight: 700; font-size: 15px; color: #fff; }
.dcm-price-green { color: #4ade80 !important; }

/* Hotel rows */
.dcm-hotel-row {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #1e212b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.dcm-hotel-row.dcm-best {
    background: rgba(26, 46, 38, 0.4);
    border-color: #235c3f;
}

.dcm-hotel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.dcm-hotel-name { font-weight: 700; font-size: 14px; color: #fff; display: block; }
.dcm-stars { display: flex; gap: 1px; color: #eab308; margin-top: 3px; }
.dcm-hotel-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.dcm-hotel-tag {
    font-size: 10px;
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Date rows */
.dcm-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #1e212b;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.dcm-date-row.dcm-best {
    background: rgba(26, 46, 38, 0.4);
    border-color: #235c3f;
}

.dcm-date-left { display: flex; align-items: center; gap: 10px; }

.dcm-date-badge {
    background: #2b303b;
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 60px;
}

.dcm-date-badge-green {
    background: #235c3f;
    color: #4ade80;
}

.dcm-date-month { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.dcm-date-range { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; margin-top: 2px; }

.dcm-calendar-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    font-family: inherit;
}

/* Light mode overrides for demo chat */
body.light .demo-chat-window {
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 24px 60px rgba(37, 99, 235, 0.08);
}

/* ===== 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;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

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

.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== 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; }

/* Password eye toggle */
.input-password-wrap {
    position: relative;
}

.input-password-wrap .form-input {
    padding-right: 44px;
}

/* Slug field (cotizavuelos.com/<slug>) */
.slug-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.slug-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.slug-prefix {
    display: flex;
    align-items: center;
    padding: 0 6px 0 14px;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}

.slug-field .slug-input {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
}

.slug-field .slug-input:focus {
    box-shadow: none;
}

.slug-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

body.light .slug-field {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light .slug-prefix {
    background: #f1f5f9;
    border-right-color: #e2e8f0;
    color: #64748b;
}

body.light .slug-field:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.eye-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.eye-toggle:hover {
    color: var(--text);
}

/* Remember me checkbox */
.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    user-select: none;
}

.remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.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;
}

/* ===== Menu Toggle Button ===== */
.dash-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px 3px 3px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}

.dash-menu-toggle:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

/* ===== Side Menu ===== */
.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.side-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.25s ease;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

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

.side-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.side-close:hover { background: var(--bg); color: var(--text); }

.side-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.side-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Plan card */
.side-plan-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.side-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.side-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.side-plan-price {
    font-size: 12px;
    color: var(--text-muted);
}

.side-credits-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.side-credits-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
    min-width: 2px;
}

.side-credits-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.side-credits-info strong { color: var(--accent); }

/* Upgrade cards */
.side-upgrade-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.side-upgrade-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.side-upgrade-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.side-upgrade-name {
    font-size: 15px;
    font-weight: 700;
}

.side-upgrade-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.side-upgrade-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.side-upgrade-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.side-upgrade-features {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Nav links */
.side-nav-links { flex: 1; }

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 500;
}

.side-link:hover {
    background: var(--bg);
    color: var(--text);
}

.side-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.side-link.danger {
    color: #f87171;
}

.side-link.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.side-soon {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--border);
    color: var(--text-muted);
    border-radius: 4px;
    text-transform: uppercase;
}

.side-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ===== Left Sidebar Nav ===== */
.left-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    z-index: 90;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.left-nav.collapsed {
    width: 56px;
}

.left-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
}

.left-nav-title {
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.2s;
}

.left-nav.collapsed .left-nav-title {
    opacity: 0;
    pointer-events: none;
}

.left-nav-links {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.left-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.left-nav-link:hover {
    background: var(--bg);
    color: var(--text);
}

.left-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.left-nav.collapsed .left-nav-link span {
    opacity: 0;
    pointer-events: none;
}

.left-nav-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-top: 1px solid var(--border);
    transition: all 0.15s;
}

.left-nav-collapse:hover {
    background: var(--bg);
    color: var(--text);
}

.left-nav.collapsed .left-nav-collapse svg {
    transform: rotate(180deg);
}

/* Main content shift */
.has-left-nav .main-content {
    margin-left: 220px;
    transition: margin-left 0.25s ease;
}

.has-left-nav .main-content.nav-collapsed {
    margin-left: 56px;
}

/* ===== Scroll interno del panel admin =====
   El header (.dash-header) queda fijo arriba y el contenido (.admin-page)
   tiene su propio scroll vertical ocupando el alto restante.
   (body.has-left-nav es height:100vh; overflow:hidden)
   OJO: se apunta SOLO al .admin-page hijo directo de .main-content; algunas
   vistas (activities/villas/etc.) anidan otro .admin-page interno y ese no
   debe convertirse en un segundo contenedor de scroll. */
body.has-left-nav .main-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.has-left-nav .dash-header {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    z-index: 10;
}
body.has-left-nav .main-content > .admin-page {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
/* .admin-page anidado: que no agregue padding/scroll extra, solo contenedor. */
body.has-left-nav .main-content > .admin-page > .admin-page {
    padding: 0;
    overflow: visible;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 95;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    color: var(--text);
    cursor: pointer;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 440px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 301;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.modal-box.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

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

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-body {
    padding: 20px 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

/* ===== Cotizaciones Page ===== */
.cotiz-page {
    padding: 24px;
    min-height: calc(100vh - 52px);
}

.cotiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.cotiz-top h2 {
    font-size: 22px;
    font-weight: 800;
}

.cotiz-view-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.cotiz-view-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

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

.cotiz-view-btn:not(.active):hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* Search / filter */
.cotiz-search {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px 10px 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.cotiz-search:focus {
    outline: none;
    border-color: var(--primary);
}

.cotiz-search-wrap {
    position: relative;
}

.cotiz-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ===== List View ===== */
.cotiz-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cotiz-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s;
    cursor: pointer;
}

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

.cotiz-card-stage {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cotiz-card-main {
    flex: 1;
    min-width: 0;
}

.cotiz-card-client {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.cotiz-card-route {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cotiz-card-right {
    text-align: right;
    flex-shrink: 0;
}

.cotiz-card-price {
    font-weight: 800;
    font-size: 16px;
    color: var(--accent);
}

.cotiz-card-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cotiz-card-stage-name {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.cotiz-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.cotiz-card-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.15s;
}

.cotiz-card-actions button:hover {
    background: var(--bg);
    color: var(--text);
}

.cotiz-card-actions button.danger:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

/* ===== Kanban Board ===== */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 180px);
    align-items: flex-start;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.kanban-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.kanban-col-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.kanban-col-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.kanban-col-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
    flex: 1;
}

.kanban-col-body.drag-over {
    background: var(--primary-light);
    border-radius: 0 0 12px 12px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    cursor: grab;
    transition: all 0.15s;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.kanban-card-client {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.kanban-card-route {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.kanban-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-card-price {
    font-weight: 800;
    font-size: 14px;
    color: var(--accent);
}

.kanban-card-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Kanban stage settings */
.kanban-settings-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.kanban-settings-btn:hover {
    background: var(--bg-card);
    color: var(--text);
}

/* Empty state */
.cotiz-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cotiz-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.cotiz-empty h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.cotiz-empty p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Settings Page ===== */
.settings-page {
    padding: 24px;
    max-width: 1100px;
}

.settings-page h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.settings-tab.active {
    background: var(--primary);
    color: white;
}

.settings-tab:not(.active):hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* Settings section */
.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.settings-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

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

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

/* Logo upload */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.logo-upload-area:hover {
    border-color: var(--primary);
}

.logo-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.logo-preview {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-upload-text {
    flex: 1;
}

.logo-upload-text p {
    font-size: 13px;
    margin-bottom: 8px;
}

.logo-upload-text small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Toggle switch */
.toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.toggle-label {
    font-size: 13px;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* Inline color picker */
.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-wrap input[type="color"] {
    width: 40px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
}

.color-picker-wrap .form-input {
    flex: 1;
}

/* Save bar */
.settings-save-bar {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 24px -24px -24px;
    border-radius: 0 0 12px 12px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .left-nav {
        transform: translateX(-100%);
        width: 220px;
    }
    .left-nav.collapsed {
        transform: translateX(-100%);
        width: 220px;
    }
    .left-nav:not(.collapsed) {
        transform: translateX(0);
    }
    .has-left-nav .main-content {
        margin-left: 0;
    }
    .has-left-nav .main-content.nav-collapsed {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .kanban-board {
        min-height: auto;
    }
    .settings-row, .settings-row.three {
        grid-template-columns: 1fr;
    }
    .settings-tabs {
        gap: 2px;
        padding: 3px;
    }
    .settings-tab {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@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; }
}
