﻿body {
    font-family: 'Outfit', sans-serif;
}

::selection {
    background: #22c55e;
    color: #fff;
}

:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
    border-radius: 4px;
}

section[id] {
    scroll-margin-top: 96px;
}

/* ===== Hero & backgrounds ===== */
.hero-gradient {
    background: radial-gradient(900px 500px at 85% -10%, rgba(34,197,94,.18), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(16,185,129,.10), transparent 60%), linear-gradient(135deg, #0f172a 0%, #111c33 55%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 40%, transparent 100%);
}

.glass-card {
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-d1 {
    transition-delay: .08s;
}

.reveal-d2 {
    transition-delay: .16s;
}

.reveal-d3 {
    transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Sliders con relleno ===== */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: linear-gradient(to right, #22c55e var(--fill,50%), #e2e8f0 var(--fill,50%));
    cursor: pointer;
}

    input[type=range].dark-slider {
        background: linear-gradient(to right, #22c55e var(--fill,50%), #1e293b var(--fill,50%));
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 22px;
        width: 22px;
        border-radius: 50%;
        background: #fff;
        border: 6px solid #22c55e;
        box-shadow: 0 2px 12px rgba(34,197,94,.5);
        transition: transform .15s ease;
    }

        input[type=range]::-webkit-slider-thumb:hover {
            transform: scale(1.15);
        }

    input[type=range]::-moz-range-thumb {
        height: 22px;
        width: 22px;
        border-radius: 50%;
        background: #fff;
        border: 6px solid #22c55e;
        box-shadow: 0 2px 12px rgba(34,197,94,.5);
    }

    input[type=range]::-moz-range-track {
        height: 8px;
        border-radius: 9999px;
        background: transparent;
    }

/* ===== Header ===== */
#mainHeader .header-inner {
    height: 5rem;
    transition: height .3s ease;
}

#mainHeader.scrolled .header-inner {
    height: 4rem;
}

#mainHeader.scrolled {
    box-shadow: 0 10px 30px -10px rgba(2,6,23,.6);
}

.nav-link {
    position: relative;
    transition: color .2s ease;
}

    .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #22c55e;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
        transform: scaleX(1);
    }

    .nav-link.active {
        color: #fff;
    }

/* ===== FAQ acordeón ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.16,1,.3,1);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item .faq-icon {
    transition: transform .3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

/* ===== Toast ===== */
.toast {
    transform: translateY(20px);
    opacity: 0;
    transition: all .35s cubic-bezier(.16,1,.3,1);
}

    .toast.show {
        transform: translateY(0);
        opacity: 1;
    }

/* ===== Wizard ===== */
.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
        animation: scaleIn .35s cubic-bezier(.16,1,.3,1) both;
    }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.check-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawStroke .6s cubic-bezier(.65,0,.45,1) forwards;
}

.check-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawStroke .35s cubic-bezier(.65,0,.45,1) .55s forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
    border: 2px solid #f1f5f9;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #22c55e;
    }

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
