/* ===================================================================
   FISTECH — ROADMAP COMERCIAL PARA CLÍNICAS
   Style System
   =================================================================== */

/* --- Tokens --- */
:root {
    --bg: #020617;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border: rgba(148, 163, 184, 0.15);
    --border-hl: rgba(139, 92, 246, 0.4);

    --purple: #8B5CF6;
    --blue: #3B82F6;
    --cyan: #06B6D4;
    --green: #10B981;
    --red: #EF4444;
    --amber: #F59E0B;

    --white: #ffffff;
    --t1: #F1F5F9;
    --t2: #94A3B8;
    --t3: #64748B;

    --ff: 'Outfit', sans-serif;
    --fb: 'Inter', sans-serif;

    --grad: linear-gradient(135deg, var(--purple), var(--blue));
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--t1);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: var(--ff); color: var(--white); line-height: 1.15; font-weight: 700; }

/* --- Deck & Slides --- */
.deck { position: relative; width: 100vw; height: 100vh; height: 100svh; }

.slide {
    position: absolute; inset: 0;
    width: 100vw; height: 100vh; height: 100svh;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: scale(0.97);
    transition: opacity .5s ease, visibility .5s ease, transform .5s ease;
    display: flex;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(139,92,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(6,182,212,0.06) 0%, transparent 50%),
        var(--bg);
}

.slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 10; }

/* --- Safe Area --- */
.safe-area {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 6vh, 6rem) clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vh, 7rem);
    display: flex; flex-direction: column; justify-content: center;
    height: 100%;
    overflow: hidden;
}

.col-center { align-items: center; text-align: center; }

/* --- Logo --- */
.logo-main { display: inline-flex; }
.logo-img { height: clamp(40px, 5vh, 64px); object-fit: contain; }
.slide-logo { position: absolute; top: clamp(1rem, 2.5vh, 2rem); left: clamp(1.5rem, 4vw, 4rem); z-index: 20; }
.logo-sm { height: 24px; object-fit: contain; opacity: 0.7; }

/* --- Typography Sizes --- */
.title-xl { font-size: clamp(36px, 5.5vw, 72px); letter-spacing: -1px; }
.title-md { font-size: clamp(24px, 3vw, 44px); }
.sub-lg { font-size: clamp(16px, 1.8vw, 22px); color: var(--t2); max-width: 800px; font-weight: 400; }
.sub-md { font-size: clamp(15px, 1.4vw, 20px); color: var(--t2); max-width: 800px; }

/* --- Helpers --- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.text-left { text-align: left; }

.tag {
    display: inline-block; padding: .4rem 1rem; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    font-size: clamp(12px, 1vw, 14px); color: var(--t2);
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500;
}

.note {
    font-size: clamp(14px, 1.1vw, 17px); color: var(--t1); font-weight: 500;
    padding: .75rem 1.25rem; border-left: 3px solid var(--purple);
    background: rgba(139,92,246,.06); border-radius: 0 8px 8px 0;
}

.aside {
    font-size: clamp(12px, 1vw, 14px); color: var(--t3); font-style: italic;
}

/* --- Grids --- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Cards --- */
.q-card, .tri-card, .resp-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.5rem;
}
.hl-card { border-color: var(--border-hl); background: rgba(139,92,246,.08); }
.q-title { font-size: clamp(14px, 1.1vw, 17px); color: var(--cyan); letter-spacing: .5px; font-weight: 600; }

/* Tri-card headers */
.tri-head, .resp-head {
    font-family: var(--ff); font-size: clamp(13px, 1vw, 15px);
    font-weight: 700; letter-spacing: 2px; padding: .5rem 1rem;
    border-radius: 6px; margin-bottom: 1rem; text-align: center;
}
.partner-head { background: rgba(59,130,246,.15); color: var(--blue); }
.fistech-head { background: rgba(139,92,246,.15); color: var(--purple); }
.clinic-head { background: rgba(6,182,212,.15); color: var(--cyan); }

