:root {
    --brand-navy: #2c3d69;
    --brand-cyan: #5ab1cc;
    --brand-light: #d4e8ee;
    --brand-dark: #1a2540;
    --brand-darker: #0d1323;
    --brand-var1a: #1a5660;
    --brand-var1b: #d9871c;
    --brand-var1c: #6b3c1a;
    --brand-var2a: #294c91;
    --brand-var2b: #c2ca31;
    --brand-var3a: #32586c;
    --brand-var3b: #7e6f36;
    --brand-var4a: #1f253b;
    --brand-var4b: #bf6621;
    --brand-border: rgba(90, 177, 204, 0.18);
    color-scheme: dark light;
}

html[data-theme="dark"] {
    --page-bg: #0d1323;
    --page-bg-soft: #10182d;
    --page-text: #d4e8ee;
    --page-text-strong: #ffffff;
    --page-text-soft: rgba(212, 232, 238, 0.78);
    --page-surface: rgba(26, 37, 64, 0.7);
    --page-surface-strong: rgba(13, 19, 35, 0.92);
    --page-border: rgba(90, 177, 204, 0.18);
    --page-card: linear-gradient(180deg, rgba(44, 61, 105, 0.24), rgba(26, 37, 64, 0.7));
}

html[data-theme="light"] {
    --page-bg: #eef7fb;
    --page-bg-soft: #f5fbfd;
    --page-text: #17213a;
    --page-text-strong: #0f172a;
    --page-text-soft: #4b586f;
    --page-surface: #ffffff;
    --page-surface-strong: #f2f9fc;
    --page-border: rgba(44, 61, 105, 0.24);
    --page-card: linear-gradient(180deg, rgba(212, 232, 238, 0.92), rgba(255, 255, 255, 0.96));
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 18% 14%, rgba(90, 177, 204, 0.14), transparent 24rem),
        radial-gradient(circle at 82% 86%, rgba(41, 76, 145, 0.16), transparent 22rem),
        linear-gradient(180deg, var(--page-bg-soft) 0%, var(--page-bg) 100%);
    color: var(--page-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at 18% 12%, rgba(90, 177, 204, 0.16), transparent 24rem),
        radial-gradient(circle at 84% 82%, rgba(44, 61, 105, 0.10), transparent 22rem),
        linear-gradient(180deg, var(--page-bg-soft) 0%, var(--page-bg) 100%);
}

html[data-theme="light"] [class*="text-brand-light"],
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-gray-500,
html[data-theme="light"] .text-gray-600 {
    color: var(--page-text) !important;
}

html[data-theme="light"] .text-brand-cyan {
    color: #2c3d69 !important;
}

html[data-theme="light"] main h1,
html[data-theme="light"] main h2,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-copy {
    color: var(--page-text-strong) !important;
}

html[data-theme="light"] main p,
html[data-theme="light"] main li {
    color: var(--page-text-soft);
}

html[data-theme="light"] .animate-fade-in-up {
    opacity: 1;
}

html[data-theme="light"] .bg-brand-cyan,
html[data-theme="light"] [class*="bg-brand-cyan"] {
    background-color: #5ab1cc !important;
    color: #0d1323 !important;
}

html[data-theme="light"] [class*="bg-brand-darker"] {
    background-color: var(--page-bg) !important;
}

html[data-theme="light"] [class*="bg-brand-dark"],
html[data-theme="light"] .glass-header {
    background: var(--page-surface-strong) !important;
    border-color: rgba(44, 61, 105, 0.16) !important;
}

html[data-theme="light"] [class*="border-brand-navy"],
html[data-theme="light"] [class*="border-white"] {
    border-color: var(--page-border) !important;
}

html[data-theme="light"] .card-bento,
html[data-theme="light"] .partner-pill,
html[data-theme="light"] .accordion-item,
html[data-theme="light"] .event-card,
html[data-theme="light"] .accordion-shell,
html[data-theme="light"] .plan-card {
    background: var(--page-card) !important;
    border-color: var(--page-border) !important;
    color: var(--page-text) !important;
}

