.hero {
    background: linear-gradient(45deg, rgba(58, 134, 255, 0.2), rgba(131, 56, 236, 0.2)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 18, 51, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.hero p.tetris-info a.tetris-link {
    color: #008080;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.hero p.tetris-info a.tetris-link:hover {
    color: #006666;
}

.hero p.tetris-info {
    font-size: 0.8em;
    color: #ff9800;
    margin-top: 5px;
    font-style: italic;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.3);
}

.features,
.installation,
.vulnerabilities,
.testimonials,
.faq,
.resources {
    padding: 6rem 0;
}

.features {
    background: var(--background-color);
}

.features h2,
.installation h2,
.vulnerabilities h2,
.testimonials h2,
.faq h2,
.resources h2,
#bug-report h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.suite h2,
#academy-demo h2 {
    text-align: center;
    padding-top: 6rem;
    margin-bottom: .6rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature.is-flippable {
    padding: 0;
    perspective: 1000px;
    overflow: visible;
}

.feature.is-flippable:hover {
    transform: translateY(-6px);
}

.feature .flip-card {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 15px;
    outline: none;
    cursor: pointer;
}

.feature .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 650ms cubic-bezier(.2, .7, .2, 1);
}

.feature .flip-card.is-flipped .flip-inner {
    transform: rotateY(180deg);
}

.feature .flip-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: .5rem;
    padding: 1.5rem;
    border-radius: 15px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    background: var(--card-background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.feature .flip-front i {
    font-size: 2.25rem;
    color: var(--accent-color);
}

.feature .flip-front i {
    display: none !important;
}

.feature .flip-front {
    z-index: 2;
}

.feature .flip-front h3 {
    margin: 0;
    color: var(--primary-color);
    text-align: center;
}

.feature .flip-back {
    transform: rotateY(180deg);
    text-align: left;
    justify-items: center;
    z-index: 1;
}

.feature .flip-back h3 {
    margin: 0 0 .35rem;
    color: var(--primary-color);
    text-align: center;
}

.feature .flip-back p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-color);
    text-align: center;
    max-width: 22ch;
}

.feature .flip-back i,
.feature .flip-back .fa,
.feature .flip-back .fas,
.feature .flip-back .fab {
    font-size: 2.25rem;
    color: var(--primary-color) !important;
    display: block;
    margin: 0 auto .5rem;
    text-align: center;
}

.feature .flip-card:not(.is-flipped) .flip-back {
    visibility: hidden;
}

.feature .flip-card.is-flipped .flip-front {
    visibility: hidden;
}

.feature .flip-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(58, 134, 255, .25);
}

@media (prefers-reduced-motion: reduce) {
    .feature .flip-inner {
        transition: none;
    }
}

@media (max-width: 480px) {
    .feature .flip-card {
        height: 200px;
    }
}

