/* === Tathi Consultoria — Design System v2 === */
:root {
    --bg: #09090b; --bg-alt: #111113; --surface: #18181b;
    --border: #27272a; --text: #fafafa; --text-muted: #a1a1aa;
    --accent: #6366f1; --accent-hover: #818cf8;
    --green: #22c55e; --green-muted: #16a34a;
    --orange: #f59e0b; --orange-muted: #d97706;
    --pro: #8b5cf6; --pro-hover: #a78bfa;
    --radius: 12px; --radius-sm: 8px;
    --container: 960px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* === Nav === */
nav { position: sticky; top: 0; z-index: 100; background: rgba(9,9,11,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: .875rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; gap: .5rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .btn-sm:not(.btn-outline) { font-size: .75rem; padding: .35rem .6rem; }
}

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .625rem 1.25rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; transition: all .2s; cursor: pointer; border: none; background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-muted); }
.btn-pro { background: var(--pro); }
.btn-pro:hover { background: var(--pro-hover); }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; font-weight: 500; }
.btn-google:hover { background: #f5f5f5; color: #333; }
.btn-google svg { flex-shrink: 0; }

/* === Hero === */
.hero { padding: 5rem 0 3rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.08) 0%, transparent 60%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.tag { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--accent); background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.2); margin-bottom: 1rem; }

/* === Stats === */
.stats { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; color: var(--accent); }
.stat span { font-size: .8rem; color: var(--text-muted); }

/* === Sections === */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.section-sub { color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; }
.subsection-title { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin: 2rem 0 1rem; }

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.feature { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s; position: relative; }
.feature:hover { border-color: var(--accent); }
.feature-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.feature h3 { font-size: .95rem; font-weight: 600; margin-bottom: .35rem; }
.feature p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.feature-highlight { border-color: var(--orange); }
.feature-highlight:hover { border-color: var(--orange-muted); }
.feature-highlight-pro { border-color: var(--pro); }
.feature-highlight-pro:hover { border-color: var(--pro-hover); }
.feature-badge { display: inline-block; margin-top: .5rem; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: rgba(245,158,11,.15); color: var(--orange); border: 1px solid rgba(245,158,11,.3); }
.feature-badge-pro { background: rgba(139,92,246,.15); color: var(--pro); border-color: rgba(139,92,246,.3); }

/* === Partner Block === */
.partner-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.partner-text ul { list-style: none; margin: 1rem 0; }
.partner-text li { padding: .35rem 0; font-size: .9rem; color: var(--text-muted); }
.partner-text li::before { content: "→ "; color: var(--accent); font-weight: 700; }
.partner-text li strong { color: var(--text); }
.partner-visual { display: flex; align-items: center; gap: 1.5rem; justify-content: center; }
.partner-logo-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; text-align: center; font-weight: 700; font-size: 1.1rem; }
.partner-logo-box small { display: block; font-size: .75rem; font-weight: 400; color: var(--text-muted); margin-top: .25rem; }
.partner-plus { font-size: 1.5rem; color: var(--text-muted); }
@media (max-width: 768px) {
    .partner-block { grid-template-columns: 1fr; }
    .partner-visual { flex-direction: column; gap: .75rem; }
}

/* === Projects === */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.project-card { display: block; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, transform .2s; }
.project-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.project-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.project-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.project-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.project-tech { font-size: .75rem; color: var(--accent); }