html[data-theme="light"] .plan-card-premium {
    background: linear-gradient(180deg, #ffffff 0%, #e6f4f8 100%) !important;
}

html[data-theme="light"] .plan-muted,
html[data-theme="light"] .plan-card li,
html[data-theme="light"] .accordion-trigger p,
html[data-theme="light"] .card-bento p,
html[data-theme="light"] .card-bento li {
    color: var(--page-text-soft) !important;
}

html[data-theme="light"] .plan-price,
html[data-theme="light"] .plan-price-gold {
    color: #1f4e79 !important;
}

html[data-theme="light"] .bg-brand-navy,
html[data-theme="light"] [class*="bg-brand-navy"] {
    background-color: #2c3d69 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .nav-link,
html[data-theme="light"] .mobile-link {
    color: var(--page-text) !important;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .mobile-link:hover {
    color: #2c3d69 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-navy);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-cyan);
}

.glass-header {
    background: linear-gradient(180deg, rgba(13, 19, 35, 0.95), rgba(13, 19, 35, 0.84));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.card-bento {
    background: linear-gradient(180deg, rgba(44, 61, 105, 0.24), rgba(26, 37, 64, 0.7));
    border: 1px solid var(--brand-border);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-bento:hover {
    transform: translateY(-4px);
    border-color: rgba(90, 177, 204, 0.48);
    box-shadow: 0 16px 40px rgba(90, 177, 204, 0.12);
}

.card-variant-1 {
    background: linear-gradient(145deg, rgba(26, 86, 96, 0.3), rgba(107, 60, 26, 0.2));
    border-color: rgba(217, 135, 28, 0.28);
}

.card-variant-2 {
    background: linear-gradient(145deg, rgba(41, 76, 145, 0.3), rgba(194, 202, 49, 0.14));
    border-color: rgba(194, 202, 49, 0.28);
}

.card-variant-3 {
    background: linear-gradient(145deg, rgba(50, 88, 108, 0.3), rgba(126, 111, 54, 0.18));
    border-color: rgba(126, 111, 54, 0.28);
}

.event-section {
    background:
        radial-gradient(circle at 82% 24%, rgba(191, 102, 33, 0.14), transparent 24rem),
        linear-gradient(180deg, rgba(31, 37, 59, 0.68), rgba(13, 19, 35, 0.98));
}

html[data-theme="light"] .event-section {
    background:
        radial-gradient(circle at 84% 24%, rgba(191, 102, 33, 0.16), transparent 24rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(212, 232, 238, 0.76));
}

html[data-theme="light"] .event-section [class*="text-brand-light"],
html[data-theme="light"] .event-section .text-white {
    color: var(--page-text) !important;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-blob {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 999px;
    filter: blur(150px);
    opacity: 0.24;
    animation: auroraFloat 12s ease-in-out infinite alternate;
}

.aurora-1 {
    background: var(--brand-cyan);
}

.aurora-2 {
    background: var(--brand-var2a);
    animation-delay: 2s;
}

@keyframes auroraFloat {
    from {
        transform: translate3d(0, 0, 0) scale(0.94);
    }
    to {
        transform: translate3d(20px, -24px, 0) scale(1.06);
    }
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.7s ease forwards;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .animate-fade-in-up {
        opacity: 1 !important;
        transform: none !important;
    }
}


.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.accordion-content.open {
    max-height: 800px;
    opacity: 1;
}

.accordion-icon {
    transition: transform 0.25s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.galeria-tab-content {
    display: none;
    animation: fadeTab 0.3s ease;
}

.galeria-tab-content.active {
    display: block;
}

@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.galeria-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(90, 177, 204, 0.18);
    background: rgba(26, 37, 64, 0.6);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.galeria-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.galeria-img-wrap::after {
    content: 'Ampliar';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgba(13, 19, 35, 0.38);
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.galeria-img-wrap:hover img {
    transform: scale(1.05);
    opacity: 0.82;
}

.galeria-img-wrap:hover::after {
    opacity: 1;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-container {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 2rem;
    animation: marquee 28s linear infinite;
    will-change: transform;
}

.marquee-wrapper:hover .marquee-container {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 84px;
    padding: 1rem 1.4rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.partner-pill img {
    max-width: 140px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.partner-pill span {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 232, 238, 0.86);
}

#mobile-nav {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* WhatsApp floating action button styles */
#whatsapp-fab {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent; /* keep the PNG transparency visible */
    padding: 6px; /* small hit area padding around the icon */
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(16,24,40,0.35);
    transition: transform 160ms ease, box-shadow 160ms ease;
    text-decoration: none;
    color: #25d366;
}

#whatsapp-fab:hover { transform: translateY(-3px); }

#whatsapp-fab img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }

#whatsapp-fab svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Desktop: more visible */
/* Floating button: container larger than icon so icon isn't clipped */
@media (min-width: 0px) {
    #whatsapp-fab { width: 80px; height: 80px; padding: 10px; }
    /* Keep icon at requested 60x60 */
    #whatsapp-fab img { width: 60px; height: 60px; }
    #whatsapp-fab svg { width: 60px; height: 60px; }
}

@media (max-width: 640px) {
    #whatsapp-fab {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 64px;
        height: 64px;
        padding: 8px;
    }

    #whatsapp-fab img {
        width: 48px;
        height: 48px;
    }

    #whatsapp-fab svg {
        width: 48px;
        height: 48px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #whatsapp-fab { transition: none; }
}
