/* ==========================================================================
   Festivo (DigiFest) Landing Page Styles
   festivo.digitalinnovationglobal.com
   ========================================================================== */

:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: #ede9fe;
    --accent: #f59e0b;
    --success: #10b981;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img, svg {
    display: block;
}

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

/* ---------- Typography & Utility ---------- */

h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-pro {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-free {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.975rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ---------- Header & Navbar ---------- */

.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.2s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 100%;
    padding: 0 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    flex-shrink: 0;
}

.brand-icon {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0 20px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- Language Selector ---------- */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #cbd5e1;
    background: var(--bg-alt);
}

.flag-icon {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.lang-arrow {
    transition: transform 0.2s ease;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 1050;
    animation: lang-dropdown-fade 0.15s ease-out forwards;
}

.lang-selector.open .lang-dropdown {
    display: block;
}

@keyframes lang-dropdown-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-alt);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* ---------- Cookie Banner ---------- */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 880px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
    padding: 20px 28px;
    z-index: 9999999;
    animation: cookie-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#cookie-banner.cookie-hiding {
    animation: cookie-slide-out 0.3s ease-in forwards;
}

@keyframes cookie-slide-in {
    from { opacity: 0; transform: translate(-50%, 40px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes cookie-slide-out {
    from { opacity: 1; transform: translate(-50%, 0); }
    to   { opacity: 0; transform: translate(-50%, 40px); }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 420px;
}

.cookie-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* ---------- Store Banner Demo ---------- */

#demo-store-banner {
    display: none;
    position: relative;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#demo-store-banner.active {
    display: block;
}

.banner-close-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.banner-close-btn:hover {
    opacity: 1;
}

/* ---------- Hero Section ---------- */

.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-pill {
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.proof-item span {
    color: var(--success);
    font-weight: 700;
}

/* ---------- Interactive Simulator Panel ---------- */

.simulator-section {
    padding: 40px 0 80px;
}

.simulator-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.simulator-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.simulator-title h2 {
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulator-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--bg-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.theme-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.theme-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.theme-btn .t-icon {
    font-size: 1.6rem;
}

.theme-btn .t-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-btn .t-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.simulator-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--bg-alt);
    padding: 20px;
    border-radius: var(--radius-md);
}

.control-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.control-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-toggle-group {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-toggle-group button {
    padding: 6px 14px;
    font-size: 0.825rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.btn-toggle-group button.active {
    background: var(--primary);
    color: #ffffff;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.switch-label input {
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* ---------- Theme Showcase Grid ---------- */

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.theme-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

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

.theme-card-icon {
    font-size: 2.2rem;
}

.theme-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.theme-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.theme-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

/* ---------- Features Grid ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- Comparison Table ---------- */

.comparison-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-alt);
    font-size: 1rem;
    font-weight: 700;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    text-align: center;
    width: 200px;
}

.comparison-table td {
    font-size: 0.95rem;
}

.check-yes {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.check-no {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* ---------- Pricing Section ---------- */

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
    flex: 1 1 250px;
    max-width: 285px;
    min-width: 240px;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-head {
    margin-bottom: 24px;
    text-align: center;
}

.pricing-head h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin: 16px 0 6px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 24px 0 32px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.925rem;
    margin-bottom: 12px;
    color: #334155;
}

.pricing-features li .icon-ok {
    color: var(--success);
    font-weight: 700;
}

.pricing-features li.disabled {
    color: #94a3b8;
    text-decoration: line-through;
}

/* ---------- FAQ Section ---------- */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: #ffffff;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--text-main);
}

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ---------- Footer ---------- */

.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 64px 0 32px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Simulator Particle Canvas & Ambient Layers ---------- */

#df-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 999990;
}

#df-stage .df-p {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    will-change: transform;
}

#df-stage .df-p svg {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform;
}

