/*======================== ESTILOS GENERALES ========================*/
:root {
    --primary-color: #0D1936;
    --secondary-color: #535354;
    --background-color: #EFEFEF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --white-color: #FFF;
    --black-color: #000;
    --input-border-color: #E3E4E6;
    --transition-3s: 0.3s;
    --neon-blue: #07fdfd;
    --neon-purple: #f932f9;
    --neon-green-light: #07fdcc;
    --dark-bg-color: #0e202f;
    --darker-bg-color: #0D1936;
    --border-glow-blue: rgba(7, 253, 253, 0.7);
    --border-glow-purple: rgba(249, 50, 249, 0.7);
    --border-thin: 1px;
    --border-medium: 2px;
    --light-text-color: #e0e0e0;
    --gray-text-color: #b5b5b5; 
    --card-bg-color: #1a2a3a;
}

html {
    height: auto;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    align-items: center;
    overflow-x: visible;
    overflow-y: visible;
    position: relative;
    background-color: var(--dark-bg-color);
    background-size: 20px 20px;
    padding-bottom: 0;
}


main {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(200px);
    z-index: 1;
    opacity: 0.6;
}

.orb-blue {
    background: radial-gradient(circle, var(--neon-blue) 0%, rgba(7, 253, 253, 0.4) 60%);
    opacity: 0.7;
}
.orb-purple {
    background: radial-gradient(circle, var(--neon-purple) 0%, rgba(249, 50, 249, 0.4) 60%);
    opacity: 0.6;
}

.orb-1 {
    width: 800px;
    height: 800px;
    top: 100px;
    right: -250px;
}

.orb-2 {
    width: 900px;
    height: 900px;
    top: 700px;
    left: -300px;
}

.orb-3 {
    width: 700px;
    height: 700px;
    top: 1500px;
    right: -200px;
}

.orb-4 {
    width: 1000px;
    height: 1000px;
    top: 2200px;
    left: -350px;
    z-index: -1;
}

body::-webkit-scrollbar {
    width: 8px; 
}

body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #00bfff; 
    border-radius: 6px;
    border: 3px solid transparent; 
}

body::-webkit-scrollbar-track {
    border-right: 3px solid #0e202f; 
}

.main-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 150px;
    padding-bottom: 50px;
    flex-grow: 1;
}

header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 60px;
    left: 0;
    padding: 0 5%;
    z-index: 9999;
    box-sizing: border-box;
}

header img {
    width: 320px;
    height: auto;
    margin-top: 0;
    margin-left: 0;
}

nav {
    height: 65px;
    width: auto;
    top: 60px;
    right: 5%;
    left: auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;
    z-index: 9999;
    justify-content: space-between;
    background: #012949a2;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 5px 5px 10px #8585851c, inset -5px -5px 10px #8585851c;
}

nav a {
    position: relative;
    font-size: 1em;
    font-weight: 500;
    color: #4065eb;
    text-decoration: none;
    padding: 0 23px;
    z-index: 1;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--dark-bg-color);
}

nav a.active {
    color: #4065eb;
}

nav span {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
    background-color: #47e2e2;
    border-radius: 20px;
    transition: .5s ease;
    z-index: 0;
}

.nav-underline {
    position: absolute;
    top: 0;
    left: 0; 
    width: 0;
    height: 100%;
    background-color: #47e2e2;
    border-radius: 20px;
    transition: left 0.5s ease, width 0.5s ease;
    z-index: 0;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    max-width: 1000px;
    margin-bottom: 80px;
}

.hero-section h1 {
    font-size: 4em;
    color: #ffffff;
}

.hero-section p {
    font-size: 1.2em;
    color: var(--gray-text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 700px;
}

.call-to-action {
    background-color: #473170;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: none;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.call-to-action:hover {
    background-color: var(--neon-blue);
    color: var(--dark-bg-color);
    box-shadow: 0 0 10px var(--border-glow-blue), 0 0 20px var(--border-glow-blue);
}

.info-cards-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    padding: 0 20px;
}

.info-card {
    background-color: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 300px;
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent 0deg, transparent 90deg, var(--neon-blue) 90deg, var(--neon-purple) 180deg, transparent 180deg);
    opacity: 0.1;
    transform: rotate(0deg);
    animation: rotateCardBorder 8s linear infinite;
    z-index: 0;
}

@keyframes rotateCardBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-blue);
}

.card-icon-container {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3em;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    overflow: hidden;
}