.installation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .installation-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.install-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.install-lead {
    max-width: 42ch;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tab-buttons {
    display: inline-flex;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    font-weight: 600;
    background: transparent;
    color: #c5cfe2;
    outline: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.tab-btn.is-active {
    background: var(--primary-color);
    color: #fff;
}

.code-wrapper {
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.code-block {
    margin: 0;
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    color: #7de6c3;
}

.code-block.is-hidden {
    display: none;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.12s;
}

.github-btn:hover {
    opacity: 0.9;
}

.steps-card {
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    background: transparent;
}

.card-title {
    font-size: 1.5rem;
    margin: 0 0 0.25rem 0;
}

.card-sub {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
}

.step-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-marker {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.requirements-box {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.requirements-box h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.req-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.req-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.req-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.vulnerabilities {
    background: var(--background-color);
}

.vulnerability-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vulnerability-item {
    background: var(--card-background);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.vulnerability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(131, 56, 236, 0.2);
}

.more-vulnerabilities {
    text-align: center;
    font-size: .9rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

.vuln-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media(max-width: 768px) {
    .vuln-grid {
        grid-template-columns: 1fr;
    }
}

.arch-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.arch-title {
    text-align: center;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.host-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
}

.host-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: .75rem;
}

.docker-box {
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.docker-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: .75rem;
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

.vuln-container {
    --bg: rgba(59, 130, 246, 0.15);
    background: var(--bg);
    border-radius: 6px;
    padding: .55rem .4rem;
    text-align: center;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.sql {
    --bg: rgba(34, 197, 94, 0.25);
}

.xss {
    --bg: rgba(220, 38, 38, 0.25);
}

.csrf {
    --bg: rgba(124, 58, 237, 0.25);
}

.auth {
    --bg: rgba(245, 158, 11, 0.25);
}

.dashboard-box {
    margin-top: 1rem;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 6px;
    padding: .65rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.vuln-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonials {
    background: var(--background-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial h4 {
    color: var(--primary-color);
}

.faq {
    background: var(--background-color);
    padding: 6rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-background);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.resources {
    background: var(--background-color);
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-item {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.resource-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.resource-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cta {
    padding: 6rem 0 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}


footer {
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    font-weight: 500;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-share {
    margin-top: 2rem;
}

.social-share a {
    display: inline-block;
    margin: 0 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-share a:hover {
    color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {

    header .logo,
    header nav {
        float: none;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        padding-top: 1rem;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

#bug-report {
    margin: 6rem auto;
    max-width: 1200px;
    padding: 0 20px;
}

.suite p,
#academy-demo p,
#bug-report p {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.bug-report-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.bug-report-form label {
    font-weight: 600;
}

.bug-report-form input,
.bug-report-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-lg);
    background: var(--background-color);
    color: var(--text-color);
    resize: vertical;
}

.bug-report-form button {
    width: fit-content;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bug-report-form button:hover {
    background: var(--primary-color);
}

.gallery {
    padding: 6rem 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
    overflow: clip;
}

.gallery-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.glitch-title {
    font-size: 2.5rem;
    margin: 0 0 .5rem;
    line-height: 1.1;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.gallery-sub {
    margin: 0;
    color: var(--text-color);
}

.gallery-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(58, 134, 255, .08);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.card figcaption {
    position: absolute;
    left: 12px;
    bottom: 10px;
    padding: .35rem .6rem;
    font-size: .9rem;
    border-radius: 10px;
    background: rgba(10, 15, 10, .65);
    color: #ffffff;
    border: 1px solid rgba(58, 134, 255, .25);
    backdrop-filter: blur(4px);
    transform: translateZ(30px);
}

.card .open {
    position: absolute;
    inset: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
}

.reveal.is-inview {
    opacity: 1;
    transform: none;
}

.card:hover img {
    transform: scale(1.06);
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(600px 200px at var(--mx, 50%) var(--my, 50%), rgba(58, 134, 255, .18), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: 0 14px 40px rgba(58, 134, 255, .22);
}

.glitch-title::after {
    content: none;
}

.lightbox {
    inset: 0;
    margin: auto;
    width: min(96vw, 1400px);
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, .6);
}

.lb-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px 14px 0 0;
}

.lb-cap {
    margin: 0;
    padding: .75rem 1rem 1rem;
    color: #cfe3ff;
    background: rgba(0, 0, 0, .55);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0 0 14px 14px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.lb-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    background: rgba(0, 0, 0, .5);
    color: #cfe3ff;
    border: 1px solid rgba(58, 134, 255, .25);
    border-radius: 10px;
    padding: .3rem .55rem;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .card img {
        transition: none;
    }

    .card::before {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: 7fr 5fr;
        grid-auto-rows: 300px;
        grid-auto-flow: dense;
    }

    .gallery-grid>.card {
        aspect-ratio: auto;
    }

    .gallery-grid>.card:nth-child(3n+1),
    .gallery-grid>.card:nth-child(3n+3) {
        grid-column: 1;
        grid-row: span 1;
    }

    .gallery-grid>.card:nth-child(3n+2) {
        grid-column: 2;
        grid-row: span 2;
    }
}

.gallery-head h2 {
    margin-bottom: .6rem;
}

.gallery-sub {
    margin-top: 0;
    margin-bottom: 0;
}

#bug-report h2 {
    margin-bottom: .6rem;
}

#bug-report h2+p {
    margin-top: 0;
}

.roadmap-2025 h2 {
    margin-bottom: .6rem;
}

.roadmap-2025 h2+p {
    margin-top: 0;
}

.stats {
    padding: 4rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    color: #fff;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    font-size: 2.5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-item i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.stat-item span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
}

.coming-soon {
    padding: 6rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.coming-soon h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #fff;
}

.coming-soon-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.coming-soon-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.coming-soon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.coming-soon-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.coming-soon-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.updates {
    padding: 6rem 0;
    background: var(--background-color);
}

.updates h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.timeline::before {
    z-index: 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    --line-progress: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
    transform: scaleY(calc(var(--line-progress) / 100));
    transform-origin: top;
    will-change: transform;
}

.update-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    --circle-shadow: 0 0 0 0px transparent;
    z-index: 1;
}

.update-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--background-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 8px var(--background-color);
    background: var(--background-color);
}

.timeline-loaded .update-item::after {
    box-shadow: 0 0 0 8px var(--background-color);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--primary-color);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--primary-color);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--primary-color);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--primary-color) transparent transparent;
}

.right::after {
    left: -16px;
}

.update-content {
    padding: 20px 30px;
    background-color: var(--card-background);
    position: relative;
    border-radius: 6px;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .update-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .update-item::before {
        left: 60px;
        border: medium solid var(--primary-color);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--primary-color) transparent transparent;
        z-index: 0;
    }

    .left::after,
    .right::after {
        left: 15px;
        box-shadow: 0 0 0 8px var(--background-color);
    }

    .right {
        left: 0%;
    }
}

.roadmap-2025 {
    padding: 6rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roadmap-2025 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.roadmap-2025 h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.roadmap-2025 p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}


.progress-tracker {
    width: 100%;
    position: relative;
}

.progress-line {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    margin-bottom: 2rem;
}

.progress-line-fill {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    background: var(--accent-color);
    border-radius: 3px;
    width: 0%;
    transition: width 1s ease;

}


.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 20%;

}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;

    color: #333;

    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-circle span {
    z-index: 2;
}

.step-info {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    border-radius: 10px;
    padding: 1rem;
    max-width: 220px;
    text-align: left;
    transition: transform 0.3s ease;
}

.step-info h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.step-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #f0f0f0;
}


.progress-step:hover .step-circle {
    transform: scale(1.07)
}

.progress-step:hover .step-info {
    transform: translateY(-4px);
}


.step-active .step-circle {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}


.dark .roadmap-2025 {
    background: var(--background-color);
    color: var(--text-color);
}

.dark .step-info {
    background: var(--card-background);
    color: var(--text-color);
}

.dark .step-circle {
    background: var(--card-background);
    color: var(--text-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #001233, #003366);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-container {
    text-align: center;
}

.cube-loader {
    width: 80px;
    height: 80px;
    margin: 0 auto 40px;
    position: relative;
    transform-style: preserve-3d;
}

.cube {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 4px;
}

.cube1 {
    top: 0;
    left: 0;
}

.cube2 {
    top: 0;
    right: 0;
}

.cube3 {
    bottom: 0;
    left: 0;
}

.cube4 {
    bottom: 0;
    right: 0;
}

.loading-text {
    margin-bottom: 30px;
}

.letter {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 2px;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    border-radius: 2px;
}

.feature-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.feature:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-front,
.feature-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
}

.feature-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: rotateY(180deg);
    color: white;
}

.stat-item {
    perspective: 1000px;
}

.progress-step {
    transition: transform 0.3s ease;
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.morph-shape {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    opacity: 0.1;
}

.step-overlay {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    z-index: 10;
}

.step-completed {
    background: #22c55e;
    color: white;
}

.step-incomplete {
    background: #ef4444;
    color: white;
}

.hero {
    perspective: 1200px;
}

.hero-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
}

.h-layer {
    position: absolute;
    inset: 0;
    will-change: transform, filter, opacity;
}

.hl-bg {
    --z: -200px;
    background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, .12), transparent 60%);
}

