* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root {
    --brand: #2563eb;
    --brand-2: #16a34a;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);

    --bs-primary: var(--brand);
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-color: var(--text);
    --bs-body-bg: var(--surface-2);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-bs-theme="dark"] {
    --surface: #0b1220;
    --surface-2: #0f172a;
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --border: #1f2937;
}

body {
    background: radial-gradient(1200px 600px at 20% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
                radial-gradient(900px 500px at 100% 0%, rgba(22, 163, 74, 0.14), transparent 55%),
                var(--surface);
    color: var(--text);
}

a { color: inherit; }
a:hover { color: var(--brand); }

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(22,163,74,.16));
    border: 1px solid rgba(226,232,240,.8);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(226,232,240,.8);
}

[data-bs-theme="dark"] .brand-logo { border-color: rgba(31,41,55,.9); }

[data-bs-theme="dark"] .brand-mark { border-color: rgba(31,41,55,.9); }

.site-navbar {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226,232,240,.8);
}

[data-bs-theme="dark"] .site-navbar {
    background: rgba(11,18,32,0.7);
    border-bottom-color: rgba(31,41,55,.9);
}

.site-navbar .nav-link {
    color: var(--text);
    opacity: 0.85;
    font-weight: 500;
}

.site-navbar .nav-link:hover {
    opacity: 1;
}

.site-search {
    width: 280px;
}

.site-search-input {
    padding-left: 32px;
    border-radius: 12px;
    border-color: var(--border);
    background: rgba(255,255,255,0.7);
}

[data-bs-theme="dark"] .site-search-input {
    background: rgba(15,23,42,0.7);
}

.site-search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.hero-section {
    --hero-image: none;
    position: relative;
    isolation: isolate;
    border-radius: 20px;
    border: 1px solid rgba(226,232,240,.9);
    background:
        radial-gradient(700px 400px at 10% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
        radial-gradient(700px 400px at 100% 10%, rgba(22, 163, 74, 0.16), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.55));
    box-shadow: var(--shadow-md);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: saturate(1.05) contrast(1.02);
    pointer-events: none;
    z-index: 0;
}

[data-bs-theme="dark"] .hero-section::before {
    opacity: 0.14;
}

.hero-section > * { position: relative; z-index: 1; }

[data-bs-theme="dark"] .hero-section {
    border-color: rgba(31,41,55,.9);
    background:
        radial-gradient(700px 400px at 10% 0%, rgba(37, 99, 235, 0.22), transparent 55%),
        radial-gradient(700px 400px at 100% 10%, rgba(22, 163, 74, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(11,18,32,0.85), rgba(11,18,32,0.55));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37,99,235,.10);
    border: 1px solid rgba(37,99,235,.18);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.hero-title { letter-spacing: -0.02em; }
.hero-subtitle { color: var(--text-muted); max-width: 52ch; }

.hero-panel {
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,0.65);
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .hero-panel {
    border-color: rgba(31,41,55,.9);
    background: rgba(15,23,42,0.6);
}

.hero-panel-inner { padding: 18px; }

.hero-carousel {
    border-radius: 18px;
    overflow: hidden;
}

.hero-carousel .carousel-indicators {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 26px;
    height: 6px;
    border-radius: 999px;
    opacity: 0.35;
}

.hero-carousel .carousel-indicators .active { opacity: 0.9; }

.hero-slide {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,.9);
    background-color: rgba(255,255,255,0.60);
    background-size: cover;
    background-position: center;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    min-height: 310px;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,18,32,0.10), rgba(11,18,32,0.55));
    opacity: 0.8;
}

.hero-slide > * { position: relative; z-index: 1; }

@media (max-width: 575.98px) {
    .hero-slide { padding: 18px; min-height: 280px; }
}

[data-bs-theme="dark"] .hero-slide {
    border-color: rgba(31,41,55,.9);
    background-color: rgba(15,23,42,0.55);
}

.countdown-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,0.7);
}

[data-bs-theme="dark"] .countdown-card {
    border-color: rgba(31,41,55,.9);
    background: rgba(15,23,42,0.6);
}

.countdown-inline {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

[data-bs-theme="dark"] .countdown-inline {
    border-color: rgba(31,41,55,.9);
    background: rgba(15,23,42,0.6);
}

.card {
    border-radius: 16px;
    border-color: rgba(226,232,240,.9);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

[data-bs-theme="dark"] .card { border-color: rgba(31,41,55,.9); }

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-soft { background: rgba(255,255,255,0.7); }
[data-bs-theme="dark"] .card-soft { background: rgba(15,23,42,0.6); }

.card-gradient {
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(22,163,74,.85));
    border: 0;
}

.page-header {
    padding: 18px 18px;
    border-radius: 18px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,0.65);
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .page-header {
    border-color: rgba(31,41,55,.9);
    background: rgba(15,23,42,0.6);
}

.content-list > div {
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,.9);
    background: rgba(255,255,255,0.65);
}

[data-bs-theme="dark"] .content-list > div {
    border-color: rgba(31,41,55,.9);
    background: rgba(15,23,42,0.55);
}

.content-list > div a { text-decoration: none; font-weight: 600; }
.content-list > div p { margin-bottom: 8px; color: var(--text-muted); }

.content-prose h1,
.content-prose h2,
.content-prose h3 { letter-spacing: -0.01em; }

.content-prose p,
.content-prose li { color: var(--text-muted); line-height: 1.7; }

.site-footer {
    background: rgba(255,255,255,0.65);
    border-top: 1px solid rgba(226,232,240,.9);
}

.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1030;
}

.btn-whatsapp {
    background: #22c55e;
    color: #0b1220;
    border: 0;
}

.btn-whatsapp:hover {
    background: #16a34a;
    color: #0b1220;
}

[data-bs-theme="dark"] .site-footer {
    background: rgba(15,23,42,0.5);
    border-top-color: rgba(31,41,55,.9);
}

/* Lightbox styles */
.lightbox-modal .modal-content {
    background-color: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-modal img {
    max-height: 90vh;
    max-width: 100%;
}
