:root {
    /* COMMON COLORS */
    --red: #d32f2f;
    --red2: #ef5350;
    --red3: #ff1744;
    --brand: #d32f2f;
    --brand2: #ef5350;
    --radius: 12px;

    /* DARK THEME (Default) */
    --bg: #0c0b15;
    --bg2: #12111f;
    --bg3: #1a1929;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(12, 11, 21, 0.95);
    --footer-bg: #08070f;
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --bg3: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --card: rgba(15, 23, 42, 0.04);
    --border: rgba(15, 23, 42, 0.1);
    --glass: rgba(255, 255, 255, 0.82);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f8fafc;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

[data-theme="light"] .glass {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

/* HERO BACKGROUNDS */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(211, 47, 47, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(211, 47, 47, .06) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-radial {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(211, 47, 47, .18) 0%, transparent 70%);
}

[data-theme="light"] .hero-grid {
    background-image: linear-gradient(rgba(211, 47, 47, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(211, 47, 47, .1) 1px, transparent 1px);
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%
}

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

img {
    max-width: 100%
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: var(--bg2)
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 3px
}

/* SCROLL PROGRESS BAR */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red), 0 0 5px var(--red2);
    transition: width 0.1s ease-out;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    border: none;
    transition: all .3s ease
}

.btn-primary {
    background: var(--red);
    color: #fff
}

.btn-primary:hover {
    background: var(--red2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, .4)
}

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

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red)
}

.section {
    padding: 90px 0
}

.section-tag {
    display: inline-block;
    background: rgba(211, 47, 47, .15);
    color: var(--red2);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px
}

.section-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-sub {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 600px;
    line-height: 1.7;
}

.grid-line {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
    transition: all .3s
}

nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem
}

.logo-text span {
    color: var(--red)
}

.nav-links {
    display: flex !important;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all .3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--card)
}

.nav-links .nav-cta {
    background: var(--brand) !important;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: var(--brand2) !important;
    transform: translateY(-1px);
}


/* MEGAMENU */
.has-dropdown {
    position: relative;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 640px;
    max-width: 90vw;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
    z-index: 1001;
}

.has-dropdown:hover .megamenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}


.mega-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 10px;
    transition: all .3s;
    text-align: left;
}

.mega-item:hover {
    background: var(--card);
}

/* NAVIGATION VISIBILITY */
.hamburger {
    display: none !important;
}

@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

.mega-icon {
    width: 38px;
    height: 38px;
    background: rgba(211, 47, 47, .12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 1rem;
    flex-shrink: 0;
}

.mega-info h5 {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.mega-info p {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.4;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 11, 21, .98);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px
}

.mobile-menu.open {
    display: flex
}

.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray);
    transition: color .3s
}

.mobile-menu a:hover {
    color: #fff
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray)
}

/* TRUSTED SECTION */
.trusted {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2)
}

.trusted-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

@media (min-width: 992px) {
    .trusted-inner {
        flex-direction: row;
        gap: 48px;
        justify-content: center;
    }
}

.trusted-label {
    font-size: .8rem;
    color: var(--gray2);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

@media (min-width: 992px) {
    .trusted-label {
        width: auto;
        border-right: 1px solid var(--border);
        padding-right: 48px;
    }
}

.trusted-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.trusted-logo {
    color: var(--gray2);
    font-size: .95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .6;
    transition: opacity .3s;
}

.trusted-logo:hover {
    opacity: 1;
}

.trusted-logo i {
    font-size: 1.2rem;
}

/* FOOTER */
footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 28px
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px
}

.footer-brand p {
    color: var(--gray);
    font-size: .88rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 260px
}

.footer-col h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray2);
    margin-bottom: 18px
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-col ul a {
    font-size: .88rem;
    color: var(--gray);
    transition: color .3s
}

.footer-col ul a:hover {
    color: var(--red2)
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px
}

.footer-bottom p {
    font-size: .82rem;
    color: var(--gray2)
}

.footer-social {
    display: flex;
    gap: 10px
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: .85rem;
    transition: all .3s
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all
}

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform .3s
}

.modal-overlay.show .modal-box {
    transform: translateY(0)
}

.modal-icon {
    font-size: 3rem;
    color: var(--red2);
    margin-bottom: 16px
}

.modal-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px
}

.modal-box p {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 24px
}

.modal-close {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: .9rem;
    transition: background .3s
}

.modal-close:hover {
    background: var(--red2)
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* BACK TO TOP */
#btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    border: none;
    font-size: 1rem
}

#btt.visible {
    opacity: 1;
    pointer-events: all
}

#btt:hover {
    background: var(--red2);
    transform: translateY(-3px)
}

/* RESPONSIVE UTILITIES - Global */

@media (max-width: 992px) {
    .nav-inner {
        padding: 0 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* COOKIE BANNER COMPLIANCE */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 450px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-content h4 i {
    color: var(--red2);
}

.cookie-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--red2);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-actions-row {
    display: flex;
    gap: 10px;
}

.cookie-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 16px;
}

/* Equal prominence for Reject and Accept */
.btn-reject {
    background: var(--bg3);
    color: var(--text);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.btn-reject:hover {
    background: var(--text-dim);
    border-color: var(--text-dim);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.cookie-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform .3s;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-overlay.show .cookie-modal {
    transform: translateY(0);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.cookie-modal-close:hover {
    color: var(--text);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.cookie-option:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.cookie-option-info h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cookie-option-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg3);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--red);
    border-color: var(--red);
}

input:checked+.toggle-slider:before {
    transform: translateX(20px);
    background-color: #fff;
}

input:disabled+.toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:disabled:checked+.toggle-slider {
    background-color: var(--red);
}

/* FLOATING TRIGGER */
.cookie-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.cookie-trigger:hover {
    color: var(--red2);
    border-color: var(--red2);
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        padding: 20px;
    }

    .cookie-actions-row {
        flex-direction: column;
    }
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
}

/* THEME TOGGLE */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--red);
    background: var(--bg3);
}

.theme-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
}