.hl-grid {
    --z: -120px;
    background: repeating-linear-gradient(to right, rgba(255, 255, 255, .06) 0 2px, transparent 2px 40px),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .06) 0 2px, transparent 2px 40px);
}

.hl-card {
    --z: 80px;
    width: min(600px, 80vw);
    height: min(380.22px, 52vw);
    margin: auto;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
    .h-layer {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

.magnetic {
    position: relative;
    overflow: hidden;
}

.magnetic span {
    display: inline-block;
    transform: translate(var(--tx, 0), var(--ty, 0));
    transition: transform .12s;
}

.reveal-3d {
    transform: translate3d(0, 30px, -120px) scale(.96);
    filter: blur(8px);
    opacity: 0.001;
    transform-origin: 50% 60%;
    will-change: transform, filter, opacity;
}

.reveal-3d.is-in {
    transform: none;
    filter: none;
    opacity: 1;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s, opacity .6s;
}

.rings-3d {
    position: absolute;
    inset: 0;
    pointer-events: none;
    perspective: 1200px;
}

.ring {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(60vmin, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, .12);
}

.r1 {
    animation: spin1 22s linear infinite;
    transform: rotateX(65deg) rotateZ(0deg) translateZ(-120px);
}

.r2 {
    animation: spin2 28s linear infinite reverse;
    transform: rotateX(35deg) rotateZ(0deg) translateZ(-80px);
}

.r3 {
    animation: spin3 36s linear infinite;
    transform: rotateX(80deg) rotateZ(0deg) translateZ(-40px);
}

@keyframes spin1 {
    to {
        transform: rotateX(65deg) rotateZ(360deg) translateZ(-120px);
    }
}

@keyframes spin2 {
    to {
        transform: rotateX(35deg) rotateZ(-360deg) translateZ(-80px);
    }
}

@keyframes spin3 {
    to {
        transform: rotateX(80deg) rotateZ(360deg) translateZ(-40px);
    }
}

.update-item {
    transform-style: preserve-3d;
}

.update-item.pop-in .update-content {
    transform: translateZ(40px) scale(1.02);
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.update-item.pop-in::after {
    box-shadow: 0 0 0 10px var(--background-color), 0 8px 30px rgba(0, 0, 0, .25);
}

.code-wrapper {
    position: relative;
}

.code-block {
    background: #0a0f0a;
    color: #d1f7c4;
    border: 1px solid #133113;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(73, 255, 135, .06);
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
    white-space: pre;
}

.code-block code {
    display: block;
}

.code-block[data-typing] code::after {
    content: attr(data-caret);
    display: inline-block;
    margin-left: 2px;
    animation: blink 1s steps(2, start) infinite;
}

.code-block.done code::after {
    content: "";
    animation: none;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.github-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #133113;
    color: #d1f7c4;
    text-decoration: none;
    background: rgba(10, 15, 10, .75);
    backdrop-filter: blur(6px);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.github-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(73, 255, 135, .12);
    border-color: #1d4d1d;
}

@media (prefers-reduced-motion: reduce) {
    .code-block[data-typing] code::after {
        animation: none;
    }
}

/* ===== SERVICIOS SUITE SECTION ===== */
.suite {
  background: var(--background-color);
  position: relative;
  overflow: hidden;
}

.suite::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 25% 25%, rgba(58, 134, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(131, 56, 236, 0.03) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-5%, -5%) rotate(1deg); }
  66% { transform: translate(5%, 5%) rotate(-1deg); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  transform-style: preserve-3d;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: 0 20px 60px rgba(var(--primary-color-rgb), 0.15);
}

.service-icon {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.service-card:hover .service-icon::before {
  transform: translateX(100%);
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
  z-index: 1;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
  transform: scale(1.1);
}

.service-card h3 {
  margin: 0 0 0.75rem 0;
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 700;
}

.service-card p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
}

.status-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.chip-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.chip-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.chip-accent {
  background: rgba(255, 0, 110, 0.15);
  color: var(--accent-color);
  border-color: rgba(255, 0, 110, 0.3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-color);
}

.badge-warning {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.3);
  color: #ffa726;
}

.badge-info {
  background: rgba(131, 56, 236, 0.15);
  border-color: rgba(131, 56, 236, 0.3);
  color: var(--secondary-color);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-link:hover::before {
  opacity: 1;
}

.service-link span {
  position: relative;
  z-index: 1;
}

.service-link.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

/* Overlay blur para CTF */
.ctf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ctf-overlay-content {
  text-align: center;
  color: white;
  font-weight: 600;
}

.ctf-overlay-content i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

.ctf-overlay-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.ctf-overlay-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== LEARNING PATH ===== */
.learning-path {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.05), rgba(131, 56, 236, 0.05));
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.learning-path::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color), transparent, var(--accent-color));
  border-radius: 24px;
  z-index: -1;
  opacity: 0.3;
}

