        :root {
            --deep-blue: #0a1f38;
            --electric-blue: #0066ff;
            --vibrant-orange: #ff6b00;
            --soft-orange: #ffb76b;
            --pure-white: #ffffff;
            --glass-white: rgba(255, 255, 255, 0.85);
            --dark-text: #1a1a1a;
            --light-text: #f5f5f7;
            --section-gray: #f8f9fa;
            --dark-bg: #121212;
            --dark-text-light: #e0e0e0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            font-weight: 400; /* Regular for body text */
            background-color: var(--pure-white);
            color: var(--dark-text);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background-color 0.3s, color 0.3s;
        }

        body.dark-mode {
            background-color: var(--dark-bg);
            color: var(--dark-text-light);
            font-family: 'Montserrat', sans-serif;
            font-weight: 400;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 6rem 0;
            position: relative;
        }

        .gradient-text {
            background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-orange) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
            text-shadow: 0 0 10px rgba(255, 107, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.3);
            font-family: 'Montserrat', sans-serif;
            font-weight: 700; /* Bold for titles */
        }

        .top-bar {
            background: linear-gradient(90deg, var(--deep-blue) 0%, #122b4d 100%);
            color: var(--light-text);
            padding: 0.6rem 0;
            font-size: 0.9rem;
            position: relative;
            z-index: 100;
        }

        .top-bar::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
        }

        .top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar-info {
            display: flex;
            gap: 1.5rem;
        }

        .top-bar-info span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .top-bar-social a {
            color: var(--light-text);
            margin-left: 1rem;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .top-bar-social a:hover {
            color: var(--vibrant-orange);
            transform: translateY(-2px);
        }

        /* Header principal */
        header {
            background-color: rgba(10, 31, 56, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 99;
            transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
            padding: 0;
        }

        .header-inner {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 0.8rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            font-size: 1.5rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 700; /* Bold for logo */
            color: var(--pure-white);
            position: absolute;
            top: 2.5rem;
            left: 2rem;
            z-index: 100;
        }

        .logo img {
            height: auto;
            max-height: 5rem;
            width: auto;
            max-width: 200px;
            margin-right: 0;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
        }

        .hamburger {
            display: none;
            background: none;
            border: none;
            color: var(--pure-white);
            font-size: 1.8rem;
            cursor: pointer;
            z-index: 101;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-menu li {
            margin-left: 2rem;
        }

        .nav-menu li a {
            color: var(--pure-white);
            text-decoration: none;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for subtitles */
            font-size: 1.05rem;
            padding: 0.5rem 0;
            position: relative;
            transition: all 0.3s ease;
        }

        .nav-menu li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--electric-blue) 0%, var(--vibrant-orange) 100%);
            transition: width 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
        }

        .nav-menu li a:hover::after {
            width: 100%;
        }

        .btn-nav {
            background: linear-gradient(135deg, var(--vibrant-orange) 0%, var(--soft-orange) 100%);
            color: var(--pure-white);
            padding: 0.7rem 1.5rem;
            border-radius: 2rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for buttons */
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
        }

        .btn-nav:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
        }

        /* Enhanced Hero Section */
        #hero {
            position: relative;
            background: linear-gradient(rgba(10, 31, 56, 0.85), rgba(10, 31, 56, 0.9)), url('../img/convoca.jpg') no-repeat center center/cover;
            background-attachment: fixed;
            height: 100vh;
            min-height: 800px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--pure-white);
            overflow: hidden;
            background-position: center;
            will-change: transform;
        }

        #hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(255, 107, 0, 0.2));
            animation: gradientPulse 10s ease-in-out infinite;
            z-index: 0;
        }

        @keyframes gradientPulse {
            0%, 100% { opacity: 0.2; }
            50% { opacity: 0.4; }
        }

        #hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--deep-blue);
            opacity: 0.1;
            z-index: -1;
        }

        .hero-content {
            max-width: 800px;
            padding: 0 2rem;
            position: relative;
            z-index: 1;
            margin-top: -12rem;
        }

        .title-image {
            width: 80%;
            max-width: 800px;
            height: auto;
            margin-bottom: 1rem;
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
        }

        #hero h1 {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-family: 'Montserrat', sans-serif;
            font-weight: 700; /* Bold for titles */
            margin-bottom: 1rem;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .hero-tagline {
            font-size: clamp(1rem, 3vw, 1.3rem);
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 400; /* Regular for body text */
        }

        .animate-text {
            opacity: 0;
            transform: translateY(20px);
            animation: runFadeInUp 1.2s ease forwards;
        }

        .animate-text:nth-child(1) { animation-delay: 0.2s; }
        .animate-text:nth-child(2) { animation-delay: 0.4s; }

        @keyframes runFadeInUp {
            0% { opacity: 0; transform: translateY(20px); }
            50% { transform: translateY(-5px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .countdown {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 2rem 0;
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            font-family: 'Montserrat', sans-serif;
            font-weight: 400; /* Regular for body text */
            color: var(--soft-orange);
        }

        .countdown span {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            min-width: 3rem;
            text-align: center;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for emphasis */
            color: var(--vibrant-orange);
        }

        .btn-hero {
            background: linear-gradient(135deg, var(--vibrant-orange) 0%, var(--soft-orange) 100%);
            color: var(--pure-white);
            padding: 1.1rem 2.5rem;
            border-radius: 2.5rem;
            text-decoration: none;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for buttons */
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
            box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
            position: relative;
            overflow: hidden;
        }

        .btn-hero:hover {
            transform: translateX(5px);
            box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6);
        }

        .btn-hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.4s ease;
        }

        .btn-hero:hover::after {
            left: 100%;
        }

        .pulse {
            animation: pulse 2s infinite ease-in-out;
        }

        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.6); }
            100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4); }
        }

        .footprint-trail {
            position: absolute;
            bottom: 10%;
            left: 0;
            width: 100%;
            height: 50px;
            z-index: 1;
            pointer-events: none;
        }

        #particle-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        #about {
            background-color: var(--section-gray);
        }

        .convocatoria-section {
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .convocatoria-menu {
            flex: 1;
            min-width: 250px;
            background-color: var(--pure-white);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 2rem;
            height: fit-content;
            overflow: hidden;
        }

        .menu-toggle {
            display: none;
            background: linear-gradient(135deg, var(--electric-blue) 0%, var(--vibrant-orange) 100%);
            color: var(--pure-white);
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 12px 12px 0 0;
            font-size: 1.1rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for buttons */
            width: 100%;
            text-align: left;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .menu-toggle i {
            float: right;
            transition: transform 0.3s ease;
        }

        .menu-toggle.active i {
            transform: rotate(180deg);
        }

        .convocatoria-menu ul {
            list-style: none;
            display: block;
            max-height: 1000px;
            transition: max-height 0.3s ease, opacity 0.3s ease;
            opacity: 1;
        }

        .convocatoria-menu ul.collapsed {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
        }

        .convocatoria-menu li {
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .convocatoria-menu a {
            display: block;
            padding: 1.2rem 1.5rem;
            text-decoration: none;
            color: var(--dark-text);
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for subtitles */
            font-size: 1rem;
            transition: all 0.3s ease;
            min-height: 44px;
            line-height: 1.5;
        }

        .convocatoria-menu a:hover,
        .convocatoria-menu a.active {
            background-color: var(--electric-blue);
            color: var(--pure-white);
            transform: translateX(5px);
        }

        .convocatoria-menu a[aria-current="page"] {
            background-color: var(--vibrant-orange);
            color: var(--pure-white);
        }

        .convocatoria-content {
            flex: 3;
            min-width: 300px;
            background-color: var(--pure-white);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            padding: 2.5rem;
            position: relative;
        }

        .convocatoria-content h2 {
            font-size: clamp(1.5rem, 4vw, 1.8rem);
            font-family: 'Montserrat', sans-serif;
            font-weight: 700; /* Bold for titles */
            color: var(--deep-blue);
            margin-bottom: 1.5rem;
            scroll-margin-top: 2rem;
        }

        .convocatoria-content p {
            margin-bottom: 1rem;
            font-size: clamp(0.9rem, 2.5vw, 1rem);
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .convocatoria-content ul {
            list-style: none;
            margin-bottom: 1rem;
            padding-left: 1rem;
        }

        .convocatoria-content ul li {
            position: relative;
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            font-size: clamp(0.9rem, 2.5vw, 1rem);
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .convocatoria-content ul li::before {
            content: '\f058';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--vibrant-orange);
        }

        .convocatoria-content table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 1.5rem;
        }

        .convocatoria-content th,
        .convocatoria-content td {
            padding: 0.75rem;
            border: 1px solid rgba(0, 0, 0, 0.1);
            text-align: left;
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .convocatoria-content th {
            background-color: var(--electric-blue);
            color: var(--pure-white);
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for subtitles */
        }

        .responsive-card {
            display: none;
            background: var(--glass-white);
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease;
        }

        .responsive-card:hover {
            transform: translateY(-2px);
        }

        .responsive-card h4 {
            font-size: 1.1rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600; /* SemiBold for subtitles */
            color: var(--deep-blue);
            margin-bottom: 0.5rem;
        }

        .responsive-card p {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .route-container {
            margin-bottom: 2rem;
        }

        .route-container img {
            max-width: 100%;
            height: auto;
            display: block;
            margin-top: 1rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .progress-container {
            position: sticky;
            top: 0;
            width: 100%;
            height: 4px;
            background: rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .progress-bar {
            height: 4px;
            background: linear-gradient(90deg, var(--electric-blue) 0%, var(--vibrant-orange) 100%);
            width: 0;
            transition: width 0.3s ease;
        }

        .back-to-top {
            display: none;
            position: fixed;
            bottom: 2rem;
            right: 1rem;
            background: linear-gradient(135deg, var(--vibrant-orange) 0%, var(--soft-orange) 100%);
            color: var(--pure-white);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            text-align: center;
            line-height: 50px;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
        }

        .theme-toggle {
            position: fixed;
            top: 1rem;
            right: 1rem;
            background: var(--deep-blue);
            color: var(--pure-white);
            border: none;
            padding: 0.5rem;
            border-radius: 50%;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background: var(--vibrant-orange);
        }

        .language-toggle {
            position: fixed;
            top: 4rem;
            right: 1rem;
            background: var(--deep-blue);
            color: var(--pure-white);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            font-weight: 400; /* Regular for body text */
        }

        .language-toggle:hover {
            background: var(--vibrant-orange);
        }

        footer {
            background: linear-gradient(135deg, var(--deep-blue) 0%, #122b4d 100%);
            color: var(--pure-white);
            padding: 5rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-column h3 {
            font-size: 1.3rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 700; /* Bold for titles */
            margin-bottom: 1.5rem;
            color: var(--pure-white);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: all 0.3s ease;
            font-family: 'Montserrat', sans-serif;
            font-style: italic; /* Italic for details */
            font-weight: 400;
        }

        .footer-links a:hover {
            color: var(--vibrant-orange);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-family: 'Montserrat', sans-serif;
            font-weight: 400; /* Regular for body text */
        }

        @media (max-width: 768px) {
            .top-bar-content {
                flex-direction: column;
                gap: 0.8rem;
            }

            .hamburger {
                display: block;
            }

            .nav-menu {
                position: fixed;
                top: 106px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 106px);
                background: rgba(10, 31, 56, 0.98);
                flex-direction: column;
                align-items: center;
                padding: 3rem 0;
                transition: left 0.5s ease;
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-menu li {
                margin: 1rem 0;
            }

            #hero {
                background-attachment: scroll;
            }

            #hero h1 {
                font-size: clamp(2rem, 5vw, 2.8rem);
            }

            .hero-tagline {
                font-size: clamp(0.9rem, 3vw, 1.1rem);
            }

            .countdown {
                gap: 1rem;
            }

            .countdown span {
                padding: 0.4rem 0.8rem;
                min-width: 2.5rem;
            }

            .title-image {
                width: 90%;
            }

            .convocatoria-section {
                flex-direction: column;
                gap: 1rem;
            }

            .convocatoria-menu {
                position: relative;
                top: 0;
                min-width: 100%;
                box-shadow: none;
            }

            .menu-toggle {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .convocatoria-menu ul {
                max-height: 0;
                opacity: 0;
            }

            .convocatoria-menu ul.active {
                max-height: 1000px;
                opacity: 1;
            }

            .convocatoria-content {
                padding: 2rem;
                box-shadow: none;
            }

            .convocatoria-content table {
                display: none;
            }

            .responsive-card {
                display: block;
            }

            .back-to-top {
                display: block;
            }
        }

        @media (max-width: 400px) {
            .container {
                padding: 0 1rem;
            }

            .convocatoria-content {
                padding: 1.5rem;
            }

            .responsive-card h4 {
                font-size: 1rem;
            }

            .responsive-card p {
                font-size: 0.85rem;
            }
        }
