:root {
    --primary-color: #6556b7;
    --primary-glow: rgba(101, 86, 183, 0.5);
    --bg-dark: #050510;
    --card-bg: rgba(17, 17, 25, 0.7);
    --text-main: #ffffff;
    --text-dim: #b0b0bb;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-dim);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* NAV */
.header__box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header__ul {
    display: flex;
    list-style: none;
    position: relative;
    gap: 40px;
}

.ul__list {
    padding: 10px;
}

.list__link {
    color: #fff;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    font-size: 1.6rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.link--active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.list__link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.link--tienda:hover {
    border: 1px solid #6556b7;
}

/* Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:995px) {
    .header__box {
        display: none;
    }
}

/* Navegación tlf*/

.menu-container {
    position: absolute;
    z-index: 1000;
}

.menu-label {
    display: none;
}

.menu-label input[type="checkbox"] {
    display: none;
}

.hidden-buttons {
    display: none;
    margin-top: 10px;
}

.header__ul--tlf {
    min-width: 16rem;
    padding: 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(17, 17, 25, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 40;
}

.list__link--tlf {
    color: #fff;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}

.link--active-tlf {
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.list__link--tlf:hover {
    padding-left: 10px;
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
}

@media(max-width:995px) {
    .menu-container {
        position: absolute;
        padding: 15px 10px;
        z-index: 10;
    }

    .menu-label {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }

    .menu-label input[type="checkbox"] {
        display: none;
    }

    .icon-box {
        width: 1.5rem;
        color: #aaa;
        height: 1.60rem;
        border: 1px solid #fff;
        background-color: #222;
        border-radius: 4px;
        scale: 2;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
        transition: all 0.3s;
        margin: 10px 10px;
    }

    .menu-label input[type="checkbox"]:checked+.icon-box {
        border-color: #6556b7;
    }

    .menu-label input[type="checkbox"]:checked+.icon-box i {
        color: white;
    }

    .hidden-buttons {
        display: none;
        margin-top: 10px;
    }

    .menu-label input[type="checkbox"]:checked~.hidden-buttons {
        position: absolute;
        top: 60px;
        left: 20px;
        display: flex;
        flex-flow: column wrap;
        transform: scale(1.2);
        transform-origin: top left;
        z-index: 20;
    }
}

/* Services Section */

.services-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-title {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-subtitle {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(101, 86, 183, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #6556b7;
    box-shadow: 0 15px 40px rgba(101, 86, 183, 0.3);
}

.card-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border: 2px solid #333;
    border-radius: 50%;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    z-index: 2;
}

.card-icon i {
    font-size: 4.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    border-color: #6556b7;
}

.service-card h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    z-index: 2;
}

.service-card p {
    font-size: 1.6rem;
    color: #aaa;
    line-height: 1.6;
    z-index: 2;
}

/* Service specific colors */

.web .card-icon {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.web .card-icon i {
    color: #60a5fa;
}

.web:hover {
    border-color: #3b82f6;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.discord .card-icon {
    background: linear-gradient(135deg, #4752C4, #5865F2);
}

.discord .card-icon i {
    color: #7289da;
}

.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.3);
}

.editing .card-icon {
    background: linear-gradient(135deg, #be123c, #e11d48);
}

.editing .card-icon i {
    color: #f87171;
}

.editing:hover {
    border-color: #e11d48;
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.3);
}

/* Responsive */

@media(max-width: 768px) {
    .services-title {
        font-size: 3.5rem;
    }

    .services-subtitle {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .card-icon {
        width: 80px;
        height: 80px;
    }

    .card-icon i {
        font-size: 3.5rem;
    }

    .service-card h3 {
        font-size: 2rem;
    }

    .service-card p {
        font-size: 1.4rem;
    }
}

/* --- New Visual Additions --- */
/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #6556b7, #a48de9);
    z-index: 10000;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s ease;
}

/* Particles Container */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-dark);
}