/* === Packages === */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .packages-grid { grid-template-columns: 1fr; } }
.package { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); position: relative; display: flex; flex-direction: column; }
.package-popular { border-color: var(--accent); }
.package-pro { border-color: var(--pro); }
.popular-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.pro-badge { background: var(--pro); }
.package h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.package-hours { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.price { font-size: 2rem; font-weight: 800; }
.price-detail { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.discount { color: var(--green); font-weight: 600; }
.package-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.package ul { list-style: none; margin-bottom: 1.25rem; flex-grow: 1; }
.package li { padding: .2rem 0; font-size: .85rem; color: var(--text-muted); }
.package li::before { content: "✓ "; color: var(--green); }
.package li.li-check::before { content: "↳ "; color: var(--accent); }
.package li.li-star::before { content: "★ "; color: var(--orange); }
.package li.li-rocket::before { content: "🚀 "; }

/* Rules Summary */
.rules-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.rule { font-size: .85rem; color: var(--text-muted); }
.rule strong { margin-right: .35rem; }

/* === FAQ === */
.faq-list { max-width: 640px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; cursor: pointer; font-weight: 600; font-size: .95rem; }
.faq-q span { font-size: 1.2rem; transition: transform .2s; color: var(--text-muted); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1rem; }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* === CTA === */
.cta-section { text-align: center; padding: 4rem 0; }
.cta-section h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cta-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: .8rem; }
.footer-links a:hover { color: var(--text); }
footer p { font-size: .75rem; color: var(--text-muted); }

/* === WhatsApp Float === */
.whatsapp-float { position: fixed; bottom: 1.5rem; right: 1.5rem; background: #25d366; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 90; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* === Scroll Reveal === */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ═══════════════════════════════════════════════
   CONTRATAR VIEW — Purchase + Booking Flow
   ═══════════════════════════════════════════════ */

.contratar-container { max-width: 640px; padding-top: 1rem; }
.back-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .9rem; padding: .5rem 0; margin-bottom: 1rem; transition: color .2s; }
.back-btn:hover { color: var(--text); }

/* Selected package info */
.selected-pkg { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--accent); background: rgba(99,102,241,.05); margin-bottom: 1.5rem; }
.selected-pkg h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.selected-pkg .pkg-price { font-size: 1.5rem; font-weight: 800; }
.selected-pkg .pkg-detail { font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.selected-pkg .pkg-includes { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.selected-pkg-pro { border-color: var(--pro); background: rgba(139,92,246,.05); }

/* Conditions */
.conditions-box { margin-bottom: 1.5rem; }
.conditions-box h3 { margin-bottom: 1rem; font-size: 1rem; }
.conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .conditions-grid { grid-template-columns: 1fr; } }
.condition { padding: .75rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.condition strong { display: block; font-size: .85rem; margin-bottom: .25rem; }
.condition p { font-size: .8rem; color: var(--text-muted); line-height: 1.4; margin: 0; }
.condition em { color: var(--orange); font-style: normal; }

.step-actions { margin-top: 1.5rem; }

/* Auth */
.auth-box { max-width: 400px; margin: 0 auto; }
.auth-divider { text-align: center; margin: 1.25rem 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--bg); padding: 0 .75rem; font-size: .8rem; color: var(--text-muted); }
.auth-tabs { display: flex; gap: 0; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.auth-tab { flex: 1; padding: .5rem; text-align: center; background: transparent; border: none; color: var(--text-muted); font-size: .85rem; cursor: pointer; transition: all .2s; }
.auth-tab.active { background: var(--accent); color: #fff; }
.auth-box input { width: 100%; padding: .625rem .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .9rem; margin-bottom: .75rem; outline: none; }
.auth-box input:focus { border-color: var(--accent); }
.auth-error { margin-top: .75rem; padding: .625rem; border-radius: var(--radius-sm); background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #ef4444; font-size: .85rem; }
.auth-loading { text-align: center; color: var(--text-muted); font-size: .85rem; padding: .5rem; }

/* User Badge */
.user-badge { display: flex; align-items: center; gap: .5rem; padding: .625rem .75rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-bottom: 1.5rem; font-size: .85rem; }
.user-badge strong { color: var(--text); }
.user-badge span { color: var(--text-muted); }

/* Balance */
.balance-box { padding: 1rem; border-radius: var(--radius-sm); background: rgba(34,197,94,.05); border: 1px solid rgba(34,197,94,.15); margin-bottom: 1.5rem; font-size: .9rem; }
.balance-box strong { color: var(--green); }
.balance-box .no-hours { color: var(--orange); }

/* Purchase Card */
.purchase-card { padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; }
.purchase-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.purchase-card .pkg-price { font-size: 1.75rem; font-weight: 800; margin: .5rem 0; }
.purchase-card ul { list-style: none; margin: .5rem 0; }
.purchase-card li { font-size: .85rem; color: var(--text-muted); padding: .15rem 0; }
.purchase-card li::before { content: "✓ "; color: var(--green); }
.purchase-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* Schedule compact info */
.schedule-info-compact { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.schedule-info-compact span { font-size: .8rem; padding: .35rem .6rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }

/* === Calendar Widget === */
.cal-container { max-width: 100%; }
.cal-month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-month-nav h3 { font-size: 1rem; }
.cal-nav-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: .4rem .75rem; border-radius: var(--radius-sm); cursor: pointer; font-size: .85rem; transition: border-color .2s; }
.cal-nav-btn:hover { border-color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.cal-day-header { font-size: .7rem; font-weight: 600; color: var(--text-muted); text-align: center; padding: .35rem 0; }
.cal-day { text-align: center; padding: .5rem .25rem; border-radius: var(--radius-sm); font-size: .85rem; cursor: default; color: var(--text-muted); }
.cal-day.available { cursor: pointer; color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.cal-day.available:hover { border-color: var(--accent); background: rgba(99,102,241,.1); }
.cal-day.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-day.booked-day { background: rgba(245,158,11,.1); color: var(--orange); border: 1px solid rgba(245,158,11,.3); cursor: default; }
.cal-day.past, .cal-day.empty { opacity: .3; }
.cal-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.cal-slot { padding: .5rem; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .8rem; cursor: pointer; transition: all .2s; color: var(--text); }
.cal-slot:hover { border-color: var(--accent); }
.cal-slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.cal-slot.booked { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.cal-selected-summary { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-sm); background: rgba(34,197,94,.05); border: 1px solid rgba(34,197,94,.15); font-size: .85rem; }
.cal-selected-summary strong { color: var(--green); }

/* Upcoming sessions */
.session-card { padding: .75rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); margin-top: .5rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.session-card .session-date { font-weight: 600; }
.session-card .session-time { color: var(--text-muted); }
.session-card .session-reschedule { color: var(--accent); cursor: pointer; font-size: .8rem; background: none; border: none; }
