@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════ DESIGN TOKENS ═══════════════ */
:root {
    --primary: #b22222;
    --primary-light: #ff6b6b;
    --primary-dark: #8b0000;
    --secondary: #00a651;
    --secondary-light: #2ecc71;
    --accent: #ed8b00;
    --accent-light: #ffb142;
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --blue: #1877F2;
    --bg: #f0f4f8;
    --surface: rgba(255, 255, 255, 0.92);
    --text: #1a202c;
    --text-muted: #4a5568;
    --border: rgba(226, 232, 240, 0.6);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --font: 'Outfit', sans-serif;
    --font-head: 'Plus Jakarta Sans', sans-serif;
}

/* ═══════════════ RESET & BASE ═══════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(at 0% 0%, rgba(178, 34, 34, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(0, 166, 81, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(237, 139, 0, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: var(--font);
    border: none;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: var(--font);
}

/* ═══════════════ UTILITY ═══════════════ */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm {
    gap: 0.5rem;
}

.gap {
    gap: 1rem;
}

.gap-md {
    gap: 1.5rem;
}

.gap-lg {
    gap: 2rem;
}

.gap-xl {
    gap: 3rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.hide-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* ═══════════════ GLASS ═══════════════ */
.glass {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--shadow);
}

/* ═══════════════ CARDS ═══════════════ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-lg);
    border-color: rgba(178, 34, 34, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-flat {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.45);
    filter: brightness(1.1);
}

.btn-green {
    background: linear-gradient(135deg, var(--secondary), #047857);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, var(--purple), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #c07b00);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
}

/* ═══════════════ FORM ═══════════════ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 2px solid var(--border);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.08);
}

textarea.form-input {
    resize: vertical;
    min-height: 90px;
}

/* ═══════════════ BADGE ═══════════════ */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-new {
    background: linear-gradient(135deg, #22c55e, #059669);
    color: #fff;
}

.badge-pro {
    background: linear-gradient(135deg, #7c3aed, #60a5fa);
    color: #fff;
}

.badge-hot {
    background: #fef2f2;
    color: #dc2626;
}

.badge-warm {
    background: #fef3c7;
    color: #92400e;
}

.badge-cold {
    background: #f1f5f9;
    color: #475569;
}

.badge-done {
    background: #dcfce7;
    color: #166534;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-scheduled {
    background: #fef3c7;
    color: #92400e;
}

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.nav-brand img {
    height: 44px;
}

.nav-badges {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-badges span {
    font-size: 0.55rem;
    padding: 0.08rem 0.4rem;
    border-radius: 3px;
    font-weight: 800;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.5rem 0.3rem;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.nav-more {
    position: relative;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 200px;
    border: 1px solid var(--border);
    z-index: 1020;
}

.nav-more:hover .nav-dropdown,
.nav-dropdown.show {
    display: block;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-dropdown a:hover {
    background: rgba(178, 34, 34, 0.04);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

/* ═══════════════ SECTION ═══════════════ */
.section {
    padding: 5rem 0;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
}

/* ═══════════════ GRID ═══════════════ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-auto-sm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

/* ═══════════════ STAT CARD ═══════════════ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    margin-bottom: 0.5rem;
}

.stat-val {
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════ DOCTOR CARD ═══════════════ */
.doc-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
}

.doc-card:hover {
    transform: translateY(-8px) scale(1.015);
}

.doc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
}

.doc-status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    position: absolute;
    bottom: -3px;
    right: -3px;
}

/* ═══════════════ TABS ═══════════════ */
.tabs {
    display: flex;
    gap: 0.4rem;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 0.35rem;
    margin-bottom: 2rem;
}

.tab {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    font-size: 0.88rem;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab:hover:not(.active) {
    color: var(--text);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ═══════════════ TOGGLE ═══════════════ */
.toggle {
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.toggle.on {
    background: #22c55e;
}

.toggle-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle.on .toggle-knob {
    left: 23px;
}

/* ═══════════════ PROGRESS BAR ═══════════════ */
.progress-track {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1.2s ease-out;
    width: 0;
}

/* ═══════════════ TABLE ═══════════════ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.data-table th {
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8fafc;
}

.data-table tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.data-table tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.2rem;
}

.modal-body {
    padding: 2rem;
}

/* ═══════════════ OFFER BANNER ═══════════════ */
.offer-banner {
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1001;
}

.offer-timer {
    display: flex;
    gap: 0.3rem;
}

.offer-timer span {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 32px;
    text-align: center;
}

.offer-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* ═══════════════ FLOATING WIDGETS ═══════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    font-size: 1.5rem;
    transition: transform 0.3s;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-wa {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

.call-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: #fff;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary);
    z-index: 999;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
    transition: transform 0.3s;
}

.call-float:hover {
    transform: scale(1.05);
}

.social-proof {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    background: #fff;
    border-radius: 14px;
    padding: 0.8rem 1.2rem;
    box-shadow: var(--shadow);
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 280px;
    font-size: 0.85rem;
    animation: slideInLeft 0.5s ease-out;
    transition: opacity 0.5s;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ═══════════════ VIDEO CALL ═══════════════ */
.video-call-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: #0f172a;
    z-index: 9999;
    flex-direction: column;
}

.video-call-screen.active {
    display: flex;
}

.video-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
}

.video-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
}

.video-self {
    position: absolute;
    bottom: 100px;
    right: 2rem;
    width: 200px;
    height: 150px;
    border-radius: 16px;
    background: #334155;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
}

.vc-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.vc-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vc-btn-end {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
    background: #fff;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in-d1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.fade-in-d2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.fade-in-d3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.fade-in-d4 {
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* voice wave */
.voice-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
}

.wave-bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 30px;
    }
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

/* scroll ticker */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══════════════ HAMBURGER MENU ═══════════════ */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(178, 34, 34, 0.08);
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    display: block;
    opacity: 1;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 5rem 1.5rem 2rem;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-menu-inner a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    transition: background 0.2s;
    margin-bottom: 0.3rem;
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a.active {
    background: rgba(178, 34, 34, 0.06);
    color: var(--primary);
}

.mobile-menu-inner .mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.mobile-menu-inner .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 3rem 1rem 4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .offer-banner {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
    }

    .tabs {
        flex-direction: column;
    }

    .social-proof {
        display: none;
    }

    .call-float {
        display: none;
    }

    .whatsapp-float {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 52px;
        height: 52px;
    }

    .nav-badges {
        display: none;
    }
}

/* ═══════════════ QUIZ CARTOON ANIMATIONS ═══════════════ */
.quiz-cartoon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-cartoon {
    font-size: 8rem;
    line-height: 1;
    text-align: center;
    position: relative;
}

/* ── CORRECT: Dancing Cartoon ── */
.cartoon-dance {
    animation: danceBounce 0.4s ease infinite alternate;
}

.cartoon-dance .cartoon-body {
    display: inline-block;
    animation: danceWiggle 0.3s ease infinite alternate;
}

.cartoon-dance .cartoon-arms {
    position: absolute;
    font-size: 3rem;
    animation: armWave 0.3s ease infinite alternate;
}

.cartoon-dance .arm-left {
    left: -2.5rem;
    top: 1rem;
}

.cartoon-dance .arm-right {
    right: -2.5rem;
    top: 1rem;
    transform: scaleX(-1);
}

.cartoon-dance .cartoon-stars {
    position: absolute;
    width: 300px;
    height: 300px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cartoon-dance .star {
    position: absolute;
    font-size: 2rem;
    animation: starPop 0.8s ease-out forwards;
}

.cartoon-dance .star:nth-child(1) {
    animation-delay: 0s;
    top: -20px;
    left: 50%;
}

.cartoon-dance .star:nth-child(2) {
    animation-delay: 0.1s;
    top: 0;
    left: 10%;
}

.cartoon-dance .star:nth-child(3) {
    animation-delay: 0.15s;
    top: 10%;
    right: 10%;
    left: auto;
}

.cartoon-dance .star:nth-child(4) {
    animation-delay: 0.2s;
    bottom: 20px;
    left: 20%;
    top: auto;
}

.cartoon-dance .star:nth-child(5) {
    animation-delay: 0.25s;
    bottom: 10px;
    right: 15%;
    left: auto;
    top: auto;
}

.cartoon-dance .star:nth-child(6) {
    animation-delay: 0.05s;
    top: 30%;
    left: 0;
}

.cartoon-dance .star:nth-child(7) {
    animation-delay: 0.3s;
    top: 30%;
    right: 0;
    left: auto;
}

.cartoon-dance .dance-text {
    display: block;
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 900;
    color: #22c55e;
    margin-top: 0.5rem;
    animation: textPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

@keyframes danceBounce {
    0% {
        transform: translateY(0) rotate(-3deg);
    }

    100% {
        transform: translateY(-30px) rotate(3deg);
    }
}

@keyframes danceWiggle {
    0% {
        transform: rotate(-10deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes armWave {
    0% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(30deg);
    }
}

@keyframes starPop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0.5) rotate(360deg) translateY(-40px);
        opacity: 0;
    }
}

@keyframes textPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* CONFETTI */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ── WRONG: Crying Cartoon ── */
.cartoon-wrong {
    animation: wrongSequence 2.5s ease forwards;
}

.cartoon-wrong .cartoon-body {
    display: inline-block;
    animation: cryShake 0.15s ease infinite;
}

.cartoon-wrong .tear {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
}

.cartoon-wrong .tear-left {
    left: 30%;
    top: 35%;
    animation: tearFall 0.8s ease-in 0.3s infinite;
}

.cartoon-wrong .tear-right {
    right: 30%;
    top: 35%;
    animation: tearFall 0.8s ease-in 0.5s infinite;
}

.cartoon-wrong .wrong-text {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ef4444;
    margin-top: 0.5rem;
    animation: textPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.cartoon-wrong .splat {
    position: absolute;
    font-size: 3rem;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    animation: splatAppear 0.3s ease 1.8s forwards;
}

@keyframes cryShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px) rotate(-2deg);
    }

    75% {
        transform: translateX(5px) rotate(2deg);
    }
}

@keyframes tearFall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(50px) scale(0.3);
    }
}

