: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 - Copied from main styles for consistency */
.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);
}

/* 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;
    }
}

/* Mobile Nav */
.menu-container {
    position: absolute;
    z-index: 1000;
}

.menu-label input[type="checkbox"] {
    display: none;
}

.menu-label {
    display: none;
}

.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 {
        padding: 15px 10px;
    }

    .menu-label {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }

    .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: 10px;
    }

    .menu-label input[type="checkbox"]:checked+.icon-box {
        border-color: #6556b7;
        color: #fff;
    }

    .hidden-buttons {
        display: none;
        margin-top: 10px;
    }

    .menu-label input[type="checkbox"]:checked~.hidden-buttons {
        position: absolute;
        top: 60px;
        left: 20px;
        display: flex;
        flex-direction: column;
        /* Match flow */
        transform: scale(1.2);
        transform-origin: top left;
        /* EVITA QUE EL MENÚ SE SALGA DE LA PANTALLA A LA IZQUIERDA */
        z-index: 20;
    }
}


/* BLOG SECTION STYLES */

.blog-section {
    padding: 120px 20px;
    min-height: 100vh;
    background-color: #000;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-title {
    font-size: 4rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: #aaa;
    margin-bottom: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 1.4rem;
    color: #6556b7;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card p {
    font-size: 1.6rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #6556b7;
    text-decoration: underline;
}

/* Article Page Styles */
.article-section {
    padding: 120px 20px;
    min-height: 100vh;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.article-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    font-size: 1.5rem;
    color: #6556b7;
    font-weight: 500;
}

.article-body {
    font-size: 1.8rem;
    line-height: 1.8;
    color: #ddd;
}

.article-body h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #6556b7;
    border-radius: 50px;
    color: #6556b7;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #6556b7;
    color: #fff;
}

/* --- 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);
}