.lp-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-step {
  background: var(--card-background);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

.lp-step:hover {
  transform: translateY(-5px) rotateX(1deg);
  box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.12);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.lp-step:hover .step-number::before {
  transform: translateX(100%);
}

.lp-step h4 {
  margin: 0;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 700;
}

.lp-step p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.inline-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.3);
}

.inline-link.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== DEMO ACADEMIA SECTION ===== */
.guide {
  background: var(--background-color);
  position: relative;
}

.guide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(131, 56, 236, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.iframe-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #000;
  margin-bottom: 6rem;
}

.iframe-wrap::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.demo-placeholder-content {
  max-width: 400px;
  padding: 2rem;
}

.demo-placeholder-content i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}

.demo-placeholder-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.demo-placeholder-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ===== EFECTOS DE PARALLAX Y 3D ===== */
.service-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .learning-path {
    padding: 2rem 1.5rem;
    margin-top: 3rem;
  }
  
  .lp-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .demo-placeholder-content {
    padding: 1.5rem;
  }
  
  .demo-placeholder-content i {
    font-size: 3rem;
  }
  
  .demo-placeholder-content h3 {
    font-size: 1.5rem;
  }
}

/* ===== MODO DARK ESPECÍFICO ===== */
.dark .service-card {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dark .learning-path {
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.08), rgba(131, 56, 236, 0.08));
}

.dark .lp-step {
  border-color: rgba(255, 255, 255, 0.06);
}

/* ===========================
   ¿QUÉ OFRECEMOS? — SKINS
   =========================== */

