:root {
    --primary: oklch(0.555 0.163 48.998);
    --background: oklch(0.97 0.005 240);
    --sidebar: oklch(0.837 0.128 66.29);
    --sidebar-foreground: oklch(0 0 0);
    --sidebar-primary: oklch(0.555 0.163 48.998);
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: #1a1c1c;
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-title {
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 700;
}

.editorial-shadow {
    box-shadow: 0 12px 40px rgba(26, 28, 28, 0.06);
}

.crop-fade {
    mask-image: linear-gradient(to bottom, black 66%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 66%, transparent 100%);
}

/* ── Scroll animations ───────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered children */
.stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ── Button base ─────────────────────────────────────────────── */
button, a[href] {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Brand color overrides – bg-primary y border-primary usan var(--primary) */
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* Primary solid button */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 28, 28, 0.18);
}
.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: none;
}

/* Outline button */
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 28, 28, 0.1);
}
.btn-outline:active {
    transform: translateY(0) scale(0.97);
}

/* ── Feature cards ───────────────────────────────────────────── */
.feature-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 28, 28, 0.09);
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tab-btn {
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.25s ease;
}
.tab-btn.active {
    color: #000000;
    font-weight: 700;
}
.tab-btn.active::after {
    width: 100%;
}
.tab-btn:not(.active):hover {
    color: #1a1c1c;
}
.tab-btn:not(.active):hover::after {
    width: 40%;
}

/* tab panel */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-panel.active {
    display: flex;
}

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

/* ── Nav links ───────────────────────────────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ── Pricing card hover ──────────────────────────────────────── */
.plan-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26, 28, 28, 0.10);
}
.plan-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

/* ── Mobile menu ─────────────────────────────────────────────── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}
#mobile-menu.open {
    max-height: 300px;
    opacity: 1;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1c1c;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Responsive fixes ────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Pricing featured card: sin scale en mobile */
    .plan-card.featured {
        transform: none !important;
    }
    .plan-card.featured:hover {
        transform: translateY(-6px) !important;
    }

    /* Tabs: scroll horizontal en lugar de wrap */
    .tabs-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tabs-scroll::-webkit-scrollbar { display: none; }

    /* ── Plans carousel (mobile) ─────────────────────────────── */
    .plans-track {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 20px 20px 8px;
        margin: 0 -20px !important;
        max-width: none !important;
    }

    .plans-track::-webkit-scrollbar {
        display: none;
    }

    .plans-track > .plan-card {
        scroll-snap-align: center;
        flex: 0 0 84%;
        width: 84%;
    }
}

/* ── Skip navigation (accesibilidad) ────────────────────────── */
.skip-nav {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    text-decoration: none;
}
.skip-nav:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #ffffff;
    color: #1a1c1c;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    border: 2px solid #BB4D00;
}

/* ── Plans dots ──────────────────────────────────────────────── */
.plans-dot {
    height: 8px;
    width: 8px;
    border-radius: 9999px;
    background: #E5E5E5;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}
.plans-dot.active {
    width: 20px;
    background: #000000;
}


.problema-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
    .problema-track {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px;
        padding: 12px 20px 8px;
        margin: 0 -20px 16px !important;
    }

    .problema-track::-webkit-scrollbar {
        display: none;
    }

    .problema-track > div {
        flex: 0 0 86%;
        width: 86%;
        scroll-snap-align: center;
    }

    .problema-dot {
        height: 8px;
        width: 8px;
        border-radius: 9999px;
        background: #E5E5E5;
        border: none;
        padding: 0;
    }

    .problema-dot.active {
        width: 20px;
        background: #BB4D00;
    }
}