:root {
    --bg: #161616;
    --surface: #232a1a;
    --surface-2: #232a1a;
    --text: #f7fff0;
    --muted: #b3ff7b;
    --brand: #acff1c;
    --brand-light: #9EDBA1;
    --brand-2: #2e7d32;
    --brand-3: #ffd600;
    --accent: #7be0ff;
    --ring: #acff1c66;
    --radius: 18px;
    --base100: #232a1a;
    --base200: #434343;
    --base300: #575757;
    --base400: #7a7a7a;
    --base500: #959595;
    --base600: #a6a6a6;
    --base700: #d6d6d6;
    --base800: #f0fbe6;
    --base900: #f7fff0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 2px 10px rgba(0, 0, 0, 0.55);
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: Ubuntu, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    scrollbar-width: thin;
}

html,
body,
#app {
    scroll-behavior: smooth;
    scrollbar-color: var(--brand) var(--surface);
    scrollbar-width: thin;
}

/* LINE BACKGROUND */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    display: flex;
    justify-content: space-around;
}

.lines .line {
    position: relative;
    width: 1px;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.lines .line::after,
.lines .line::before {
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 2px;
    top: -15vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--brand) 75%, var(--brand) 100%);
    animation: glowDrift 10s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.35, 0.26, 0, 0.37)
}

.lines .line::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--brand-3) 75%, var(--brand-3) 100%);
}

.lines .line1::before {
    animation-delay: 7.25s;
}

.lines .line2::before {
    animation-delay: 5.45s;
}

.lines .line3::before {
    animation-delay: 8.4s;
}

.lines .line4::before {
    animation-delay: 5.44s;
}

.lines .line5::before {
    animation-delay: 8.12s;
}

.lines .line6::before {
    animation-delay: 4.6s;
}

.lines .line7::before {
    animation-delay: 4.37s;
}

.lines .line8::before {
    animation-delay: 4.22s;
}

.lines .line9::before {
    animation-delay: 6.81s;
}

.lines .line10::before {
    animation-delay: 2.52s;
}

.lines .line1::after {
    animation-delay: 3.2s;
}

.lines .line2::after {
    animation-delay: 0.7s;
}

.lines .line3::after {
    animation-delay: 4.8s;
}

.lines .line4::after {
    animation-delay: 2.1s;
}

.lines .line5::after {
    animation-delay: 5s;
}

.lines .line6::after {
    animation-delay: 1.4s;
}

.lines .line7::after {
    animation-delay: 0.2s;
}

.lines .line8::after {
    animation-delay: 2.4s;
}

.lines .line9::after {
    animation-delay: 4.1s;
}

.lines .line10::after {
    animation-delay: 0.5s;
}

@keyframes glowDrift {
    from {
        top: -50%;
    }

    to {
        top: 110%;
    }
}

.icon-wrapper {
    padding: 8px;
    background-color: var(--brand);
    box-shadow: var(--shadow);
    border-radius: 8px;
    display: block;
}

section#valorador>div,
section#valorador-secundario>div {
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    width: min(1120px, 80vw);
    margin: 0 auto;
}

section.hero {
    backdrop-filter: blur(0px);
    position: relative;
    isolation: isolate;
    padding: clamp(96px, 6vw, 168px) 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    section.hero p {
        width: auto;
        max-width: 80vw;
    }

    section.hero h2 {
        width: min-content;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.highlight {
    color: var(--brand);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: calc(var(--radius) - 6px);
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #06101a;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    backdrop-filter: blur(2px);
}

.fa-gradient {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAVIGATION */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 25, 54, 0.33);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, 80vw);
    margin: 0 auto;
}

.nav-brand img {
    height: 64px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--brand);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: calc(var(--radius) - 8px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(95, 225, 214, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(95, 225, 214, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-link {
        font-size: 16px;
        padding: 12px 0;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }
}

/* FOOTER STYLES */
.footer {
    background: rgba(18, 25, 54, 0.33);
    backdrop-filter: blur(10px);
    padding: clamp(10px, 1vw, 20px) 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 10px;
    place-items: center;
}

.footer-copyright p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 8px;
    }
}

/* GRADIENTS */

.brand-3-gradient {
    background: linear-gradient(135deg, var(--brand-3) 0%, var(--error) 100%);
}

.brand-3-gradient.inverse {
    background: linear-gradient(135deg, var(--error) 0%, var(--brand-3) 100%);
}

.accent-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--info) 100%);
}

.accent-gradient.inverse {
    background: linear-gradient(135deg, var(--info) 0%, var(--accent) 100%);
}

.brand-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}

.brand-gradient.inverse {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
}