/* ---------- TEORÍA: cuaderno académico (papel rayado + “perforaciones”) ---------- */
.service-card--theory {
  background:
    /* banda superior tipo cuaderno */
    linear-gradient(180deg, rgba(0,0,0,.0) 0 44px, transparent 44px) padding-box,
    var(--card-background);
  box-shadow: var(--theory-shadow);
  border-color: rgba(218, 165, 32, .25);
  position: relative;
}
.service-card--theory::before {
  /* Papel rayado */
  content: "";
  position: absolute; inset: 44px 0 0 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.04) 0 26px,
      rgba(218,165,32,.12) 26px 27px
    );
  pointer-events: none;
}
.service-card--theory::after {
  /* Taladro de anillas a la izquierda */
  content: "";
  position: absolute; top: 54px; bottom: 16px; left: 14px; width: 16px;
  background:
    radial-gradient(circle at 8px 10px, rgba(0,0,0,.6) 0 3px, transparent 3.5px) 0 0/16px 36px repeat-y;
  opacity: .7; filter: drop-shadow(0 1px 0 rgba(255,255,255,.05));
  pointer-events: none;
}
.service-card--theory .service-icon {
  background: var(--theory-gradient);
  box-shadow: 0 10px 24px rgba(218,165,32,.25);
}
.service-card--theory h3, .service-card--theory p { color: #f7e8c3; }
.dark .service-card--theory h3, .dark .service-card--theory p { color: #ffefbf; }
.service-card--theory:hover { box-shadow: 0 28px 60px rgba(218,165,32,.22); }

/* ---------- LABS: “glass lab” (panel de vidrio, rejilla y burbujas animadas) ---------- */
.service-card--lab {
  background: linear-gradient(135deg, rgba(0,255,255,.08), rgba(0,128,128,.06)) border-box;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,255,255,.22);
  box-shadow: var(--lab-shadow);
  position: relative;
  overflow: hidden;
}
.service-card--lab::before {
  /* Rejilla sutil */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,255,255,.08) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(to bottom, rgba(0,255,255,.08) 1px, transparent 1px) 0 0/28px 28px;
  opacity: .35; pointer-events: none;
}
.service-card--lab::after {
  /* Burbujas ascendentes */
  content: "";
  position: absolute; inset: -20% -10% -20% -10%;
  background:
    radial-gradient(10px 10px at 10% 90%, rgba(64,224,208,.35) 40%, transparent 45%),
    radial-gradient(8px 8px at 30% 95%, rgba(0,255,255,.30) 40%, transparent 45%),
    radial-gradient(14px 14px at 60% 100%, rgba(0,255,255,.25) 40%, transparent 45%),
    radial-gradient(9px 9px at 85% 92%, rgba(64,224,208,.30) 40%, transparent 45%);
  animation: wvl-bubbles 8s linear infinite;
  pointer-events: none; opacity: .8;
}
@keyframes wvl-bubbles {
  from { transform: translateY(0); }
  to   { transform: translateY(-22%); }
}
.service-card--lab .service-icon {
  background: var(--lab-gradient);
  box-shadow: 0 10px 24px rgba(0,255,255,.25);
}
.service-card--lab h3, .service-card--lab p { color: #c9fbff; }
.service-card--lab:hover { box-shadow: 0 28px 60px rgba(0,255,255,.18); }

/* ---------- CTF: neon + scanlines + glitch ---------- */
.service-card--ctf {
  background: radial-gradient(120% 160% at 20% -20%, rgba(255,20,147,.14), transparent 60%),
              radial-gradient(120% 160% at 120% 120%, rgba(138,43,226,.18), transparent 60%),
              var(--card-background);
  border-color: rgba(255,20,147,.28);
  box-shadow: var(--ctf-shadow);
  position: relative;
}
.service-card--ctf::before {
  /* Scanlines */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient( to bottom, rgba(255,255,255,.05), rgba(255,255,255,.05) 1px, transparent 2px, transparent 4px );
  opacity: .3; mix-blend-mode: overlay; pointer-events: none;
}
.service-card--ctf .service-icon {
  background: var(--ctf-gradient);
  box-shadow: 0 10px 24px rgba(255,20,147,.28);
}
.service-card--ctf:hover {
  animation: wvl-glitch-card .9s steps(2, jump-none) infinite;
  box-shadow: 0 34px 80px rgba(255,20,147,.25);
}
@keyframes wvl-glitch-card {
  0%   { transform: translateY(-8px) rotateX(2deg) rotateY(1deg); }
  20%  { transform: translateY(-9px) skewX(0.6deg); }
  40%  { transform: translateY(-7px) skewX(-0.6deg); }
  60%  { transform: translateY(-9px) skewY(0.6deg); }
  80%  { transform: translateY(-7px) skewY(-0.6deg); }
  100% { transform: translateY(-8px) rotateX(2deg) rotateY(1deg); }
}
.service-card--ctf h3 {
  text-shadow:
    0 0 10px rgba(255,20,147,.6),
    0 0 18px rgba(138,43,226,.5);
}
.service-card--ctf:hover h3 {
  animation: wvl-glitch-text .7s steps(2, jump-none) infinite;
}
@keyframes wvl-glitch-text {
  0%,100% { transform: translate(0); }
  20% { transform: translate(-1px, 0.5px); }
  40% { transform: translate(1px, -0.5px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}
/* El overlay “coming soon” existente mantiene prioridad */
.service-card--ctf .ctf-overlay { pointer-events: none; }

/* ---------- Accesibilidad / rendimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .service-card--lab::after,
  .service-card--ctf:hover,
  .service-card--ctf:hover h3 {
    animation: none !important;
  }
}

/* ===== RUTA (SVG) + VEHÍCULO ===== */
.lp--route { position: relative; overflow: hidden; }
.lp-route { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lp-route #lpPath {
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 4;
  stroke-linecap: round;
  filter: url(#glow-route);
}
.dark .lp-route #lpPath { mix-blend-mode: screen; }

/* Fondo “mapa” sutil */
.lp--route::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.04) 0 1px, transparent 1px 28px);
  opacity:.35; mix-blend-mode: overlay;
}

/* ===== Containers temática “ruta” y estados ===== */
.lp--route .lp-steps { position: relative; z-index: 2; }

/* Ocultos hasta que el coche llegue al waypoint */
.lp--route .lp-step{ opacity: 0; transform: translateY(12px) scale(.98); }
.lp--route .lp-step.is-active{
  opacity: 1; transform: none;
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}

/* Look “señal de carretera” sin romper tu diseño */
.lp--route .lp-step{
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.lp--route .step-number{
  width:54px; height:54px; font-weight:800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color:#fff; display:flex; align-items:center; justify-content:center;
  clip-path: polygon(50% 0%, 80% 12%, 100% 40%, 100% 70%, 80% 88%, 50% 100%, 20% 88%, 0% 70%, 0% 40%, 20% 12%);
  box-shadow: 0 6px 18px rgba(var(--primary-color-rgb), .25);
}

/* ===== RUTA DISCONTINUA + PARADAS DISCRETAS ===== */
.lp-route { position:absolute; inset:0; z-index:1; pointer-events:none; }
.lp-route #lpPath{
  fill:none;
  stroke: rgba(255,255,255,.22);
  stroke-width:4;
  stroke-linecap:round;
  stroke-dasharray: 12 10;          /* línea discontinua */
  filter: url(#glow-route);
}
.dark .lp-route #lpPath{ mix-blend-mode: screen; }

/* Vehículo: el WRAPPER lo mueve anime; el punto (lp-dot) se centra con -50% */
.lp-vehicle{ position:absolute; top:0; left:0; width:0; height:0; z-index:3; }
.lp-vehicle .lp-dot{
  position:absolute; top:0; left:0;
  width:14px; height:14px; border-radius:50%;
  transform: translate(-50%, -50%);
  background: var(--accent-color, #ff0f6e);
  box-shadow:
    0 0 14px rgba(var(--primary-color-rgb, 99,102,241), .85),
    0 0 28px rgba(255,15,110,.25);
}

/* Paradas discretas (pins muy sutiles) */
.lp-stop{
  position:absolute; width:9px; height:9px; transform: translate(-50%, -50%);
  border-radius:50%;
  background: rgba(255,255,255,.5);
  box-shadow: 0 0 0 2px rgba(255,255,255,.2);
  z-index:2; opacity:.75;
}
.lp-stop::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  border:1px dashed rgba(255,255,255,.2);
}

/* Estados de aparición de los containers (por si no lo tenías ya) */
.lp--route .lp-step{ opacity:0; transform: translateY(12px) scale(.98); }
.lp--route .lp-step.is-active{
  opacity:1; transform:none;
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}

/* ===== Botón Siguiente (estilo pill acorde con la web) ===== */
.lp-next{
  display:inline-flex; align-items:center; gap:.5rem;
  margin-top:1rem; padding:.72rem 1rem; border-radius:999px;
  background: linear-gradient(135deg, var(--primary-color, #7c3aed), var(--secondary-color, #0ea5e9));
  color:#fff; font-weight:700; letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  cursor:pointer; user-select:none;
}
.lp-next__hint{ opacity:.8; font-weight:600; font-size:.9rem; }
.lp-next:hover{ filter: brightness(1.05); transform: translateY(-1px); }
.lp-next:active{ transform: translateY(0); }
.lp-next:disabled{
  opacity:.6; cursor:not-allowed; transform:none; filter:none;
}

.lp-route { position:absolute; inset:0; z-index:1; pointer-events:none; }
.lp-route #lpPath{
  fill:none;
  stroke: rgba(255,255,255,.22);
  stroke-width:4;
  stroke-linecap:round;
  stroke-dasharray:12 10;     /* línea discontinua */
  filter:url(#glow-route);
}

/* El wrapper lo mueve anime; la bolita se centra dentro (sin que anime sobrescriba) */
.lp-vehicle{ position:absolute; top:0; left:0; width:0; height:0; z-index:3; transform-origin:0 0; will-change:transform; }
.lp-vehicle .lp-dot{
  position:absolute; top:0; left:0;
  width:14px; height:14px; border-radius:50%;
  transform: translate(-50%, -50%);
  background: var(--accent-color, #ff0f6e);
  box-shadow: 0 0 14px rgba(var(--primary-color-rgb, 99,102,241), .85), 0 0 28px rgba(255,15,110,.25);
}

/* Paradas discretas (pins muy sutiles) */
.lp-stop{
  position:absolute; width:8px; height:8px; transform: translate(-50%, -50%);
  border-radius:50%;
  background: rgba(255,255,255,.55);
  box-shadow:0 0 0 2px rgba(255,255,255,.18);
  z-index:2; opacity:.8;
}
.lp-stop::after{ content:""; position:absolute; inset:-6px; border-radius:50%; border:1px dashed rgba(255,255,255,.22); }

/* Oculta SIEMPRE los pasos hasta que JS marque is-active (↑ especificidad) */
.lp--route .lp-steps > .lp-step{ opacity:0; transform: translateY(12px) scale(.98); pointer-events:none; }
.lp--route .lp-steps > .lp-step.is-active{
  opacity:1; transform:none; pointer-events:auto;
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}

/* Botón “Siguiente” flotante (fuera de los containers) */
.lp-next{
  position:absolute; bottom:18px; left:18px; z-index:4;
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.72rem 1rem; border-radius:999px;
  background: linear-gradient(135deg, var(--primary-color, #7c3aed), var(--secondary-color, #0ea5e9));
  color:#fff; font-weight:700; letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  cursor:pointer; user-select:none;
}
.lp-next__hint{ opacity:.9; font-weight:600; font-size:.9rem; }
.lp-next:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.lp-next:active{ transform:none; }
.lp-next:disabled{ opacity:.6; cursor:not-allowed; }
/* Deja aire para el botón y evita solapes con las cards */
.learning-path.lp--route{ padding-bottom:5.5rem; }

/* La ruta por encima del background y con más contraste (pero sin bloquear clics) */
.lp-route{ z-index:2; pointer-events:none; }
.lp--route .lp-steps{ z-index:1; }     /* cards por debajo de la línea */
.lp-vehicle{ z-index:3; }              /* bola siempre arriba */

/* Botón: evita solape con cards (ya queda en la “banda” inferior) */
.lp-next{ bottom:18px; left:18px; }
.learning-path > h3,
.learning-path > p:first-of-type{
  position: relative;
  z-index: 5;
}

/* Orden de capas dentro de la ruta */
.lp-route{ z-index: 1; pointer-events: none; } /* línea debajo */
.lp--route .lp-steps{ z-index: 2; }            /* cards encima */
.lp-stop{ z-index: 3; pointer-events: none; }  /* pins sobre línea */
.lp-vehicle{ z-index: 4; }                     /* bola, lo más alto */

/* Mejora de capas para la ruta/steps (por si no lo tienes ya) */
.learning-path > h3,
.learning-path > p:first-of-type { position: relative; z-index: 5; }
.lp-route{ z-index:1; pointer-events:none; }
.lp--route .lp-steps{ z-index:2; }
.lp-stop{ z-index:3; pointer-events:none; }
.lp-vehicle{ z-index:4; }

/* Los steps activos dejan de ser traslúcidos y aplican glass blur */
.lp--route .lp-step { will-change: transform, opacity, backdrop-filter, filter; }

.lp--route .lp-step.is-active{
  background: rgba(8,12,24,.88);                  /* opaco en navegadores sin backdrop-filter */
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 44px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background .25s ease, box-shadow .25s ease, filter .25s ease;
}

/* Si hay soporte, usa glass real */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .lp--route .lp-step.is-active{
    background: rgba(8,12,24,.56);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
  }
}

/* Overlay más denso y con soporte Safari */
.service-card--ctf .ctf-overlay{
  z-index: 5;                     /* por encima de todo en la card */
  background: rgba(8,10,20,.55);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  pointer-events: none;           /* ya lo tenías; mantenemos acceso bloqueado visualmente */
}

/* Difumina TODO el contenido de la card que queda bajo el overlay */
.service-card--ctf .ctf-overlay ~ *{
  filter: blur(2.2px) brightness(.85);
  transform: translateZ(0);       /* capa propia -> blur nítido */
}

/* Overlay copy un poco más legible */
.service-card--ctf .ctf-overlay .ctf-overlay-content{
  text-shadow: 0 6px 22px rgba(0,0,0,.45);
}
/* Orden de capas dentro de la ruta */
.learning-path { position: relative; }

.lp-route{ 
  position:absolute; inset:0;
  z-index: 0;            /* Línea, lo más bajo */
  pointer-events:none;
}

.lp-stop{
  position:absolute; 
  width:8px; height:8px; transform:translate(-50%,-50%);
  border-radius:50%;
  background: rgba(255,255,255,.55);
  box-shadow:0 0 0 2px rgba(255,255,255,.18);
  z-index: 1;            /* Pins por DEBAJO de las tarjetas */
  pointer-events:none;
}

.lp--route .lp-steps{
  position: relative;    /* crea stacking context para z-index */
  z-index: 2;            /* Tarjetas por encima de pins y ruta */
}

.lp-vehicle{ 
  position:absolute; top:0; left:0; 
  z-index: 3;            /* Bola siempre encima */
}

/* Título/subtítulo por encima de todo lo anterior */
.learning-path > h3,
.learning-path > p:first-of-type{
  position: relative;
  z-index: 4;
}

/* ===========================
   Mejora de "¿Qué ofrecemos?" en MODO CLARO
   (cuando <html> NO tiene la clase .dark)
   =========================== */

html:not(.dark) .service-card{
  border-color: rgba(0,0,0,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
html:not(.dark) .service-card h3,
html:not(.dark) .service-card p{
  color: var(--text-color);       /* evita textos amarillentos o muy claros */
  opacity: .95;
}

/* Chips y badges con borde legible en claro */
html:not(.dark) .chip{ border-color: rgba(0,0,0,.12); }
html:not(.dark) .badge{
  background: rgba(0,0,0,.035);
  border-color: rgba(0,0,0,.08);
  color: var(--text-color);
}

/* ---------- Skin TEORÍA ---------- */
html:not(.dark) .service-card--theory{
  border-color: rgba(218,165,32,.35);
  box-shadow: 0 12px 36px rgba(218,165,32,.12);
}
html:not(.dark) .service-card--theory::before{
  /* líneas del “papel” visibles en claro */
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.035) 0 26px,
      rgba(218,165,32,.16) 26px 27px
    );
}
html:not(.dark) .service-card--theory::after{
  /* perforaciones con sombra oscura suave */
  background:
    radial-gradient(circle at 8px 10px, rgba(0,0,0,.35) 0 3px, transparent 3.6px)
    0 0/16px 36px repeat-y;
  opacity: .55;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.06));
}
/* anula el texto crema del skin en claro */
html:not(.dark) .service-card--theory h3,
html:not(.dark) .service-card--theory p{ color: var(--text-color); }

/* ---------- Skin LABS (glass/grid) ---------- */
html:not(.dark) .service-card--lab{
  border-color: rgba(0,128,128,.35);
  background: linear-gradient(135deg, rgba(0,128,128,.06), rgba(0,191,255,.04)) border-box;
}
html:not(.dark) .service-card--lab::before{
  /* rejilla un poco más contrastada en claro */
  background:
    linear-gradient(to right, rgba(0,128,128,.12) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(to bottom, rgba(0,128,128,.12) 1px, transparent 1px) 0 0/28px 28px;
  opacity: .45;
}
html:not(.dark) .service-card--lab h3,
html:not(.dark) .service-card--lab p{ color: var(--text-color); }

/* ---------- Skin CTF (scanlines/neón) ---------- */
html:not(.dark) .service-card--ctf::before{
  /* scanlines oscuras para que se vean en fondo claro */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.06), rgba(0,0,0,.06) 1px,
    transparent 2px, transparent 4px
  );
  opacity: .35;
}
html:not(.dark) .service-card--ctf h3{
  /* neón más sutil sobre claro (mejor legibilidad) */
  text-shadow:
    0 0 8px rgba(255,20,147,.35),
    0 0 14px rgba(138,43,226,.25);
}
/* overlay "Próximamente" legible sobre claro */
html:not(.dark) .service-card--ctf .ctf-overlay{
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  backdrop-filter: blur(8px) saturate(110%);
  color: var(--text-color);
}