.card-icon-container .fa-solid, .card-icon-container .bx {
    color: #fff;
    font-size: 30px;
}

.info-card h3 {
    font-size: 1.4em;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9em;
    color: #a3a3a3;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .info-cards-section {
        flex-direction: column;
        align-items: center;
    }
    .info-card {
        width: 80%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    header {
        top: 0;
        padding-top: 10px;
    }
    nav {
        width: 90%;
        top: 70px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
        justify-content: center;
        background: #012949a2;
    }
    nav a {
        padding: 10px 15px;
        flex-basis: 45%;
        text-align: center;
    }
    nav span {
        display: none;
    }
    .hero-section {
        padding: 10px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .call-to-action {
        padding: 10px 20px;
        font-size: 1em;
    }
    .main-container {
        padding-top: 180px;
    }
    .info-cards-section {
        gap: 15px;
    }
    .info-card {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header img {
        width: 120px;
    }
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 0.8em;
    }
}
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    z-index: 999;
}

.faq-column.left-column {
    border-right: 1px solid #4a4a6e;
    padding-right: 30px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-section-title {
    text-align: center;
    color: #07fdcc;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(7, 253, 204, 0.5);
}

.faq-item {
    background-color: #1a1a2e;
    border: 1px solid #3a3a5e;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background-color: #2a2a4a;
    color: #fff;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background-color: #3a3a5e;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 25px;
    background-color: #1a1a2e;
    color: #c0c0c0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer p {
    text-align: justify;
    margin-top: 5px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.faq-answer ul {
    margin: 15px 0 45px 20px;
    list-style-type: disc;
}

.faq-answer ul li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    .faq-column.left-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #4a4a6e;
        padding-bottom: 20px;
    }
}

/*======================== ESCENARIOS ========================*/

.scenarios-section {
    width: 100%;
    max-width: 1400px;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    color: var(--neon-green-light);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(7, 253, 204, 0.5);
    text-align: center;
}

.section-subtitle {
    color: var(--gray-text-color);
    font-size: 1.1em;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    background-color: rgba(142, 68, 173, 0.7);
    backdrop-filter: blur(4px);
}

.scenario-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.scenario-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-blue);
}

.scenario-image-container {
    position: relative;
    height: 180px;
}

