/* Base styles */
:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    line-height: 1.6;
}

main {
    display: block;
    overflow: hidden;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 96px;
}

p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.section h2 {
    font-size: 1.9rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}

.language-switcher {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    gap: 0.25rem;
}

.language-btn {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.language-btn.active {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.25);
}

.mobile-menu-panel {
    display: none;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.mobile-menu-panel.open {
    display: block;
}

details.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

details.accordion + details.accordion {
    margin-top: 0.75rem;
}

details.accordion[open] {
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.1);
}

details.accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #0f172a;
}

details.accordion summary::-webkit-details-marker {
    display: none;
}

details.accordion .accordion-body {
    margin-top: 0.5rem;
}

details.accordion .accordion-body p {
    margin: 0 0 0.85rem;
    color: #64748b;
}

details.accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

/* Buttons & cards */
.btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.icon-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    border-color: rgb(79 70 229);
}

.material-symbols-rounded,
.material-symbols-outlined {
    display: block;
    line-height: 1;
    font-size: 1.25rem;
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.icon-symbol {
    font-size: 1.25rem;
}

.card,
.service-card,
.pricing-card,
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.service-card:hover,
.pricing-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    border-color: rgb(148 163 184);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.85rem;
}

.trust-pill {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 0.85rem;
    font-weight: 500;
    color: #0f172a;
}

.highlight-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
}

.about-highlights {
    align-self: flex-start;
}

.about-highlights .highlight-card {
    min-height: 70px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding-bottom: 0.15rem;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #4f46e5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
}

.site-footer a {
    color: inherit;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
}

/* Logo responsive height */
.site-header a img {
    max-height: 3rem;
}

@media (min-width: 768px) {
    .site-header a img {
        max-height: 3.5rem;
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp floating button */
.whatsapp-btn {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    z-index: 99;
    width: 52px;
    height: 52px;
    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.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

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

.cookie-banner__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.cookie-banner__text {
    flex: 1 1 320px;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.cookie-banner__text a {
    color: #4f46e5;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.cookie-btn--primary {
    background: #4f46e5;
    color: #fff;
}

.cookie-btn--primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.cookie-btn--secondary {
    background: #f1f5f9;
    color: #475569;
}

.cookie-btn--secondary:hover {
    background: #e2e8f0;
}

/* Active nav link */
.nav-link.active {
    color: #4f46e5;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Scroll-to-top button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}
