/* ════════════════════════════════════════════════════════════
   BookinTrade — Landing page styles
   ════════════════════════════════════════════════════════════ */

/* P1-2: self-host Inter (antes Google Fonts daba 503 intermitente). */
@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/InterVariable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --teal:        #1D9E75;
    --teal-light:  #2dbb8e;
    --teal-dark:   #167a5b;
    --bg:          #0a0a0a;
    --bg-elev:    #13131f;
    --bg-card:     #1a1a26;
    --border:      rgba(255,255,255,0.08);
    --text:        #ffffff;
    --text-mute:   #a1a1aa;
    --text-dim:    #71717a;
    --verde:       #1D9E75;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

/* ── Botones ──────────────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--teal);
    color: white;
}
.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--teal);
}

.btn-link {
    background: transparent;
    color: var(--text-mute);
    padding: 10px 12px;
}
.btn-link:hover { color: var(--text); }

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── Navbar ───────────────────────────────────────────────── */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.logo-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--teal);
    color: white;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.5px;
}

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    padding: 80px 0 100px;
    background: radial-gradient(ellipse at top, rgba(29,158,117,0.08), transparent 60%);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(29,158,117,0.1);
    border: 1px solid rgba(29,158,117,0.3);
    border-radius: 20px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-mute);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-trust {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
}

.hero-trust .dot { color: var(--text-dim); }

/* ── Hero visual: dashboard mockup ───────────────────────── */

.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 480px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(29, 158, 117, 0.15),
                0 0 0 1px rgba(29, 158, 117, 0.1);
}

.mockup-header {
    background: var(--bg-card);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 11px; height: 11px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
}

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

.mockup-body {
    padding: 24px;
}

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mockup-kpi {
    background: var(--bg-card);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.mockup-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.mockup-value.verde { color: var(--verde); }

.mockup-chart {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    height: 140px;
}

.mockup-chart svg { width: 100%; height: 100%; }

/* ── Sections ─────────────────────────────────────────────── */

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

.section-subtitle {
    font-size: 17px;
    color: var(--text-mute);
    text-align: center;
    margin-bottom: 56px;
}

/* ── Features ─────────────────────────────────────────────── */

.features {
    padding: 100px 0;
    background: var(--bg-elev);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29,158,117,0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────────── */

.pricing { padding: 100px 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.price-card-featured {
    border-color: var(--teal);
    box-shadow: 0 0 0 1px var(--teal),
                0 20px 40px rgba(29,158,117,0.15);
    transform: scale(1.03);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: white;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-mute);
    margin-bottom: 12px;
    font-weight: 600;
}

.price-amount {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.price-amount span {
    font-size: 16px;
    color: var(--text-mute);
    font-weight: 500;
}

.price-tagline {
    color: var(--text-mute);
    font-size: 14px;
    margin-bottom: 24px;
}

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

.price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 22px;
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

.price-features li:last-child { border-bottom: none; }

/* ── CTA Final ────────────────────────────────────────────── */

.cta-final {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(29,158,117,0.1), transparent 60%);
}

.cta-final h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.cta-final p {
    font-size: 17px;
    color: var(--text-mute);
    margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-mute);
    font-size: 14px;
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-mute);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; flex-wrap: wrap; }
    .hero-title { font-size: 42px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .price-card-featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero { padding: 60px 0 70px; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 30px; }
    .cta-final h2 { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-cta .btn-link { display: none; }
    .features, .pricing, .cta-final, .video-demo { padding: 60px 0; }
}

/* === Video demo embed === */
.video-demo {
    padding: 100px 0;
    background: var(--bg);
}

.video-demo .container {
    /* 1180px: YouTube sirve 1080p cuando el player tiene >960px de ancho.
       v77 (10 may 2026) bumpea de 960 a 1180 para asegurar HD en desktop. */
    max-width: 1180px;
    margin: 0 auto;
}

/* Tablet: 90% del viewport para que el video crezca con la pantalla
   sin pegarse a los bordes. */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-demo .container {
        max-width: 90%;
    }
}

/* Mobile: ocupa todo el ancho disponible (los 24px de padding del .container
   global ya dan margen lateral). */
@media (max-width: 767px) {
    .video-demo .container {
        max-width: 100%;
    }
}

.video-demo-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(29, 158, 117, 0.08);
}

.video-demo-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