@keyframes wrongSequence {
    0% {
        transform: translateY(0) rotate(0);
    }

    15% {
        transform: translateY(-80px) rotate(-10deg);
    }

    25% {
        transform: translateY(-100px) rotate(5deg);
    }

    35% {
        transform: translateY(-60px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(10deg);
    }

    60% {
        transform: translateY(-30px) rotate(-15deg);
    }

    70% {
        transform: translateY(0) rotate(5deg);
    }

    80% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }

    90% {
        transform: translateY(20px) rotate(90deg) scale(1.2, 0.6);
    }

    100% {
        transform: translateY(25px) rotate(90deg) scale(1.3, 0.5);
    }
}

@keyframes splatAppear {
    0% {
        transform: translateX(-50%) scale(0);
    }

    60% {
        transform: translateX(-50%) scale(1.3);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Stars scattered effect */
.cartoon-wrong .dizzy-stars {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0;
    animation: dizzyAppear 1s ease 2s both;
}

@keyframes dizzyAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) rotate(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) rotate(360deg);
    }
}

/* ═══════════════ AI CHATBOT STYLES ═══════════════ */
.chatQuick {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
    color: #374151;
}

.chatQuick:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
    display: inline-block;
    animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

#chatToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

@media (max-width: 480px) {
    #chatWindow {
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}