/* ==========================================================================
   Barbeo · Landing comercial pública
   Diseño standalone (no usa el layout del panel). Estetica SaaS premium,
   inspiracion Linear / Stripe / Framer. Reutiliza los tokens de marca del
   panel para mantener identidad visual consistente.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f6f7fb;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e6e8ef;
    --brand: #6366f1;
    --brand-strong: #5b5cf6;
    --brand-soft: #eef0ff;
    --green: #22c55e;
    --dark: #0b1120;
    --dark-2: #111827;
    --radius: 20px;
    --radius-lg: 24px;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 20px 48px rgba(15, 23, 42, 0.08);
    --shadow-brand: 0 16px 40px rgba(99, 102, 241, 0.35);
    --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-strong);
    margin-bottom: 16px;
}

.section {
    padding: 96px 0;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    font-weight: 800;
}

.section-head p {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover { transform: translateY(-1px); background: var(--brand-strong); }

.btn-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.btn-secondary:hover { border-color: #cbd0dd; transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover { color: var(--brand-strong); }

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

.btn-block { width: 100%; }

/* On dark sections */
.on-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 17px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

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

.nav-links a.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    transition: color .15s ease, background .15s ease;
}

.nav-links a.nav-link:hover { color: var(--ink); background: var(--bg-soft); }

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

.nav-toggle { display: none; }

/* ---------- Menú móvil ---------- */
.mobile-menu { display: none; }

.mobile-menu.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    margin-bottom: 8px;
}

.mobile-menu-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus-visible { background: var(--bg-soft); }

.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-link {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink);
    transition: background .15s ease;
}

.mobile-link:hover,
.mobile-link:focus-visible { background: var(--bg-soft); }

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

body.menu-open { overflow: hidden; }

/* En desktop el menú móvil nunca se muestra: ni el botón, ni el panel, ni el
   overlay, aunque el menú quede marcado como abierto al redimensionar. */
@media (min-width: 721px) {
    .nav-toggle,
    .mobile-menu,
    .mobile-menu.is-open,
    .mobile-menu-overlay {
        display: none !important;
    }
    body.menu-open { overflow: auto; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 96px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(99, 102, 241, 0.10), transparent 70%),
        var(--bg);
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    margin-bottom: 26px;
}

.hero .badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 auto 22px;
    max-width: 920px;
}

.hero .subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--muted);
    max-width: 660px;
    margin: 0 auto 34px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero .trust {
    font-size: 14px;
    color: var(--muted);
}

/* Hero mock preview */
.hero-preview {
    margin: 64px auto 0;
    max-width: 960px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-preview .bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.hero-preview .bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d5d9e4;
}

.hero-preview .body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 300px;
}

.hero-preview .side {
    background: linear-gradient(180deg, var(--dark-2), var(--dark));
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-preview .side .s-item {
    height: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-preview .side .s-item.active { background: rgba(99, 102, 241, 0.55); width: 80%; }
.hero-preview .side .s-item.short { width: 60%; }

.hero-preview .main {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 16px;
    background: var(--bg-soft);
}

.hero-preview .m-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.hero-preview .m-card .k { height: 10px; width: 55%; border-radius: 5px; background: #e2e6f0; margin-bottom: 12px; }
.hero-preview .m-card .v { height: 22px; width: 40%; border-radius: 6px; background: var(--brand-soft); }
.hero-preview .m-card.wide { grid-column: span 3; }
.hero-preview .m-card.wide .row { height: 12px; border-radius: 6px; background: #eef1f7; margin-top: 10px; }
.hero-preview .m-card.wide .row:first-child { margin-top: 0; width: 90%; }
.hero-preview .m-card.wide .row.b { width: 70%; }

/* ---------- Problem ---------- */
.problem { background: var(--bg-soft); }

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 44px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--ink);
}

.problem-item .x {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fef2f2;
    color: #ef4444;
    display: grid;
    place-items: center;
    font-weight: 800;
}

/* ---------- Solution / feature cards ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d7dbe8; }

.feature-card .ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.feature-card .ico svg { width: 22px; height: 22px; }

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

.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Retention (dark) ---------- */
.retention {
    background: linear-gradient(180deg, var(--dark-2), var(--dark));
    color: #e5e7eb;
}

.retention .split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.retention .eyebrow { color: #a5b4fc; }

.retention h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
    font-weight: 800;
}

.retention p.lead { font-size: 18px; color: #cbd5e1; margin: 0 0 24px; }

.retention .note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.retention .note .tag {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.retention .note p { margin: 0; color: #d1fae5; font-size: 15px; }

.retention-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.retention-card .rc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.retention-card .rc-head strong { color: #fff; font-size: 15px; }

.retention-card .rc-head span {
    font-size: 12px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.rc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rc-row .who { display: flex; align-items: center; gap: 12px; }

.rc-row .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.rc-row .who b { color: #fff; font-size: 14px; display: block; }
.rc-row .who small { color: #94a3b8; font-size: 12px; }

.rc-row .wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--green);
    color: #05320f;
    font-weight: 700;
    font-size: 13px;
}

.rc-row .wa svg { width: 15px; height: 15px; }

/* ---------- Audience ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.audience-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.audience-card .num {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-strong);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.audience-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.audience-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Plans ---------- */
.plans { background: var(--bg-soft); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.plan.featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
    position: relative;
}

.plan.featured .flag {
    position: absolute;
    top: -13px;
    left: 30px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.plan h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }

.plan .price {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 22px;
    font-weight: 600;
}

.plan ul {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 12px;
    flex: 1;
}

.plan ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}

.plan ul li .check {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    display: grid;
    place-items: center;
}

.plan ul li .check svg { width: 12px; height: 12px; }

/* ---------- Demo ---------- */
.demo-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 64px 32px;
    box-shadow: var(--shadow-brand);
}

.demo-cta h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.demo-cta p { margin: 0 0 30px; color: rgba(255, 255, 255, 0.88); font-size: 18px; }

.demo-cta .btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.demo-cta .btn-secondary:hover { background: #f1f2fa; }

/* ---------- FAQ ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 940px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 56px 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .brand { color: #fff; }

.footer-tagline { color: #94a3b8; font-size: 14px; margin-top: 12px; max-width: 280px; }

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

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: color .15s ease;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 24px;
    font-size: 13px;
    color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .retention .split { grid-template-columns: 1fr; gap: 36px; }
    .plans-grid { grid-template-columns: 1fr; }
    .plan.featured { order: -1; }
    .faq-grid { grid-template-columns: 1fr; }
    .hero-preview .body { grid-template-columns: 1fr; }
    .hero-preview .side { flex-direction: row; overflow-x: auto; }
    .hero-preview .side .s-item { width: 60px; flex: 0 0 auto; }
    .hero-preview .main { grid-template-columns: 1fr 1fr; }
    .hero-preview .m-card.wide { grid-column: span 2; }
}

@media (max-width: 720px) {
    .section { padding: 64px 0; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
        transition: background .15s ease, border-color .15s ease;
    }
    .nav-toggle:hover,
    .nav-toggle:focus-visible { background: var(--bg-soft); }
    .nav-toggle svg { width: 22px; height: 22px; }
    .hero-actions .btn { width: 100%; }
    .footer-top { flex-direction: column; gap: 24px; }
}
