@import url('tokens.css?v=3');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing {
    margin: 0;
    background: #fff;
    color: var(--ink-2);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; margin: 0; }

/* ---------- Navegación ---------- */
.nav { border-bottom: 1px solid #ECEDF0; position: sticky; top: 0; background: #fff; z-index: 30; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-size: 20px; color: var(--ink-2); }
.nav-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.nav-links-center { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links-center a {
    color: #4B5563; text-decoration: none; font-size: 14.5px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--radius-sm); transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links-center a:hover { background: #F5F6F8; color: var(--ink-2); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .login-link { font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--ink-2); padding-bottom: 2px; }
.icon-circle {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid #E2E6EA;
    display: flex; align-items: center; justify-content: center; color: #4B5563;
}
.pill-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink-2); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 14px; padding: 10px 20px 10px 10px;
    border-radius: 999px; transition: background .15s var(--ease), transform .15s var(--ease);
}
.pill-cta .arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #201404; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pill-cta:hover { background: #000; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero-shell { position: relative; overflow: hidden; }
.hero-panel-bg {
    position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
    background: var(--ink);
    border-bottom-left-radius: 120px;
}
.hero { position: relative; padding: 76px 0 88px; display: grid; grid-template-columns: 1.05fr 0.9fr; gap: 40px; align-items: center; }

.hero h1 { font-size: 50px; font-weight: 900; line-height: 1.06; color: var(--ink-2); letter-spacing: -0.01em; }
.hero h1 .mark {
    display: inline-block; background: var(--amber); color: #201404; padding: 2px 14px 6px;
    border-radius: 6px 18px 6px 18px; transform: rotate(-1deg); margin-top: 6px;
}
.hero p.lead { font-size: 16.5px; color: #5B6672; margin: 24px 0 32px; max-width: 460px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-pill {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
    padding: 13px 24px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
    transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.btn-pill .arrow { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.btn-pill-primary { background: var(--amber); color: #201404; }
.btn-pill-primary .arrow { background: #201404; color: var(--amber); }
.btn-pill-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,165,36,.35); }
.btn-pill-outline { background: #fff; color: var(--ink-2); border: 1.5px solid #E2E6EA; }
.btn-pill-outline .arrow { background: var(--ink-2); color: #fff; }
.btn-pill-outline:hover { border-color: var(--ink-2); transform: translateY(-2px); }

/* ---------- Insignias de confianza (honestas, sin cifras inventadas) ---------- */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.trust-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: #4B5563;
    background: #F5F6F8; border: 1px solid #ECEDF0;
    padding: 8px 13px; border-radius: 999px;
}
.trust-chip .led { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-dark); }

/* ---------- Mockup del producto en el panel oscuro ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.blob { position: absolute; border-radius: 50%; filter: blur(0px); opacity: .9; }
.blob-1 { width: 64px; height: 64px; background: var(--mint); top: 18px; left: 4px; border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; }
.blob-2 { width: 46px; height: 46px; background: var(--amber); bottom: 30px; left: -6px; border-radius: 60% 40% 45% 55% / 45% 55% 40% 60%; }
.blob-3 { width: 38px; height: 38px; background: #fff; opacity: .18; top: 40px; right: 10px; border-radius: 50%; }

.mockup-card {
    background: #fff; width: 300px; border-radius: 18px; padding: 26px 24px;
    box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; z-index: 2;
}
.mockup-card .mockup-brand { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--ink-2); margin-bottom: 18px; display: flex; align-items: center; gap: 7px; }
.mockup-card .mockup-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.mockup-tabs { display: flex; gap: 18px; font-size: 13px; font-weight: 700; color: #9AA3AC; margin-bottom: 16px; border-bottom: 1px solid #EEF0F2; padding-bottom: 10px; }
.mockup-tabs .active { color: var(--ink-2); }
.mockup-field { margin-bottom: 12px; }
.mockup-field label { font-size: 10.5px; font-weight: 700; color: #9AA3AC; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 5px; }
.mockup-field .fake-input { height: 34px; border: 1px solid #E2E6EA; border-radius: 7px; background: #FAFBFC; }
.mockup-btn { margin-top: 16px; height: 38px; background: var(--amber); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #201404; }

/* ---------- Franja "ideal para" (honesta: categorías, no logos falsos) ---------- */
.for-strip { padding: 46px 0; text-align: center; }
.for-strip .for-label { font-size: 13px; color: #8A93A0; margin-bottom: 26px; }
.for-row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; }
.for-row span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #C6CCD3; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-alt { background: #F7F8FA; }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
    color: var(--amber-dark); background: var(--amber-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: .04em;
}
.section-head h2 { font-size: 32px; margin-bottom: 14px; }
.section-head p { color: #5B6672; font-size: 15.5px; }

/* ---------- Ítems tipo tiquete (features) ---------- */
.ticket-list { max-width: 760px; margin: 0 auto; }
.ticket-item {
    display: flex; align-items: baseline; gap: 12px; padding: 22px 4px; border-bottom: 1px solid #ECEDF0;
    opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.ticket-item.is-visible { opacity: 1; transform: translateY(0); }
.ticket-item-row { display: flex; align-items: baseline; gap: 12px; width: 100%; }
.ticket-item h3 { font-size: 17px; color: var(--ink-2); white-space: nowrap; }
.ticket-item .leader { flex: 1; border-bottom: 1px dotted #D5D9DE; position: relative; top: -5px; }
.ticket-item .tag { font-family: var(--font-mono); font-size: 12px; color: var(--mint-dark); white-space: nowrap; }
.ticket-item p { color: #5B6672; font-size: 14px; margin: 6px 0 0; flex-basis: 100%; }

/* ---------- Resiliencia offline ---------- */
.offline-panel {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    background: var(--ink); border-radius: var(--radius-lg); padding: 52px; color: var(--text-on-dark);
}
.offline-panel h3 { color: #fff; font-size: 24px; margin-bottom: 14px; }
.offline-panel p { color: var(--text-on-dark-muted); font-size: 15px; margin-bottom: 18px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; padding: 7px 13px; border-radius: 999px; margin-bottom: 20px; }
.status-chip.online { background: var(--mint-soft); color: var(--mint); }
.status-chip.offline { background: rgba(214,69,69,.16); color: #EF6A6A; }
.status-chip .led { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sync-log { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-on-dark-muted); background: #0A1017; border: 1px solid var(--ink-border); border-radius: var(--radius-sm); padding: 14px 16px; }
.sync-log div { margin-bottom: 6px; }
.sync-log .ok { color: var(--mint); }

/* ---------- Precios ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 980px; margin: 0 auto; }
.price-card {
    background: #fff; border: 1px solid #ECEDF0; border-radius: var(--radius-lg); padding: 30px 26px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(15,23,32,.10); }
.price-card.featured { border: 2px solid var(--amber); position: relative; }
.price-card .featured-tag { position: absolute; top: -13px; left: 26px; background: var(--amber); color: #201404; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card .plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.price-card .price { font-family: var(--font-mono); font-size: 32px; font-weight: 700; margin: 14px 0 2px; color: var(--ink-2); }
.price-card .price small { font-size: 13px; font-weight: 500; color: #9AA3AC; }
.price-card hr { border: none; border-top: 1px solid #ECEDF0; margin: 20px 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: 13.5px; }
.price-card li { display: flex; justify-content: space-between; padding: 6px 0; color: #4B5563; }
.price-card .btn-pill { width: 100%; justify-content: center; }
.price-card-features { list-style: none; padding: 14px 0 0; margin: 0 0 24px; font-size: 12.5px; border-top: 1px solid #ECEDF0; }
.price-card-features li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; color: #4B5563; line-height: 1.4; }
.price-card-features li::before { content: "✓"; color: var(--mint-dark, #1FAE87); font-weight: 700; flex-shrink: 0; }
.price-card-features li.is-excluded { color: #B0B6BC; }
.price-card-features li.is-excluded::before { content: "–"; color: #C7CDD3; }

/* ---------- CTA final ---------- */
.final-cta { text-align: center; padding: 100px 0 120px; }
.final-cta h2 { font-size: 36px; margin-bottom: 16px; }
.final-cta p { color: #5B6672; font-size: 16px; margin-bottom: 34px; }

/* ---------- Pie ---------- */
.landing-footer { border-top: 1px solid #ECEDF0; padding: 36px 0; color: #8A93A0; font-size: 13px; }
.landing-footer .foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.landing-footer a { color: #8A93A0; text-decoration: none; }
.landing-footer a:hover { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 48px 0 56px; }
    .hero-panel-bg { display: none; }
    .hero h1 { font-size: 34px; }
    .nav-links-center { display: none; }
    .offline-panel { grid-template-columns: 1fr; padding: 32px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .for-row { gap: 24px; }
    .section { padding: 60px 0; }
}

/* ============================================================
   MÓDULOS NUEVOS: efectos de scroll, glassmorphism, cómo funciona,
   seguridad/transparencia, FAQ, y pie de página completo.
   ============================================================ */

/* Nav con efecto de vidrio esmerilado que se intensifica al hacer scroll */
.nav {
    background: rgba(15,23,32,0);
    backdrop-filter: blur(0px);
    transition: background .25s var(--ease), backdrop-filter .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.nav.scrolled {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 1px 0 rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.05);
}

/* Blobs del hero flotando suavemente */
.blob { animation: floaty 7s ease-in-out infinite; }
.blob-2 { animation-delay: -2.3s; }
.blob-3 { animation-delay: -4.6s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.04); }
}

/* Tarjetas de vidrio (glassmorphism) reutilizables */
.glass-card {
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.6);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(15,23,32,.08);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15,23,32,.12); }

.glass-card-dark {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
}

/* Fondo con textura de puntos, para dar profundidad a secciones sobre fondo claro */
.dotted-bg {
    position: relative;
    background-image: radial-gradient(circle, #E2E6EA 1px, transparent 1px);
    background-size: 22px 22px;
}
.dotted-bg::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, #fff 75%);
    pointer-events: none;
}

/* Revelado genérico al hacer scroll (reutilizable en varias secciones) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Cómo funciona (pasos numerados) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 980px; margin: 0 auto; position: relative; }
.steps-row::before {
    content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, #E2E6EA 0, #E2E6EA 6px, transparent 6px, transparent 12px);
    z-index: 0;
}
.step-card { position: relative; z-index: 1; text-align: center; }
.step-num {
    width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid var(--ink-2);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--ink-2);
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.step-card:hover .step-num { background: var(--amber); border-color: var(--amber); color: #201404; transform: scale(1.08); }
.step-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: #5B6672; line-height: 1.5; }

/* ---------- Seguridad y transparencia ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.trust-card { padding: 26px 24px; }
.trust-card .trust-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--mint-soft); color: var(--mint-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; font-size: 16px;
}
.trust-card h3 { font-size: 15.5px; color: #fff; margin-bottom: 8px; }
.trust-card p { font-size: 13px; color: var(--text-on-dark-muted); line-height: 1.55; }

/* ---------- FAQ (acordeón) ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ECEDF0; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 4px; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-2);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question .faq-icon { font-size: 18px; color: var(--amber-dark); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-answer p { font-size: 13.5px; color: #5B6672; line-height: 1.6; padding: 0 4px 20px; margin: 0; }

/* ---------- Franja "sin letra pequeña" ---------- */
.transparency-strip {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
    padding: 34px 0; border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border);
}
.transparency-item { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark-muted); font-size: 13px; }
.transparency-item .t-check { width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* ---------- Pie de página completo ---------- */
.footer-full { background: var(--ink); color: var(--text-on-dark-muted); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--ink-border); }
.footer-brand-col .nav-brand { color: #fff; margin-bottom: 12px; }
.footer-brand-col p { font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-on-dark-muted); text-decoration: none; font-size: 13.5px; margin-bottom: 10px; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 12.5px; }

@media (max-width: 900px) {
    .steps-row { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .steps-row::before { display: none; }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .transparency-strip { gap: 20px; justify-content: flex-start; }
}

/* Redes sociales en el pie de página */
.footer-social { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.footer-social a { color: var(--text-on-dark-muted); text-decoration: none; font-size: 12.5px; font-weight: 600; transition: color .15s var(--ease); }
.footer-social a:hover { color: var(--amber); }

/* ============================================================
   BURBUJA DE CHAT FLOTANTE — preguntas frecuentes rápidas, sin
   necesidad de bajar hasta la sección de FAQ. Mismo contenido,
   editable desde el super-admin.
   ============================================================ */
.chat-bubble-widget { position: fixed; bottom: 22px; right: 22px; z-index: 400; }
.chat-bubble-toggle {
    width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--amber);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(15,23,32,.3); transition: transform .15s var(--ease);
}
.chat-bubble-toggle:hover { transform: scale(1.06); }
.chat-bubble-toggle:active { transform: scale(.94); }

.chat-bubble-panel {
    position: absolute; bottom: 72px; right: 0; width: 320px; max-height: 60vh;
    background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,32,.25);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(12px) scale(.97); pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.chat-bubble-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-bubble-header {
    background: var(--ink); color: #fff; padding: 14px 16px; font-weight: 700; font-family: var(--font-display);
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.chat-bubble-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; padding: 2px; }
.chat-bubble-body { padding: 10px 14px 16px; overflow-y: auto; }

.cb-faq-item { border-bottom: 1px solid var(--paper-line); }
.cb-faq-item:last-of-type { border-bottom: none; }
.cb-faq-question {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 12px 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
    display: flex; justify-content: space-between; align-items: center;
}
.cb-faq-question::after { content: "+"; color: var(--amber-dark); font-weight: 700; margin-left: 8px; flex-shrink: 0; }
.cb-faq-item.open .cb-faq-question::after { content: "–"; }
.cb-faq-answer {
    max-height: 0; overflow: hidden; font-size: 12.5px; line-height: 1.6; color: #6B7280;
    transition: max-height .2s var(--ease);
}
.cb-faq-item.open .cb-faq-answer { max-height: 240px; padding-bottom: 12px; }
.cb-whatsapp-link {
    display: block; text-align: center; margin-top: 10px; padding: 10px; border-radius: 10px;
    background: var(--amber-soft); color: var(--amber-dark); font-weight: 700; font-size: 12.5px;
    text-decoration: none;
}

@media (max-width: 480px) {
    .chat-bubble-widget { bottom: 16px; right: 16px; }
    .chat-bubble-panel { width: calc(100vw - 32px); right: -6px; }
}