/* --- Lists --- */
.check-list, .mini-list { list-style: none; }
.check-list li, .mini-list li {
    position: relative; padding-left: 1.2rem;
    font-size: clamp(13px, 1.1vw, 16px); color: var(--t1);
    margin-bottom: .5rem;
}
.check-list li::before, .mini-list li::before {
    content: ''; position: absolute; left: 0; top: .55rem;
    width: 6px; height: 6px; border-radius: 50%; background: var(--purple);
}
.compact li { margin-bottom: .35rem; }

.funnel-list { list-style: none; counter-reset: fn; }
.funnel-list li {
    counter-increment: fn; position: relative; padding-left: 2rem;
    font-size: clamp(13px, 1.1vw, 16px); color: var(--t1); margin-bottom: .4rem;
}
.funnel-list li::before {
    content: counter(fn); position: absolute; left: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: var(--t2);
    font-size: 11px; display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-family: var(--ff);
}
.funnel-list li.funnel-ok { color: var(--green); font-weight: 600; }
.funnel-list li.funnel-ok::before { background: var(--green); color: #000; }

/* --- Tags --- */
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-tag {
    padding: .3rem .75rem; border-radius: 6px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    font-size: clamp(11px, .9vw, 13px); color: var(--t2); font-weight: 500;
}
.warn-tag { border-color: rgba(239,68,68,.3); color: var(--red); background: rgba(239,68,68,.06); }

.tag-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.data-tag {
    padding: .35rem .75rem; border-radius: 6px;
    background: rgba(6,182,212,.06); border: 1px solid rgba(6,182,212,.2);
    font-size: clamp(11px, .9vw, 13px); color: var(--cyan); font-weight: 500;
}

/* --- Inline Flows --- */
.inline-flow {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    padding: 1rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; font-size: clamp(13px, 1vw, 15px); font-weight: 500;
}
.sm-flow { font-size: clamp(12px, .9vw, 14px); padding: .75rem; }
.inline-flow .arr { color: var(--t3); }
.hl-inline { color: var(--purple); font-weight: 700; }
.ok-inline { color: var(--green); font-weight: 700; }

/* --- Roadmap Flow (Slide 3) --- */
.roadmap-flow {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem;
    padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.rm-step {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem 1rem; border-radius: 8px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    font-size: clamp(12px, 1vw, 15px); font-weight: 500;
}
.rm-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,.1); font-size: 10px; font-weight: 700; font-family: var(--ff);
}
.rm-arrow { color: var(--t3); font-size: 1.2rem; }
.hl-step { background: rgba(139,92,246,.2); border-color: var(--purple); color: var(--white); }
.hl-step .rm-num { background: var(--purple); }
.ok-step { background: rgba(16,185,129,.15); border-color: var(--green); color: var(--green); }
.ok-step .rm-num { background: var(--green); color: #000; }
.data-step { background: rgba(6,182,212,.15); border-color: var(--cyan); color: var(--cyan); }
.data-step .rm-num { background: var(--cyan); color: #000; }

/* --- LP Mockup (Slide 5) --- */
.lp-mock {
    background: #0c1222; border: 1px solid var(--border); border-radius: 12px;
    padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem;
    position: relative; box-shadow: 0 12px 30px rgba(0,0,0,.4);
    max-height: 100%;
}
.lp-bar { height: 10px; width: 30%; background: rgba(255,255,255,.1); border-radius: 4px; }
.lp-hero-block { padding: 1rem; background: rgba(255,255,255,.03); border-radius: 8px; }
.lp-line { height: 8px; background: rgba(255,255,255,.12); border-radius: 3px; margin-bottom: .5rem; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w90 { width: 90%; }
.lp-section { padding: .75rem; background: rgba(255,255,255,.02); border-radius: 6px; }
.lp-form-block { padding: 1rem; background: rgba(139,92,246,.1); border-radius: 8px; display: flex; flex-direction: column; gap: .5rem; }
.lp-input { height: 12px; background: rgba(255,255,255,.15); border-radius: 3px; }
.lp-btn-mock { padding: .4rem .75rem; background: var(--purple); color: white; border-radius: 4px; font-size: 11px; font-weight: 600; text-align: center; width: fit-content; }
.lp-connection {
    position: absolute; bottom: -14px; right: 16px;
    background: var(--blue); color: white; padding: .3rem .75rem; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}

/* --- GMB Flow (Slide 6) --- */
.gmb-flow { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.flow-node {
    padding: .6rem 1.25rem; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: clamp(13px, 1vw, 15px); font-weight: 500; text-align: center;
}
.hl-node { border-color: var(--purple); background: rgba(139,92,246,.12); }
.fs-node { border-color: var(--cyan); background: rgba(6,182,212,.08); font-size: clamp(12px,.9vw,13px); }
.flow-arrow { color: var(--t3); font-size: 1.2rem; }
.flow-branch { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.flow-leaf {
    padding: .35rem .75rem; border-radius: 6px; font-size: clamp(11px,.85vw,13px);
    background: rgba(255,255,255,.05); border: 1px solid var(--border); font-weight: 500;
}

/* --- Split (Slide 7) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.split-title { font-size: clamp(16px, 1.3vw, 20px); letter-spacing: 2px; margin-bottom: 1rem; }
.meta-title { color: var(--blue); }
.google-title { color: var(--green); }

/* --- FS Mock (Slide 8) --- */
.fs-mock {
    background: #0c1222; border: 1px solid var(--border); border-radius: 12px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
.fs-top {
    padding: .5rem 1rem; background: #1e293b; font-size: 11px;
    font-weight: 700; letter-spacing: 2px; color: var(--t3);
}
.fs-body { display: flex; flex: 1; min-height: 200px; }
.fs-side {
    width: 40px; background: #1e293b; border-right: 1px solid rgba(255,255,255,.05);
    padding: .75rem 0; display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.fs-dot { width: 20px; height: 20px; border-radius: 4px; background: rgba(255,255,255,.08); }
.fs-kanban { flex: 1; display: flex; padding: .75rem; gap: .5rem; }
.fs-col { flex: 1; background: rgba(255,255,255,.02); border-radius: 6px; padding: .4rem; display: flex; flex-direction: column; gap: .35rem; }
.fs-col-title { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--t3); text-align: center; padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.fs-card-item { height: 28px; background: rgba(255,255,255,.06); border-radius: 4px; }
.hl-card-item { background: rgba(139,92,246,.2); border-left: 2px solid var(--purple); }
.ok-card-item { background: rgba(16,185,129,.2); border-left: 2px solid var(--green); }

/* --- Examples (Slide 9) --- */
.ex-block { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.ex-block h5 { font-size: clamp(12px, 1vw, 14px); color: var(--cyan); margin-bottom: .5rem; letter-spacing: .5px; }

/* --- Automation Diagram (Slide 10) --- */
.auto-diagram {
    display: flex; align-items: center; justify-content: center; gap: 0;
    padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.auto-col { display: flex; flex-direction: column; gap: .75rem; }
.auto-box {
    padding: .5rem 1.25rem; border-radius: 8px; font-size: clamp(12px, 1vw, 15px);
    font-weight: 500; background: rgba(255,255,255,.05); border: 1px solid var(--border); text-align: center;
}
.auto-box.engine {
    background: var(--cyan); color: #000; font-weight: 700; font-size: clamp(16px, 1.3vw, 20px);
    padding: .75rem 2rem; border: none;
}
.auto-box.target-box { border-color: rgba(59,130,246,.3); background: rgba(59,130,246,.08); }
.auto-arrow-col { display: flex; align-items: center; justify-content: center; padding: 0 1rem; }
.auto-arrow-line {
    width: 40px; height: 2px; background: rgba(255,255,255,.2);
    position: relative;
}
.auto-arrow-line::after {
    content: ''; position: absolute; right: -4px; top: -3px;
    border-left: 6px solid rgba(255,255,255,.2); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.auto-center { display: flex; align-items: center; }

/* --- Rules Box (Slide 11) --- */
.rules-box {
    background: rgba(239,68,68,.05); border: 1px solid rgba(239,68,68,.2);
    border-radius: 10px; padding: 1rem 1.5rem;
}
.rules-row {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem;
}
.rules-row span {
    padding: .3rem .75rem; border-radius: 6px;
    background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.15);
    font-size: clamp(11px, .9vw, 13px); color: var(--red); font-weight: 500;
}

/* --- Post-sale Flow (Slide 13) --- */
.post-flow {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem;
}
.pf-step {
    padding: .6rem 1.25rem; border-radius: 99px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: clamp(13px, 1vw, 15px); font-weight: 500;
}
.pf-arrow { color: var(--t3); font-size: 1.2rem; }
.init-pf { background: rgba(255,255,255,.08); }
.hl-pf { background: var(--grad); border: none; color: var(--white); font-weight: 600; }

/* --- Equation (Slide 15) --- */
.equation {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem;
    padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
}
.eq-item {
    font-family: var(--ff); font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 600; color: var(--t1);
}
.hl-eq { color: var(--purple); }
.eq-op { color: var(--t3); font-size: 1.5rem; font-weight: 300; }
.eq-result {
    width: 100%; text-align: center;
    font-family: var(--ff); font-size: clamp(18px, 2vw, 28px);
    font-weight: 700; color: var(--cyan); margin-top: .5rem;
}

/* --- CTA & Contact (Slide 15) --- */
.cta-block {
    padding: 1.5rem 2rem; border-radius: 12px;
    background: rgba(139,92,246,.08); border: 1px solid var(--border-hl);
}
.cta-text { font-size: clamp(16px, 1.4vw, 22px); font-weight: 600; color: var(--white); }
.contact-block p { color: var(--t3); font-size: clamp(14px, 1.1vw, 17px); margin-bottom: .25rem; }

/* ===================================================================
   CONTROLS
   =================================================================== */
.controls {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 100; pointer-events: none;
}
.progress-track { width: 100%; height: 3px; background: rgba(255,255,255,.08); }
.progress-fill { height: 100%; width: 0; background: var(--purple); transition: width .3s ease; }

.controls-bar {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: .75rem 2rem; pointer-events: auto;
    background: linear-gradient(0deg, rgba(2,6,23,.95) 0%, transparent 100%);
}
.ctrl-btn {
    background: rgba(255,255,255,.08); border: none; color: var(--white);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s;
}
.ctrl-btn:hover { background: rgba(255,255,255,.15); }
.ctrl-btn:disabled { opacity: .25; cursor: default; }

.counter {
    font-family: var(--ff); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; color: var(--t3);
    min-width: 60px; text-align: center;
}
.counter #cur { color: var(--white); }
.sep { margin: 0 2px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* Notebooks / smaller desktops */
@media (max-width: 1366px) {
    .quad-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablets */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .tri-grid { grid-template-columns: 1fr; gap: 1rem; }
    .quad-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .split { grid-template-columns: 1fr; gap: 1rem; }
    .auto-diagram { flex-direction: column; gap: 1rem; }
    .auto-arrow-col { transform: rotate(90deg); padding: 0; }
    .auto-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }

    .col-visual { order: -1; }
}

/* Mobile */
@media (max-width: 768px) {
    .safe-area {
        padding: 4rem 1.25rem 5rem;
        justify-content: flex-start;
    }

    .slide-logo { top: 1rem; left: 1.25rem; }
    .logo-sm { height: 20px; }

    .quad-grid { grid-template-columns: 1fr; gap: .75rem; }
    .q-card, .tri-card, .resp-card, .split-card { padding: 1rem; }

    .roadmap-flow { padding: 1rem; gap: .35rem; }
    .rm-step { padding: .35rem .6rem; font-size: 12px; }
    .rm-num { width: 16px; height: 16px; font-size: 9px; }
    .rm-arrow { font-size: 1rem; }

    .lp-mock { max-height: 220px; }
    .fs-mock .fs-body { min-height: 140px; }

    .post-flow { gap: .4rem; }
    .pf-step { padding: .4rem .75rem; font-size: 12px; }

    .inline-flow { font-size: 12px; padding: .6rem; gap: .35rem; }

    .equation { gap: .5rem; padding: 1rem; }
    .eq-item { font-size: 14px; }
    .eq-result { font-size: 18px; }

    .controls-bar { padding: .5rem 1rem; gap: .75rem; }
    .ctrl-btn { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
    .title-xl { font-size: 28px; }
    .title-md { font-size: 22px; }
}