.df-behavior-fall {
    animation-name: df-fall;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.df-behavior-float {
    animation-name: df-float-up;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.df-behavior-fly {
    animation-name: df-fly-across;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.df-behavior-bounce {
    animation-name: df-bounce;
    animation-timing-function: ease-in;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.df-behavior-burst {
    animation-name: df-burst;
    animation-timing-function: ease-out;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.df-sway {
    animation: df-sway ease-in-out infinite alternate;
}

@keyframes df-fall {
    0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); }
    100% { transform: translate3d(var(--df-drift, 0px), 112vh, 0) rotate(var(--df-spin, 360deg)); }
}

@keyframes df-float-up {
    0%   { transform: translate3d(0, 110vh, 0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate3d(var(--df-drift, 0px), -12vh, 0); opacity: 0; }
}

@keyframes df-fly-across {
    0%   { transform: translate3d(-18vw, 0, 0); }
    100% { transform: translate3d(118vw, var(--df-dip, 0px), 0); }
}

@keyframes df-bounce {
    0%   { transform: translate3d(0, -12vh, 0); }
    100% { transform: translate3d(var(--df-drift, 0px), 100vh, 0); }
}

@keyframes df-sway {
    from { transform: translateX(calc(var(--df-sway, 24px) * -1)) rotate(-10deg); }
    to   { transform: translateX(var(--df-sway, 24px)) rotate(10deg); }
}

@keyframes df-burst {
    0%   { transform: scale(0.2); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Zoom-Susto (Jumpscare Demo) ---------- */

#df-scare {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
}

#df-scare.df-scare-show {
    animation: df-scare-vignette 2.4s ease-out forwards;
}

#df-scare .df-scare-inner {
    width: 40vmin;
    opacity: 0;
    filter: blur(6px);
}

#df-scare.df-scare-show .df-scare-inner {
    animation: df-scare-zoom 2.4s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}

#df-scare svg {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes df-scare-zoom {
    0%   { transform: scale(0.1); opacity: 0; filter: blur(6px); }
    15%  { opacity: 1; }
    70%  { transform: scale(3.2); opacity: 1; filter: blur(0); }
    85%  { transform: scale(3.6); opacity: 1; }
    100% { transform: scale(4); opacity: 0; filter: blur(4px); }
}

@keyframes df-scare-vignette {
    0%   { opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ---------- Ambient Layer in Demo ---------- */

#df-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999980;
}

.df-web, .df-easter, .df-spring, .df-autumn, .df-patrick {
    position: absolute;
    width: 22vmin;
    height: 22vmin;
    opacity: 0.95;
}

.df-web svg, .df-easter svg, .df-spring svg, .df-autumn svg, .df-patrick svg {
    width: 100%;
    height: 100%;
    display: block;
}

.df-web-tl, .df-autumn-tl, .df-spring-tl, .df-patrick-tl { top: 0; left: 0; transform-origin: top left; }
.df-web-tr, .df-autumn-tr, .df-spring-tr, .df-patrick-tr { top: 0; right: 0; transform: scaleX(-1); transform-origin: top right; }

.df-easter-bl { bottom: 0; left: 0; }
.df-easter-br { bottom: 0; right: 0; transform: scaleX(-1); }

.df-garland {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.df-garland svg {
    flex: 1 1 0;
    max-width: 340px;
    height: auto;
    display: block;
}

.df-garland .df-bulb { animation: df-blink 1.5s ease-in-out infinite; }
.df-garland svg:nth-child(odd) .df-bulb:nth-of-type(2n) { animation-delay: 0.4s; }
.df-garland svg:nth-child(even) .df-bulb:nth-of-type(2n+1) { animation-delay: 0.8s; }
@keyframes df-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.df-garland .df-nstar { transform-box: fill-box; transform-origin: center; animation: df-nstar-twinkle 1.8s ease-in-out infinite alternate; }
@keyframes df-nstar-twinkle { 0% { transform: scale(0.85); opacity: 0.45; } 100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #ffd60a); } }

.df-garland .df-hheart, .df-garland .df-flag { transform-box: fill-box; transform-origin: top center; animation: df-hang-sway 2.6s ease-in-out infinite alternate; }
@keyframes df-hang-sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

.df-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    overflow: hidden;
}

.df-wave-track {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    width: 200%;
    animation: df-wave-slide 9s linear infinite;
}

.df-wave-track svg { width: 50%; height: 54px; display: block; }
.df-wave-track.df-wave-back { opacity: 0.7; animation-duration: 14s; animation-direction: reverse; }
@keyframes df-wave-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.df-tape { position: absolute; width: 220px; opacity: 0.95; }
.df-tape svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.df-tape-tl { top: 70px; left: -60px; transform: rotate(-35deg); }
.df-tape-br { bottom: 70px; right: -60px; transform: rotate(145deg); }

/* ---------- Click Sparkles ---------- */

.df-click-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 10000000;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    animation: df-sparkle-pop 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

.df-click-sparkle svg {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes df-sparkle-pop {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(0.3) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--df-sx), var(--df-sy)) scale(1.15) rotate(var(--df-srot, 180deg));
        opacity: 0;
    }
}

/* ---------- WhatsApp Floating Widget ---------- */

.whatsapp-float-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999998;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-bubble {
    background: #ffffff;
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    position: relative;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.whatsapp-float-wrap:hover .whatsapp-bubble {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: wa-wiggle 6s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(6deg);
    background: #20ba59;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

/* Ondas radar concéntricas de pulso */
.whatsapp-pulse, .whatsapp-pulse-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    z-index: -1;
    animation: wa-radar 2.4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.whatsapp-pulse-2 {
    animation-delay: 1.2s;
}

/* Badge de atención con sombrero festivo */
.whatsapp-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff0055;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes wa-radar {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes wa-wiggle {
    0%, 80%, 100% {
        transform: scale(1) rotate(0deg);
    }
    85% {
        transform: scale(1.1) rotate(-14deg);
    }
    90% {
        transform: scale(1.1) rotate(14deg);
    }
    95% {
        transform: scale(1.1) rotate(-8deg);
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .theme-selector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .theme-selector-grid { grid-template-columns: repeat(2, 1fr); }
    .simulator-controls { flex-direction: column; align-items: flex-start; }
    .pricing-card { max-width: 100%; min-width: 100%; }
}