.scenario-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.difficulty-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.difficulty-FA { background: linear-gradient(45deg, #2a9d8f, #28a745); }

.difficulty-IN { background: linear-gradient(45deg, #e9c46a, #ffc107); }

.difficulty-AV { background: linear-gradient(45deg, #f4a261, #e76f51); }

.difficulty-EX { background: linear-gradient(45deg, #e63946, #dc3545); }

.scenario-card-body {
    padding: 20px;
    flex-grow: 1;
}

.scenario-title {
    color: var(--light-text-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.scenario-description {
    color: var(--gray-text-color);
    font-size: 0.9em;
    line-height: 1.5;
}

.scenario-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0,0,0,0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    color: var(--gray-text-color);
    font-size: 0.85em;
}

.meta-item i {
    font-size: 1.2em;
    margin-right: 8px;
    color: var(--neon-blue);
}

.view-all-container {
    margin-top: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .scenario-cards-container {
        grid-template-columns: 1fr;
    }
}

/*======================== EVENTOS (CIBERSIMULACROS) ========================*/
.events-section {
    width: 100%;
    max-width: 1400px;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.events-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 9%;
    text-align: left;
}

.events-slider {
    width: 90%;
    max-width: 1200px;
    padding: 20px 0 50px 0;
}

.event-card {
    background: var(--card-bg-color);
    border-radius: 15px;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 480px;
    display: flex;
    flex-direction: column;
}

.event-card-image {
    height: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--card-bg-color) 20%, transparent 100%);
}

.event-card-content {
    padding: 25px;
    position: relative;
    margin-top: -50px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-difficulty {
    background: var(--neon-blue);
    color: var(--dark-bg-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    display: inline-block;
    margin-bottom: 15px;
}

.event-title {
    font-size: 1.6em;
    color: var(--light-text-color);
    margin-bottom: 10px;
}

.event-description {
    font-size: 0.9em;
    color: var(--gray-text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.events-slider .swiper-slide {
    width: 80%;
}

.event-meta {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-badge {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
}
.status-completed {
    background-color: #6b7280;
    color: #e5e7eb;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--neon-blue) !important;
}

.swiper-pagination-bullet-active {
    background: var(--neon-blue) !important;
}

.no-events-message {
    background-color: var(--card-bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.no-events-message i {
    font-size: 4em;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.no-events-message h3 {
    color: var(--light-text-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.no-events-message p {
    color: var(--gray-text-color);
    font-size: 1em;
}

/*======================== RANKINGS ========================*/

.rankings-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.ranking-container {
    margin-top: 50px;
}

/* Contenedor del Podio */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 60px;
}

.podium-card {
    background: var(--card-bg-color);
    border-radius: 15px 15px 0 0;
    padding: 20px;
    width: 220px;
    text-align: center;
    border-top: 4px solid;
    position: relative;
    transition: transform 0.3s ease;
}
.podium-card:hover {
    transform: translateY(-10px);
}

.podium-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}
.podium-rank .bxs-crown { color: #ffd700; }
.player-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 15px auto;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: var(--dark-bg-color);
    overflow: hidden;
}
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-name {
    color: var(--light-text-color);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 5px;
}
.player-score {
    color: var(--gray-text-color);
    font-size: 0.9em;
}

.rank-1 { 
    height: 300px;
    border-color: #ffd700;
    box-shadow: 0 0 30px #ffd700a0;
}
.rank-2 { 
    height: 260px;
    border-color: #c0c0c0;
}
.rank-3 {
    height: 230px;
    border-color: #cd7f32;
}

.ranking-list-title {
    color: var(--light-text-color);
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 20px;
}
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.ranking-list-item {
    display: flex;
    align-items: center;
    background: var(--card-bg-color);
    padding: 15px 25px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.ranking-list-item:hover {
    background-color: #1a2a3a;
}
.list-rank {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--gray-text-color);
    width: 40px;
}
.list-player-name {
    color: var(--light-text-color);
    flex-grow: 1;
    font-weight: 500;
}
.list-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 15px;
    vertical-align: middle;
}
.list-score {
    font-weight: 500;
    color: var(--neon-blue);
}

/*======================== MODAL ESCENARIOS ========================*/

.btn-details {
    background-color: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-block;
}

.btn-details:hover {
    background-color: var(--neon-blue);
    color: var(--dark-bg-color);
    box-shadow: 0 0 10px var(--border-glow-blue);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(13, 25, 54, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 95%;
    max-width: 1000px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--neon-blue);
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.modal-header img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

#modal-title {
    color: var(--light-text-color);
    font-size: 2em;
    margin: 0 0 15px 0;
}

.modal-meta { display: flex; flex-wrap: wrap; gap: 20px; }

.modal-meta .difficulty-badge { margin-bottom: 5px; }

#scenario-modal .modal-body > h4 {
    color: var(--neon-blue);
    font-size: 1.2em;
    margin: 20px 0 10px 0;
    border-left: 3px solid var(--neon-blue);
    padding-left: 10px;
    font-weight: 700;
}

#scenario-modal .markdown-content p {
    color: var(--gray-text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

#scenario-modal .markdown-content ul,
#scenario-modal .markdown-content ol {
    color: var(--gray-text-color);
    line-height: 1.7;
    list-style-position: inside;
    margin: 1rem 0 1rem 1.5rem;
}

#scenario-modal .markdown-content ul { list-style-type: disc; }
#scenario-modal .markdown-content ol { list-style-type: decimal; }

#scenario-modal .markdown-content li {
    margin-bottom: 0.5rem;
}

#scenario-modal .markdown-content strong {
    color: var(--light-text-color);
    font-weight: 700;
}

#scenario-modal .markdown-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3a3a5e;
    padding-bottom: 0.5rem;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-text-color);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.tab-link {
    background: none;
    border: none;
    color: var(--gray-text-color);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link.active {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.rotate-180 {
  transform: rotate(180deg);
}

.event-dates { list-style: none; padding-left: 0; }

.event-dates li { color: var(--gray-text-color); margin-bottom: 5px; }

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Helvetica', sans-serif;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.ranking-table thead th {
    background-color: rgba(30, 41, 59, 0.5);
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #374151;
    transition: background-color 0.2s ease-in-out;
}

.ranking-table tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

.ranking-table .rank-pos {
    font-size: 1.25rem;
    font-weight: bold;
    width: 60px;
    text-align: center;
    color: #cbd5e0;
}

.ranking-table .player-info {
    display: flex;
    align-items: center;
}

.ranking-table .player-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.ranking-table .player-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-gold,
.rank-silver,
.rank-bronze {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.rank-gold {
    border-left: 4px solid #f6e05e;
    box-shadow: inset 5px 0 15px -5px rgba(246, 224, 94, 0.3);
}
.rank-gold .rank-pos {
    color: #f6e05e;
}

.rank-silver {
    border-left: 4px solid #a0aec0;
    box-shadow: inset 5px 0 15px -5px rgba(160, 174, 192, 0.3);
}
.rank-silver .rank-pos {
    color: #a0aec0;
}

.rank-bronze {
    border-left: 4px solid #e9752f;
    box-shadow: inset 5px 0 15px -5px rgba(233, 117, 47, 0.3);
}

.rank-bronze .rank-pos {
    color: #e9752f;
}

.current-user-highlight {
    background-color: rgba(59, 130, 246, 0.15);
    border-left: 4px solid #3b82f6;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(55, 65, 81, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: rgba(71, 85, 105, 0.5);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-content.open {
  max-height: 500px; 
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.tab-pane h3{
    color: white;
    margin-bottom: 10px;
}

.tab-pane span{
    color: white;
}

.accordion-content p{
    color: white;
}

.accordion-header i{
    color: white;
}

/*========================  MARKDOWN ========================*/
.markdown-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.markdown-content ul,
.markdown-content ol {
    list-style-position: inside;
    margin-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content li p {
    margin-top: 0;
    margin-bottom: 0;
    display: inline;
}

.markdown-content li {
    margin-bottom: 0.75rem;
}

.markdown-content strong,
.markdown-content b {
    font-weight: 700;
    color: #ffffff;
}

.markdown-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3a3a5e;
    padding-bottom: 0.5rem;
}

.markdown-content strong {
    color: #ffffff;
}

/*======================== FOOTER ========================*/

.site-footer {
    position: relative;
    width: 100%;
    background-color: var(--primary-color);
    padding: 60px 20px 20px 20px;
    color: var(--gray-text-color);
    margin-top: 80px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    height: 1px;
    background-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--border-glow-blue);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column.about {
    flex-basis: 40%;
}

.footer-logo {
    width: 250px;
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--light-text-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--neon-blue);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul a {
    color: var(--gray-text-color);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-column ul a:hover {
    color: var(--neon-blue);
    padding-left: 5px;
}

.social-icons a {
    color: var(--gray-text-color);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.social-icons a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--border-glow-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85em;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-column.about {
        flex-basis: 100%;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.wrapper {
    position: relative;
    width: 800px;
    height: 500px;
    border-radius: 50px;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(13, 25, 54, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(7, 253, 253, 0.4), 0 0 25px rgba(249, 50, 249, 0.4);
    z-index: 10;
    margin-top: 50px;
    margin-bottom: 50px;
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.login__title {
    color: var(--light-text-color);
    font-size: 2.5em;
    line-height: 1.2em;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
}

.login-form {
    width: 70%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Espaciado entre input-box */
}

.input-box {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-field {
    width: 100%;
    height: 50px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text-color);
    padding: 0 20px 0 50px;
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    outline: none;
    transition: all var(--transition-3s) ease;
    box-shadow: inset 0 0 8px rgba(7, 253, 253, 0.2);
}

.input-field::placeholder {
    color: var(--gray-text-color);
}

.input-field:focus {
    border: 1px solid var(--neon-purple);
    box-shadow:
        inset 0 0 10px rgba(249, 50, 249, 0.3),
        0 0 15px rgba(249, 50, 249, 0.5);
}

.label {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: var(--gray-text-color);
    transition: 0.2s ease;
    cursor: text;
    font-size: 0.95em;
    pointer-events: none;
}

.input-field:focus ~ .label,
.input-field:valid ~ .label,
.input-field:not(:placeholder-shown) ~ .label {
    top: -15px; /* Ajustado para que no suba tanto */
    left: 20px;
    font-size: 15px; /* Tamaño de fuente para el label flotante */
    background-color: transparent; /* Fondo para el label flotante */
    color: var(--neon-blue);
    padding: 0 5px; /* Padding para el label flotante */
    border-radius: 5px;
    z-index: 1;
}

.input-box .icon,
.input-box .toggle-password {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 3px var(--neon-blue));
    z-index: 2;
}

.input-box .toggle-password {
    left: unset;
    right: 20px;
    cursor: pointer;
    filter: drop-shadow(0 0 3px var(--neon-purple));
}

.input-box .toggle-password:hover {
    color: var(--neon-purple);
}

.input-box p{
    color: #ffffff;
    margin-top: 10px;
}

.btn-submit a{
    text-decoration: none;
    color: #3ff7e7;
    font-weight: bold;
}

.input-box a{
    text-decoration: none;
    color: #3ff7e7;
    font-weight: bold;
}
.btn-submit {
    width: 60%;
    height: 50px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    background-color: #2f5bc0;
    border: none;
    border-radius: 12px;
    transition: all var(--transition-3s) ease;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.btn-submit:hover {
    background: #1668ac;
}

.signup-container {
    background-color: #1A2A3A;
    color: #E0E0E0;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    margin-top: 50px;
    margin-bottom: 50px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(7, 253, 253, 0.4), 0 0 25px rgba(249, 50, 249, 0.4);
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--light-text-color);
    font-size: 2.2em;
}

.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 25px;
}

.signup-form .form-group {
    margin-bottom: 0;
}

.signup-form .form-group:nth-of-type(3),
.signup-form .form-group:nth-of-type(4) {
    grid-column: 1 / -1;
}

.signup-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-text-color);
    font-size: 0.9em;
}

.signup-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-text-color);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: inset 0 0 8px rgba(249, 50, 249, 0.2), 0 0 10px rgba(249, 50, 249, 0.3);
}

.signup-form .password-info {
    grid-column: 1 / -1;
    margin-top: 10px;
    margin-bottom: 0;
    color: #78909C;
    font-size: 0.85em;
    line-height: 1.4;
}

.signup-form .signup-button {
    grid-column: 1 / -1;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #4A148C, #00ACC1);
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 15px;
}

.signup-form .signup-button:hover {
    background: linear-gradient(to right, #6A1B9A, #00BCD4);
}

.signup-form .login-link {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

.signup-form .login-link a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 500;
}

.signup-form .login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .wrapper {
        width: 90%;
    }
    .main-container {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .wrapper {
        width: 95%;
        height: auto;
        padding: 30px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .login-form {
        width: 90%;
        gap: 25px;
    }

    .login__title {
        font-size: 2em;
        letter-spacing: 3px;
    }

    .signup-container {
        width: 95%;
        padding: 30px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .signup-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .signup-form .form-group:nth-of-type(3),
    .signup-form .form-group:nth-of-type(4) {
        grid-column: auto;
    }
    .signup-form .password-info,
    .signup-form .signup-button,
    .signup-form .login-link {
        grid-column: auto;
    }
    .signup-container h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header img {
        width: 120px;
    }
    .login__title {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    .input-field {
        height: 45px;
        font-size: 1em;
    }
    .label, .input-box .icon, .input-box .toggle-password {
        font-size: 0.9em;
    }
    .btn-submit {
        height: 45px;
        font-size: 1em;
    }
    .signup-container h2 {
        font-size: 1.5em;
    }
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Helvetica', sans-serif;
}

.ranking-table th,
.ranking-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.ranking-table thead th {
    background-color: rgba(30, 41, 59, 0.5);
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.ranking-table tbody tr {
    border-bottom: 1px solid #374151;
    transition: background-color 0.2s ease-in-out;
}

.ranking-table tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

.ranking-table .rank-pos {
    font-size: 1.25rem;
    font-weight: bold;
    width: 60px;
    text-align: center;
    color: #cbd5e0;
}

.ranking-table .player-info {
    display: flex;
    align-items: center;
}

.ranking-table .player-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.ranking-table .player-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.rank-gold,
.rank-silver,
.rank-bronze {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.rank-gold {
    border-left: 4px solid #f6e05e;
    box-shadow: inset 5px 0 15px -5px rgba(246, 224, 94, 0.3);
}
.rank-gold .rank-pos {
    color: #f6e05e;
}

.rank-silver {
    border-left: 4px solid #a0aec0;
    box-shadow: inset 5px 0 15px -5px rgba(160, 174, 192, 0.3);
}
.rank-silver .rank-pos {
    color: #a0aec0;
}

.rank-bronze {
    border-left: 4px solid #e9752f;
    box-shadow: inset 5px 0 15px -5px rgba(233, 117, 47, 0.3);
}

.rank-bronze .rank-pos {
    color: #e9752f;
}

.current-user-highlight {
    background-color: rgba(59, 130, 246, 0.15);
    border-left: 4px solid #3b82f6;
}

.accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background-color: rgba(55, 65, 81, 0.5); border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
.accordion-header:hover { background-color: rgba(71, 85, 105, 0.5); }

.accordion-content {
    background-color: rgba(30, 41, 59, 0.3);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease-out;
}

