
/* ---------------------------------- */
/* Variables para colores y fuentes */
/* ---------------------------------- */
:root {
    /* Gradientes */
    /*rgba(2, 36, 63, 0.3),  rgba(42, 80, 111, 0.6),  rgba(2, 36, 63, 0.9));*/
    --gradient-dark-blue2: linear-gradient(to right,rgba(2, 36, 63, 0.3),  rgba(42, 80, 111, 0.6),  rgba(2, 36, 63, 0.9));
    --gradient-dark-blue: linear-gradient(to top, #02243fa1, #2a506f, #011d33);
    --gradient-pink: linear-gradient(to right, #F652E2, #C80EB1);
    --gradient-light-blue: linear-gradient(to right, #2A506F, #0870C5, #2A506F);
    --gradient-light-blue2: linear-gradient(62deg, to right,  #0870C5, #69BCFF 40%, #0870C5);
    --gradient-dark-pink: linear-gradient(to right, #C80EB1, #F652E2, #C60BAF);
    --gradient-button-register: linear-gradient(to right, #F652E2, #C80EB1);
    --gradient-button-predict: linear-gradient(to right, #2A506F, #0870C5, #69BCFF, #0870C5, #2A506F);

    /* Colores individuales */
    --color-white: #ffffff;
    --color-light-grey: #cccccc; /* Para texto sutil */
    --color-dark-text: #02243F;
    --color-dark-text-cards: #2A506F;
    --color-light-blue: #64B9FF;
    --color-pink: #F652E2;
    --color-medium-blue:#0862AB;
    --color-dark-blue: #0E0E0E;

    /* Fuentes (Segoe UI y fallback) */
    --font-family-segoe: "Segoe UI", sans-serif;

    /* Tamaños de fuente */
    --font-size-title-2:22pt;
    --font-size-title: 22pt;
    --font-size-subtitle: 20pt;
    --font-size-sublevel: 18pt;
    --font-size-text: 16pt;
    --font-size-button-large: 15pt;
    --font-size-sublevel-card: 16pt;
    --font-size-card-paragraph: 15pt;
    --font-size-small-text: 12pt;
    --font-size-button-small: 13pt;
}

/* ---------------------------------- */
/*              Tipografía              */
/* ---------------------------------- */

.title {
    font-size: var(--font-size-title);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 20px;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.title2 {
    font-size: var(--font-size-title-2);
    font-weight: bold;
    line-height: 1;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #ffffff; 
    text-stroke: 2px #ffffff;
    margin-bottom: 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.sub-title {
    font-size: var(--font-size-subtitle);
    font-weight: semibold;
    margin-bottom: 25px;
    text-align: center;
}

.text {
    font-size: var(--font-size-text);
    font-weight: normal;
    margin-bottom: 15px;
}
.text-white {
    font-size: var(--font-size-text);
    font-weight: normal;
    margin-bottom: 15px;
    color: #ffffff;
}

.small-text {
    font-size: var(--font-size-small-text);
    margin-bottom: 5px;
}

.highlight {
    color: var(--color-white); 
    font-weight: bold;
}

.sub-title-card {
    font-size: var(--font-size-sublevel);
    font-weight: bold;
    margin-bottom: 15px;
   
}

.sub-level-card {
    font-size: var(--font-size-sublevel-card);
    font-weight: bold;
}



.card-paragraph {
    font-size: var(--font-size-small-text);
    font-weight: normal;
    background: linear-gradient(to right, #8d8d8ed6, #f7f7f8, #a6a6a6c2);
    padding: 0px 5px;
    width: 100%;
    justify-content: center;
}

.card-paragraph p{
    color:var(--color-dark-text-cards);
    font-weight: bold;
    
}


/* ---------------------------------- */
/* Reset básico y estilos generales */
/* ---------------------------------- */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-segoe);
    color: var(--color-white);
    background: #02243F;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background: var(--color-dark-text);
    height: auto;
}

.container {
   
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    
}

a {
    color: inherit;
    text-decoration: none;
}

.section-cards-bakground-1{
    background: rgb(2, 36, 63);
}
.section-cards-bakground-2{
    
     background-image: linear-gradient(
        
       -15deg,
        rgba(47, 47, 47, 0.4)
        
    ), 
    url('img/controles-xbox.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.section-cards-bakground{
    background: var(--gradient-dark-blue);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 30px; /* Bordes redondeados */
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    gap: 5px;
    border-radius: 20px;
    padding: 10px 20px;
}
.small-btn-r{
    background: transparent;
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    border: 4px solid #0870C5;
}
.small-btn-r:hover{
    background:  rgba(238, 238, 239, 0.595);
    color: var(--color-dark-text);
    font-size: var(--font-size-button-small);
    border: 4px solid #0870C5;
    box-shadow: 5px 5px 7px rgba(100, 185, 255, 0.5);
}
.small-btn-i{
    background:var(--gradient-pink);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    border: 4px solid #C60BAF;
    
}
.small-btn-i:hover{
    background:  rgba(200, 14, 177, 0.595);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    border: 4px solid #C80EB1;
    box-shadow: 5px 5px 7px rgba(246, 82, 266, 0.5);
    
}

.btn-primary {
    background: none;
    outline: #69BCFF;
    border: 3px solid rgb(246,82,226);
    color: var(--color-white);
    font-size: var(--font-size-button-large);
    padding: 15px 30px;
}

.btn-primary:hover{
    background: var(--gradient-pink);
    outline: #ffffff;
    border: 3px solid #ffffff;
    color: var(--color-white);
    font-size: var(--font-size-button-large);
    padding: 15px 30px;
    box-shadow: 6px 5px 2px rgba(246, 82, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    padding: 10px 20px;
    border: 4px solid #0870C5;
}

.btn-secondary:hover {
    background: var(--gradient-light-blue);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    padding: 10px 20px;
    border: 4px solid #ffffff;
    box-shadow: 6px 5px 6px rgba(100, 185, 255, 0.5);
}

.btn-register, .btn-login, .lang-switcher {
    background: var(--gradient-light-blue);
    color: var(--color-white);
    padding: 8px 15px;
    font-size: var(--font-size-small-text);
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(8, 112, 197, 0.2);
}

.btn-login {
    background: var(--gradient-pink);
    box-shadow: 0 2px 5px rgba(246, 82, 226, 0.2);
    box-sizing: border-box;
}
.btn-login:hover {
    background-color: rgba(170, 9, 9, 0.679);
    color: white;
    background: var(--gradient-pink);
}

.btn-small-card {
    background: var(--gradient-dark-blue);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    padding: 8px 15px;
    border-radius: 20px;
}
.btn-small-card:hover{
    background: var(--gradient-light-blue);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(100, 185, 255, 0.9);
}

.btn-small-card-g {
    background: var(--gradient-pink);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    padding: 8px 15px;
    border-radius: 20px;
}

.btn-small-card-g:hover{
    background: var(--gradient-pink);
    color: var(--color-white);
    font-size: var(--font-size-button-small);
    border: 4px solid #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(246, 82, 226, 0.7);
}

.btn svg {
    vertical-align: middle;
}



/* ---------------------------------- */
/*       pagina index header           */
/* ---------------------------------- */

.header {
    
    /*background: var(--gradient-dark-blue);*/
    background: transparent; /* Fondo transparente */
    position: absolute;      /* CLAVE: Lo saca del flujo normal */
    width: 100%;             /* Ocupa el ancho completo */
    top: 0;                  /* Lo coloca en la parte superior */
    left: 0;
    z-index: 10;     
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--color-pink);
    
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
}

.logo {
    display: flex;
     flex-wrap: wrap;
    align-items: center;
    gap: 10px;
   

    
}

.logo-icon {
    
    max-height: 50px;
    margin-right: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    
    max-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
   
    background: 
       
        linear-gradient(to top, rgba(1, 16, 29, 0.4), rgba(0, 0, 0, 0.3)),
        linear-gradient(to right, rgba(246, 82, 226, 0.3), rgba(200, 14, 177, 0.3)), 
        url('img/futbol-y-gamer.png'); 

    padding-top: 130px;
    padding-bottom: 70px;
    background-position: center;
    overflow: hidden; /* Asegura que la imagen de fondo no desborde */
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 0;
    padding-top: 0px; 
    padding-bottom: 100px;

    
}

.hero-left {
    flex: 1;
    max-width: 35%;
}

.hero-right {
    flex: 1;
    max-width: 35%;
    
    
}

.predictions-card {
    background: transparent;
    border-radius: 20px;
    padding: 30px;
    border: 4px solid #0870C5; 
    box-shadow:  5px 5px 7px rgba(100, 185, 255, 0.5);

  
}

.predictions-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.predictions-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: var(--font-size-text);
    
}

.predictions-card .btn-secondary {
    width: 100%;
    margin-top: 20px;
}

/* Prediction Info Section */

.prediction-info {
    background: var(--gradient-light-blue);
    padding: 40px 0;
    text-align: center;
    margin: -100px 50px 0px 50px;
    border-radius: 15px;
    box-shadow: 5px -7px 20px rgba(100, 185, 255, 0.7);
    z-index: 1000;
}

/* Events Section */
.events-section {
    
    padding: 70px 0px 120px 0px;
    
}

.events-section .sub-title {
    margin-bottom: 30px;
}

.cards-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /*gap: 50px;*/
    text-align: center;
    flex-wrap: wrap; 
    justify-content: space-between; 
    
}


.event-card {
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.2), 
        rgba(1, 20, 36, 0.5)
    ),
    url('img/fut1.png');
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px; 
    padding: 42px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 0 1 275px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 20px rgba(100, 185, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-content: space-between;
    width: 32%;
    height: 400px;
    
    
    /*--------------------*/
    transform: skew(-3deg);
    
     
}

.event-card-game {
    background-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.2), 
        rgba(1, 20, 36, 0.5)
    ),
    url('img/vs-gamer-1.png');
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px; 
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 0 1 302px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 20px rgba(236, 43, 212, 0.5);
    
    align-content: space-between;
    width: 35%;
    height: 400px;
    
    /*--------------------*/
    transform: skew(-3deg);
    
     
}

.event-card .team, .event-card .gamer-players {
    display: flex;
    justify-content: center;
    align-items:center; 
    gap: 10px;
    margin: 15px 0px;
    width: 100%;
    text-align:center;
    
}

.nombre-equipo-izquierda {
    margin-right: 25px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.nombre-equipo-derecha {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.event-card .team img, .event-card .gamer-players img {
    width: 50px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #69BCFF;
    
}

.vs{
    font-size: var(--font-size-title);
    font-weight: bold;
    color: #ffffff;
    
    margin-bottom: 50px;
}

.event-card , .event-card .gamer-vs {
    font-size: var(--font-size-button-small);
    font-weight: bold;
    
    margin: 0 15px 15px;
}


.event-card .card-paragraph {
    color: var(--color-light-grey);
    margin-top: 100px;
}



.gamer-card {
    background: var(--gradient-dark-pink); /* Gradiente específico para cards gamer */
}

.gamer-card .gamer-players img {
    border-color: #F652E2;
}

.gamer-card .gamer-vs {
    color: #F652E2;
}


/* --- Footer --- */
.footer {
    background-color: black;
    padding: 40px 0;
    
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links ul, .social-links ul {
    list-style-type: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: 0;
}

.footer-links li, .social-links li {
    margin-bottom: 10px;
}

.social-links a, .footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-white);
    transition: color 0.3s ease;
    font-size: var(--font-size-small-text);
}

.social-links a:hover, .footer-links a:hover {
    color: #69BCFF;
}

.social-links img {
    width: 20px;
    height: 20px;
}

.footer-espacio-especial{
    display: flex;
    text-align: center; 
    background-color: #F652E2; 
    color: black; 
    padding: 20px 50px;
    font-weight: bold;
    font-size: var(--font-size-sublevel-card);
    text-decoration: blink;
    margin: 0 auto;
    justify-content: center;
    list-style-type: none;
}


/* ======================================= */
/* ====== ESTILOS PARA LOS MODAL/OVERLAY ====== */
/* ======================================= */

/* --- 1. Contenedor principal (El fondo oscuro y opaco) --- */
.modal-body{
    width: 100%;
    text-align: center;
    justify-content: center;
    height: auto;
    margin: 0;
    padding: 0;
}
.modal-overlay {
    display: none;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}


/* Fondo para el overley de iniciar sesion semi-transparente y oscuro */
.modal-over-backg-i{
    
    background-color: rgba(78, 3, 101, 0.72);
}


/* Fondo para el overley de registrarse semi-transparente y oscuro */
.modal-over-backg-r{
    background-color: rgba(2, 36, 63, 0.95);
}

/* Clase para mostrar el modal*/
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex; 
}

/* --- 2. Contenido del Modal (La tarjeta) --- */
.modal-content {
    width: 90%;
    max-width: 450px; 
    padding: 15px 30px;
    border-radius: 20px;
    background: var(--gradient-light-blue);
    border: 3px solid #F652E2;
    box-shadow: 0 5px 15px rgba(246, 82, 266, 0.5), 
                0 0 15px rgba(255, 255, 255, 0.1);
    
    /* Centrado */
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10000;

    text-align: center;
    margin-top: 25px;
    display: flex; 
    justify-content: center; 
    
    gap: 40px;
   
}
.modal-registrarse{
    background:  var(66deg,--gradient-light-blue);
    border: 3px solid var(--color-light-blue);
    box-shadow: 0 5px 15px rgba(246, 82, 266, 0.5), 
                0 0 15px rgba(255, 255, 255, 0.3);
    
}
    



.modal-footer-link img {
    width: 28px; 
    height: 28px;
    cursor: pointer;
    transition: transform 0.2s;
    
}

.modal-footer-link img:hover {
    transform: scale(1.1);
}


.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* --- 3. Botón de Cerrar (X) --- */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30pt;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.close-btn:hover {
    color: var(--gradient-pink);
}

/* --- 4. Título del Formulario --- */
.modal-body .sub-title-card {
    text-align: center;
    font-size: var(--font-size-subtitle); 
}

/* --- 5. Estilos de los campos de formulario --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px; 
    width: 95%;
    justify-content: center;
}



.form-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.form-group-terms{
    padding: 5px 0px;
}

.form-group label {
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--font-size-small-text); 
}


.form-group input {
    padding: 12px 15px;
    border: 2px solid #ffffff;
    border-top: none;
    border-radius: 10px;
    background-color: rgba(2, 36, 63, 0.1);
    color: var(--color-white);
    font-size: var(--font-size-small-text);
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #69BCFF;
    outline: none;
    box-shadow: 0 0 10px rgba(105, 188, 255, 0.5);
}
.columna-izquierda, .columna-derecha {
  width: 55%;
}

/* Estilo para el placeholder */
.form-group input::placeholder {
    color: var(--color-light-grey);
    opacity: 0.6;
}

.form-spaces{
        display: flex;
        flex-direction:row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        flex-flow: nowrap;
}
.form-spaces .form-group {
    flex-basis: calc(50% - 10px); 
    flex-grow: 1;
    width: auto;
}
.form-spaces input{
    width: 100%;
}

/* --- 6. Enlaces de ayuda y botón --- */
.forgot-password {
    text-align: right;
    color: var(--color-light-grey);
    font-size: var(--font-size-small-text);
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #69BCFF;
}

.btn-submit {
    width: 100%; 
    margin-top: 5px;
    font-size: var(--font-size-button-large);
    padding: 10px 20px;
   
}

.btn-submit-i{
    background: var(--gradient-pink); 
}

.btn-submit-i:hover{
    background: var(--gradient-pink 50%); 
    border: 4px solid var(--color-white);
    box-shadow: 5px 6px 4px rgba(236, 90, 219, 0.5); 
}

.btn-submit-r{
    background: var(--color-dark-text); 
}

.btn-submit-r:hover{
    background: var(--color-white 50%); 
    border: 4px solid var(--color-white);
    box-shadow: 5px 6px 4px var(--color-light-blue 50%); 
}

/* --- 7. Enlace de pie de modal --- */
.modal-footer-link {
    text-align: center;
    margin-top: 15px;
    
}


.modal-footer-link .highlight {
    font-weight: bold;
    color: var(--color-white); 
    transition: color 0.2s;
}

.modal-footer-link .highlight:hover {
    color: var(--color-dark-text);
}

.label-form {
    display: flex;
    justify-content: start; 
    align-items: center; 
    gap: 10px; 
    margin: 12px 0px; 
    width: 100%;
}


.label-form p {
    margin: 0;
}
.modal-footer-link {
        gap: 20px;
    }
.modal-footer-18a{
    background-color: #ffffff;
}


/* ======================================= */
/* ====== NUEVOS ESTILOS PARA LA PAGINA PRINCIPAL ====== */
/* ======================================= */
 
        .main-layout {
            display: grid;
            width: 100vw;
            max-width: none;
            flex-grow: 3;
            grid-template-columns: 20% 60% 20%;
            gap: 20px;
            padding: 0;
            margin: 0;
            
            background-size: cover;
            background-position: right center;
            background-repeat: no-repeat;
            overflow-x: hidden;
            height: auto;
            background-color: var(--color-dark-blue);
        }
        
        /* Sidebar Styles */
        .sidebar {
            min-width: 20%; /* Ancho fijo como parece en la imagen */
            background:  var(--gradient-dark-blue); /* Fondo azul oscuro semi-transparente */
            padding: 20px 10px;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
            min-height: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;
            border-right: 2px solid var(--color-light-blue);
            position: relative;
            transition: all 0.3s ease-in-out;
            overflow: hidden;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 3px solid var(--color-pink);
            border-top: none;
            border-left: none;
            border-right: none;
            padding-bottom: 15px;
            box-shadow: 0 6px 10px -5px var(--color-pink);;
            
        }

        .sidebar-menu-toggle {
            cursor: pointer;
            font-size: var(--font-size-title);
            line-height: 0;
            color: var(--color-white);
        }

        .user-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px 10px;
            border-bottom: 2px solid var(--color-white);
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .user-profile img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 3px solid var(--color-pink);
            object-fit: cover;
        }

        .user-details p {
            margin: 0;
            font-size: var(--font-size-text);
        }
        .user-details p:last-child {
            font-size: var(--font-size-small-text);
            color: var(--color-light-grey);
        }

        .available-coins-box {
            /* Mantén los estilos de layout anteriores: flex-direction: column; etc. */
            background: var(--gradient-dark-blue); 
            border: 1px solid #005691;
            border-radius: 8px;
            padding: 15px 20px;
            text-align: center;
            color: white;
            width: 100%; 
            max-width: 350px; 
            
            /* Usamos Flexbox para organizar las dos secciones internas verticalmente */
            display: flex; 
            flex-direction: column; 
            gap: 15px; /* Separación entre la información de saldo y el área de predicción */
        }

        .coins-info {
            display: flex;
            flex-direction: column;
            font-size: var(--font-size-small-text);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);;
        }
        .coins-info span {
            font-weight: bold;
            color: var(--color-light-blue);
        }

        .coins-title {
            font-size: 0.9em;
            opacity: 0.8;
            margin-bottom: 5px;
        }

        .coins-amount {
            font-size: 1.8em;
            font-weight: bold;
            color: #F652E2; 
        }



        .social-links-sidebar {
            display: flex;
            justify-content: space-around;
            padding: 5px 0;
            gap: 10px;
            align-items: center;
            flex-basis: calc(2% - 20px); 
            box-sizing: border-box;
        }
        
        .social-links-sidebar .btn-redes1 {
            flex-grow: 1;
            padding: 5px 5px;
            text-align: center;
            border: 2px solid var(--color-white);
            border-radius: 15px;
            align-items: center;
            width: 50%;
            font-size: var(--font-size-button-small);
            box-sizing: border-box;
        }

        .btn-redes1:hover{
            flex-grow: 1;
            padding: 5px 5px;
            text-align: center;
            color: var(--color-white);
            border: 2px solid var(--color-white);
            background: var(--gradient-dark-pink);
            border-radius: 15px;
            align-items: center;
            width: 50%;
            font-size: var(--font-size-button-small);
            box-sizing: border-box;
        }

        .icon-sidebar img{
            height: 15px;
            width: auto;
        }

        .btn-referido{
            background: var(--gradient-dark-pink);
            box-sizing: border-box;
        }

        .btn-referido:hover{
            background: var(--gradient-pink);
            border: 2px;
            border-color: var(--color-white);
            box-shadow: 0 2px 5px rgba(246, 82, 226, 0.2);
        }
        
        

        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 20px;
            font-size: var(--font-size-button-large);
            color: var(--color-white);
            transition: background 0.3s;
            cursor: pointer;
        }

        .sidebar-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .sidebar-link.pink-link {
            background: var(--gradient-pink);
            border: 2px solid var(--color-white);
            box-shadow: 0 0 10px var(--color-pink);
        }
        .sidebar-link.blue-link {
            background: var(--gradient-light-blue);
            border: 2px solid var(--color-white);
            box-shadow: 0 0 10px var(--color-light-blue);
        }
        
        .sidebar-link.active {
            background: rgba(255, 255, 255, 0.1); 
            border: 1px solid var(--color-light-blue);
        }
        
        .link-referido {
            background: var(--gradient-light-blue);
            text-align: center;
            font-weight: bold;
            margin: 10px 0;
        }

        .logo-icon3{
            height: 35px;
            width: auto;
        }
        .logout-btn {
            background: var(--gradient-pink);
            text-align: center;
            margin-top: auto; /* Para empujar el botón al fondo */
            margin-bottom: 20px;
        }
        
        .publicidad-sidebar {
            width: 100%;
            height: 150px; /* Altura placeholder */
            margin: 10px 0;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }

        .publicidad-sidebar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            background-repeat: no-repeat;
        }

        .publicidad-sidebar-2{
            width: 100%;
            height: 100%; /* Altura placeholder */
            margin: 10px 0;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .publicidad-sidebar-2 div{
            width: 100%;
            height: auto;
            object-fit: cover;
            background-repeat: no-repeat;
            border-radius: 15px;
        }

        /* --- Estilos para la Entrada de Cantidad y Botón --- */

        .input-label {
            font-size: 1em;
            font-weight: 500;
            margin-bottom: 8px;
            text-align: left;
        }

        .input-group {
            display: flex;
            align-items: center;
            background-color: #0b1c2b; /* Fondo más claro para el campo */
            border-radius: 5px;
            padding: 8px 10px;
            margin-bottom: 15px;
            border: 1px solid #005691;
        }

        .input-prefix {
            font-size: 1em;
            margin-right: 5px;
            opacity: 0.7;
            white-space: nowrap; /* Evita que "Cantidad:" se rompa */
        }

        .bet-input {
            /* Ocupa el espacio restante en el grupo */
            flex-grow: 1; 
            /* Elimina el estilo predeterminado del navegador */
            background: transparent; 
            border: none;
            color: white;
            font-size: 1.1em;
            font-weight: bold;
            text-align: right;
            padding: 0;
        }

        /* Estilo del botón (similar al gradiente rosa que usas) */
        .predict-button {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            font-size: 1.1em;
            font-weight: bold;
            text-transform: uppercase;
            cursor: pointer;
            /* Usa el gradiente de tu tema */
            background: var(--gradient-dark-pink); 
            color: white;
            transition: all 0.2s ease;
            box-shadow: 0 4px 10px rgba(246, 82, 226, 0.4);
        }

        .predict-button:hover {
            filter: brightness(1.1);
        }

        /* --- A. Layout Principal: Apilado en Móvil / Lado a Lado en Escritorio --- */

            /* Por defecto (Móvil): Todo se apila verticalmente */
        .prediction-main-wrapper {
            display: flex;
            flex-direction: column; 
            gap: 20px; 
            padding: 10px 0;
            align-items: center; /* Centra los bloques */
            border-bottom: 2px solid var(--color-white);
            border-top: 2px solid var(--color-white);
            padding: 20px 0px;
            margin-top: 50px;
        }

        /* El contenedor principal se pone horizontal */
        .prediction-main-wrapper {
            flex-direction: row; 
            align-items: flex-start; /* Alinea los elementos por arriba */
            justify-content: center; 
            align-items: center;
        }
        
        /* El contenedor de tarjetas toma la mayor parte del espacio */
        .prediction-options-container {
            flex: 3; /* Más espacio para las tarjetas */
            flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
        }
        
        /* La caja de asignación toma el espacio restante */
        .available-coins-box {
            flex: 1; /* Menos espacio para la caja de asignación */
            max-width: 300px;
        }



        /*----------------------*/
        /* Main Content Styles */


        .main-content {
            width: auto;
            /*flex-grow: 1;*/
            padding: 70px 0px 20px 0px;
            display: flex;
            flex-direction: column;
            justify-content: start;
            
        }

        .tabs-container {
            display: flex;
            width: 100%;
            gap: 3px;
            margin-bottom: 30px;
            border: 4px solid var(--color-light-blue);
            border-top: none;
            border-left: none;
            border-right: none;
        }

        .tab-button {
            width: 30%;
            flex-wrap: wrap;
            padding: 10px 25px;
            border: none;
            border-radius: 10px 10px 0 0;
            cursor: pointer;
            font-size: var(--font-size-sublevel);
            font-weight: bold;
            color: var(--color-white);
            background: var(--color-dark-text-cards);
            transition: background-color 0.3s;
        }

        .tab-button.active {
            background: var(--color-medium-blue);
            border: 1px solid var(--color-light-blue);
            border-bottom: none;
        }
        
        .main-title-content {
            font-size: var(--font-size-subtitle);
            margin-bottom: 20px;
            font-weight: bold;
            text-align: center;
            margin-top: 20px;

        }

        .event-card-toogle {
        background-image: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.2), 
            rgba(1, 20, 36, 0.5)
        ),
        url('img/fut1.png');
        
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 20px; 
        padding: 20px 5px;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 0 1 230px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 5px 7px rgba(100, 185, 255, 0.7);
        border: 1px solid var(--color-light-blue);
        align-content: space-between;
        width: 32%;
        gap: 20px;
        min-height: 320px;
        
        /*--------------------*/
        transform: skew(-3deg);
        }

        .event-card-toog {
        background-image: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.2), 
            rgba(1, 20, 36, 0.5)
        ),
        url('img/vs-gamer-1.png');
        
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 20px; 
        padding: 20px 5px;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 0 1 230px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 5px 7px var(--color-pink);
        border: 1px solid var(--color-pink);
        align-content: space-between;
        width: 32%;
        gap: 20px;
        min-height: 320px;
        
        /*--------------------*/
        transform: skew(-3deg);
        }
       .event-card-premios{
            background-image: linear-gradient(
                to bottom, 
                rgba(0, 0, 0, 0.2), 
                rgba(1, 20, 36, 0.5)
            ),
            url('img/valorant.jpg');
            
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            border-radius: 20px; 
            padding: 20px 5px;
            text-align: center;
            display: flex;
            flex-direction: column;
            flex: 0 1 230px;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 5px 7px var(--color-pink);
            border: 1px solid var(--color-pink);
            align-content: space-between;
            width: 32%;
            gap: 20px;
            min-height: 320px;
            
            /*--------------------*/
            transform: skew(-3deg);
       }
        
        .events-grid-dashboard {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: center;
        }
        
      
        .event-card-dashboard {
            flex: 0 1 calc(33.333% - 20px); 
            min-width: 250px; 
            background-image: linear-gradient(to bottom, rgba(1, 16, 29, 0.7), rgba(2, 36, 63, 0.8)), url('img/fut1.png');
            background-size: cover;
            border-radius: 20px; 
            padding: 15px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 3px 15px rgba(100, 185, 255, 0.8);
            transform: none; /* Desactivo el skew que estaba en styles.css para que se vea normal */
        }
        
        .event-card-dashboard .team-logo {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--color-light-blue);
            margin: 5px 0;
        }
        
        .event-card-dashboard .matchup {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            margin: 10px 0;
        }

        .matchup .team-side {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 45%;
        }

        .matchup .team-side p {
            font-size: var(--font-size-sublevel-card);
            font-weight: bold;
            margin: 5px 0 0 0;
            color: var(--color-white);
        }

        .matchup .vs-text {
            font-size: var(--font-size-title);
            font-weight: bold;
            color: var(--color-pink); /* Usando pink para VS como en la imagen */
            margin: 0 10px;
        }
        
        .sidebar-publicidad{
            display: flex;
            flex-direction: column;
            
        }

        .sidebar-publicidad .publicidad-sidebar-2 {
            align-items: center;
            height: auto;
            display: flex;
            flex-direction: column;
            max-height: calc(100vh - 40px);
        }
        .publicidad-sidebar-2 {
        position: relative;
        z-index: 0;
        
        }
        
        .publicidad-sidebar-2 img{
            
            flex: 1;
            min-height: 0;
            width: 100%; 
            object-fit: cover; 
            display: flex; 
            justify-content: center;
            align-items: center;
        }

        /* --- -------------------------------------------- --- */
        /* --- Estilos para la pagina de eventos --- */
        /* --- -------------------------------------------- --- */
        
        /* main content */
        
        .tab-content-wrapper {
            /* Contenedor que permite las transiciones */
            position: relative;
            width: 100%;
            
        }

        .tab-content {
            transition: opacity 0.4s ease-in-out; 
            width: 100%;
            
            /* OCULTAR */
            display: none; 
            opacity: 0; 
            position: relative;
            text-align: center;
        }

        .tab-content h3{
            font-size: var(--font-size-text); 
            margin-bottom: 25px;
            text-align: center;
            border: 2px solid var(--color-white);
            border-top: none;
            border-left: none;
            border-right: none;
            padding: 0px 0px 20px 0px;
        }

        .tab-content.active {
            /* MOSTRAR */
            display: block; 
            opacity: 1; 
            position: relative;
            width: 100%;
            /* ¡Asegúrate de que no haya ninguna propiedad 'position' aquí que lo saque del flujo! */
        }
        /* Grid de eventos (para que no colisione con el layout principal) */
        .events-grid-dashboard {
            display: flex;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            padding: 10px 0;
        }

        .live-betting-section {
            width: 100%;
            /* Limita el ancho máximo para que se alinee con el contenido principal */
            max-width: 650px; 
            margin-top: 30px;
            padding: 0 10px;
            align-self: center; /* Centra el bloque dentro del main-content */
        }

        .live-betting-title {
            font-size: 1.2em;
            font-weight: 600;
            color: white; 
            margin-bottom: 10px;
        }

        /* Encabezado: Asegura que los nombres de los equipos se alineen */
        .betting-list-header {
            display: flex;
            justify-content: space-between;
            font-weight: bold;
            color: var(--gradient-pink); /* Usando tu color rosa para el encabezado */
            font-size: 0.9em;
            padding: 0 5px 8px 5px;
            gap: 20px;
            flex: 1;
        }

        .betting-list-header span {
            text-align: center;
            /* Las tres columnas deben ocupar el mismo ancho */
            flex: 1; 
            padding: 0 5px;
        }

        /* Contenedor de la lista de filas */
        .betting-list-container {
            display: flex;
            flex-direction: column;
            gap: 5px; /* Espacio entre las filas */
            padding: 10px 0;
        }

        /* Fila individual de apuestas */
        .bet-list-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 5px 0;
            flex-wrap: wrap;
            /* Fondo para cada fila para separarlas visualmente */
            gap:10px 20px;
            border-radius: 4px;
            flex: 1;
        }

        /* Columna de apuesta individual */
        .bet-column {
            /* Las 3 columnas deben tener el mismo ancho para alinearse con el header */
            flex: 1; 
            padding: 5px;
            text-align: center;
            min-height: 40px; /* Altura mínima para que las filas vacías no colapsen */
            background: #ffffffe2;
            border-radius: 15px;
            box-shadow: 5px 5px 7px var(--color-light-blue);
            padding: 10px 0px;
            min-height: 60px ;
        }

        .bettor-name {
            font-size: var(--font-size-sublevel-card);
            font-weight: 600;
            color: var(--color-dark-blue);
            margin: 0;
            /* Permitir que el texto se rompa si es muy largo, en lugar de usar nowrap */
            white-space: normal; 
            line-height: 1;
        }

        .bet-amount {
            font-size: var(--font-size-text);
            color: var(--color-dark-text); /* Usando tu color rosa para destacar la cantidad */
            font-weight: bold;
            margin: 0;
            line-height: 1;
        }

        .bettor-info-wrapper {
                /* CLAVE: Aplica Flexbox para que los elementos se pongan uno al lado del otro */
            display: flex; 
            
            /* Dirección por defecto (row) -> se alinean horizontalmente */
            
            align-items: center; /* Alinea verticalmente (centra el avatar con el texto) */
            gap: 20px; /* Pequeño espacio entre el avatar y el texto */
            justify-content: center; /* Centra el bloque total dentro de la columna */
            
            /* Asegura que el contenido quepa si la columna es muy pequeña */
            max-width: 100%; 
        }           

        .bettor-info-wrapper img{
            width: 50px;
            border-radius: 50px;
        }

        .bettor-info-wrapper > div:last-child {
            text-align: left;
            /* Permite que el texto se rompa si no hay espacio horizontal (útil en móvil) */
            overflow: hidden; 
            line-height: 1.2; /* Espacio entre el nombre y las monedas */
        }

        /* 3. Estilo del Avatar (Se mantiene) */
        .bettor-avatar {
            width: 25px; 
            height: 25px;
            min-width: 25px; /* Evita que el avatar se encoja */
            border-radius: 50%;
            overflow: hidden; 
            border: 1px solid var(--gradient-pink); 
        }

        .bettor-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover; 
        }

        .header-team {
            font-size: var(--font-size-sublevel);
            color: var(--color-light-blue);
            border-bottom: 2px solid var(--color-light-blue);
            
        }
        .header-draw{
            font-size: var(--font-size-sublevel);
            color: var(--color-light-blue);
            border-bottom: 2px solid var(--color-light-blue);
        }

      



/* Contenedor para manejar el layout (ej. con Flexbox) */
.prediction-options-container {
    display: flex;
    gap: 10px; /* Espacio entre las tarjetas */
    justify-content: center;
    padding: 0px;
}

/* Estilo base de cada tarjeta (label) */
.option-card {
    /* Hace que la tarjeta sea un área clickeable */
    cursor: pointer; 
    min-height: 350px;
     background-image: linear-gradient(
                to bottom, 
                rgba(0, 0, 0, 0.4), 
                rgba(1, 20, 36, 0.6)
            ),
            url('img/fut2.png');
    background-repeat: no-repeat;
    background-size:cover;
    background-position:35%;

    /* Le da un tamaño flexible o fijo, según tu diseño */
    flex: 1; 
    max-width: 150px; 
    /* Estilo del borde por defecto (sin seleccionar) */
    border: 3px solid transparent; 
    border-radius: 8px;
    transition: border 0.2s ease-in-out; /* Animación suave del borde */
    align-content: end;
    transform: skew(-3deg);
    border-radius: 20px;
    box-shadow: 0 3px 5px rgba(100, 185, 255, 0.8);
}

/* Ocultar el input de radio por defecto (la bolita) */
.option-card input[type="radio"] {
    display: none;
}

/* Estilo del contenido interno (para las imágenes y texto) */
.card-content {
   
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: left;

}
.card-line{
    border-bottom: 2px solid var(--color-light-blue);
    padding-bottom: 5px;
}

/* CLASE CRUCIAL: El estilo que se aplica cuando la tarjeta está seleccionada */
.option-card.selected {
    /* Borde visible y llamativo cuando está seleccionada */
    border: 3px solid #F652E2; /* Usando un color de tu archivo style.css (ej. el rosa) */
    box-shadow: 0 0 10px rgba(246, 82, 226, 0.7); /* Efecto de brillo */
}

.option-card::after {
    /* Forma y color del círculo */
    content: ''; /* ¡Importante! Vacío porque no hay texto */
    width: 25px; /* Tamaño del círculo */
    height: 25px; /* Tamaño del círculo */
    background-color: #F652E2; /* Color de tu variable --gradient-pink */
    border: 3px solid white; /* Borde blanco para que destaque */
    border-radius: 50%; /* Lo hace circular */
    
    /* Posicionamiento en la esquina superior derecha */
    position: absolute;
    top: 5px; /* Distancia desde arriba (visible) */
    right: 5px; /* Distancia desde la derecha (visible) */
    
    /* Oculto por defecto */
    transform: scale(0); /* Empieza muy pequeño (invisible) */
    opacity: 0; /* Transparente */
    
    /* Animación suave */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; 
    
    z-index: 10; /* Asegura que esté por encima de otros elementos */
}

/* Mostrar el CÍRCULO cuando la tarjeta tiene la clase 'selected' */
.option-card.selected::after {
    transform: scale(1); /* Se agranda a su tamaño normal */
    opacity: 1; /* Se hace completamente visible */
}


/* ======================================= */
/* 2. ESTILOS PARA LA TABLA DE DATOS SIMPLE */
/* ======================================= */

.simple-data-table-container {
    
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px; /* Separación de la grilla de eventos */
    /* Usamos el padding y borde de los elementos que ya tienes como referencia */
}

/* Título pequeño para la tabla */
.simple-data-table-container .small-title {
    font-size: 1.2em; /* Un poco más pequeño que el título principal */
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-light-blue); /* Para que destaque */
}

/* Estilos de la Fila de Encabezado */
.table-card-header,
.table-data-row {
    display: grid;
    /* Define 4 columnas: 1 para Fecha, 2 para Evento, 3 para Predicción, 4 para Resultado */
    /* La columna de Predicción la ocultaremos en móvil */
    grid-template-columns: 1fr 4fr minmax(100px, 3fr); /* Ajuste para móvil: 3 columnas visibles */
    gap: 10px;
    padding: 0px 0;
    align-items: center;
    text-align: center; /* Centrar el texto en general */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.header-col, 
.data-col{
    height: 100%;
    align-items: center;
    justify-content: center;
    align-content: center;
    max-width: 168px;
    width: 100%;
}

.table-card-header {
    font-weight: 700; /* Negrita para los títulos */
    color: var(--color-text-lighter); /* Asumo que es un color gris claro */
    font-size: 0.9em;
    padding-bottom: 0.table-card-headerpx;
    border-bottom: 2px solid var(--color-white)
}

.col-bg-az{
    background: var(--gradient-light-blue);
    padding: 7px 0px;
}

/* Estilos de las Filas de Datos */
.table-data-row {
    font-size: 0.95em;
    color: var(--color-text-default); /* Color de texto normal (blanco) */
    transition: background-color 0.2s;
}

.table-data-row:last-child {
    border-bottom: none; /* Eliminar borde de la última fila */
}

.table-data-row:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Efecto hover sutil */
}

/* Estilos Específicos para Columnas de Estado/Resultado */
.data-col-win {
    color: var(--color-green); /* ¡Asumo que tienes una variable para verde! Si no, usa: #4CAF50 */
    font-weight: 700;
}

.data-col-loss {
    color: var(--color-pink); /* Usa el color de tu degradado pink si lo tienes */
    font-weight: 700;
}

.data-col-pending {
    color: var(--color-text-lighter); /* Color gris claro o amarillo */
    font-style: italic;
}

/* Columna de evento a la izquierda */
.data-evento {
    text-align: left;
    padding-left: 10px;
}

/* 1. Estilos Base y Ocultar en Móvil (Mobile First) */

/* Contenedores de fila con display: grid para la alineación */
.table-card-header,
.table-data-row {
    display: grid;
    gap: 10px; /* Espacio entre las columnas */
    padding: 0px 0px;
    align-items: center; /* Alinea el contenido verticalmente */
    height: auto;
}

.table-data-row {
    border-bottom: 1px solid #ccc; /* Separador de filas */
}

/* REGLA CRUCIAL: Ocultar los elementos con esta clase en móvil */
.hide-mobile {
    display: none;
}

/* 2. Distribución de Columnas en Móvil (4 Columnas Visibles) */

.table-card-header,
.table-data-row {
    /* Define 4 columnas: Evento | Opción elegida | Resultado | Fecha */
    /* Usando fracciones (fr) para que sean flexibles y ocupen el espacio disponible */
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr; 
}


/* 3. Distribución y Visibilidad en Escritorio (A partir de 768px) */
@media (min-width: 768px) {
    
    /* MOSTRAR: Anula el 'display: none;' para que los elementos vuelvan a aparecer */
    .hide-mobile {
        /* 'initial' es una buena opción para que Grid los posicione correctamente */
        display: initial; 
    }

    /* Redefinir Grid para 7 Columnas */
    .table-card-header,
    .table-data-row {
        /* Define 7 columnas para escritorio: 
           Evento | Opción elegida | Resultado | Monedas usadas | Monedas obtenidas | Saldo final | Fecha */
        grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr 1fr 1.2fr;
    }
    
}


/* ======================================= */
/*css para las pestañas en pagina principal*/
/* ======================================= */


/* ====== ESTILOS DE PESTAÑAS (TABS) ====== */


.tabs-container {
    display: flex;
    margin-bottom: 20px;
    /* Para el efecto responsive 2-1 en tablet */
    flex-wrap: wrap; 
    gap: 10px;
}

.tab-button {
    /* Estilo general para todos los botones de pestaña */
    background: rgba(255, 255, 255, 0.1); /* Fondo sutil para las inactivas */
    color: var(--color-light-grey);
    border: 2px solid transparent; /* Borde transparente por defecto */
    padding: 10px 20px;
    border-radius: 10px 10px 0 0; /* Bordes redondeados solo arriba */
    cursor: pointer;
    font-size: var(--font-size-text);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    flex-grow: 1; /* Permite que crezcan para ocupar el espacio */
    text-align: center;
}

.tab-button:hover:not(.active) {
    background: rgba(100, 185, 255, 0.15); /* Efecto hover sutil */
    color: var(--color-white);
}

.tab-button.active {
    /* Estilo de la pestaña activa (Futbol/Blue por defecto) */
    background: var(--color-medium-blue);
    color: var(--color-white);
    border-bottom: 4px solid var(--color-light-blue); /* Borde inferior azul activo */
    box-shadow: 0 4px 10px rgba(8, 112, 197, 0.5);
}

/* Estilos para que el botón de Gamer se vea rosa cuando esté activo */
.tab-button[data-tab="gamer"].active {
    background: #C80EB1; /* Un color del gradiente pink */
    border-bottom: 4px solid var(--color-pink); /* Borde inferior rosa activo */
    box-shadow: 0 4px 10px rgba(246, 82, 226, 0.5);
}



/* ======================================= */
/* --- Responsividad --- */
/* ======================================= */

@media (max-width: 2560px) {
    :root {
        --font-size-title: 42pt;
        --font-size-title-2: 42pt;
        --font-size-subtitle: 32pt;
        --font-size-text: 16pt;
        --font-size-sublevel-card: 14pt;
    }
    .container {
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 20px;
    }
   
    .logo-icon2{
        max-height: 45px;
        width: 100%;
    }

    .hero-content {
        
        padding: 0px 40px 100px 40px;
    }

    .hero-left, .hero-right {
        max-width: 45%;
    }
    
    
    .prediction-info {
        max-width: 100%;
    }
    

    .sidebar-menu-toggle{
        display: none;
        font-size: 28px;
        cursor: pointer;
        color: white;
        display: none; /* oculto en escritorio */
    }
    .main-layout {
            display: grid;
            grid-template-columns: minmax(180px, 20%) minmax(400px, 60%) minmax(180px, 20%);
            width: 100vw;
            max-width: none; 
            gap: 20px;
            margin: 0 auto;
            padding: 0;
            align-content: space-between;
    }
    .sidebar {
            width: 100%;
            min-height: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;

            transition: all 0.3s ease-in-out;
    }
    
    /* El contenedor principal se pone horizontal */
    .prediction-main-wrapper {
        flex-direction: row; 
        align-content: center;
        justify-content: center; 
        padding: 20px 200px;
        gap: 50px;
    }
    
    /* El contenedor de tarjetas toma la mayor parte del espacio */
    .prediction-options-container {
        flex: 3; /* Más espacio para las tarjetas */
        flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
        width: 70%;
    }
    
    /* La caja de asignación toma el espacio restante */
    .available-coins-box {
        flex: 1; /* Menos espacio para la caja de asignación */
        max-width: 300px;
    }
    .bet-list-row {
        display: flex; /* Debe ser Flex para que funcione flex: 1 */
        flex-wrap: nowrap; /* Evita que las columnas se muevan abajo en escritorio */
    }
    
    .hide-desktop{
        display: none;
    }
   
    
}
   

@media (max-width: 1440px) {
    :root {
        --font-size-title: 42pt;
        --font-size-title-2: 42pt;
        --font-size-subtitle: 32pt;
        --font-size-text: 16pt;
        --font-size-sublevel-card: 14pt;
    }
    .container {
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 20px;
    }
   
    .logo-icon2{
        max-height: 45px;
        width: 100%;
    }

    .hero-content {
        
        padding: 0px 40px 100px 40px;
    }

    .hero-left, .hero-right {
        max-width: 45%;
    }
    
    
    .prediction-info {
        max-width: 100%;
    }

    .sidebar-menu-toggle{
        display: none;
        font-size: 28px;
        cursor: pointer;
        color: white;
        display: none; /* oculto en escritorio */
    }
    .main-layout {
            display: grid;
            grid-template-columns: minmax(180px, 20%) minmax(400px, 60%) minmax(180px, 20%);
            width: 100vw;
            max-width: none; 
            gap: 20px;
            margin: 0 auto;
            padding: 0;
            align-content: space-between;
    }
    .sidebar {
            width: 100%;
            min-height: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;

            transition: all 0.3s ease-in-out;
    }
    
    /* El contenedor principal se pone horizontal */
    .prediction-main-wrapper {
        flex-direction: row; 
        align-content: center;
        justify-content: center; 
        padding: 20px 0px;
        gap: 50px;
    }
    
    /* El contenedor de tarjetas toma la mayor parte del espacio */
    .prediction-options-container {
        flex: 3; /* Más espacio para las tarjetas */
        flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
    }
    
    /* La caja de asignación toma el espacio restante */
    .available-coins-box {
        flex: 1; /* Menos espacio para la caja de asignación */
        max-width: 300px;
    }
    

    /* Anulamos la regla del 100% que aplicamos a la columna visitante en móvil */
    .column-visitor {
        flex-basis: calc(30% - 5px); /* Vuelve a ser 1/3 del ancho */
        max-width: calc(30% - 5px);
        margin-top: 0; /* Sin margen superior */
    }
    .hide-desktop{
        display: none;
    }
    .bet-list-row {
        display: flex; /* Debe ser Flex para que funcione flex: 1 */
        flex-wrap: nowrap; /* Evita que las columnas se muevan abajo en escritorio */
    }
    .bet-column {
        /* Define 3 columnas por fila: 33.33% menos el gap/margen */
       flex-basis: calc(30% - 5px);
        max-width: calc(30% - 5px);
        flex: 1; 
        /* Anulamos cualquier max-width o flex-basis previo para que flex: 1 tome control */
        
        flex-basis: auto;
        padding: 5px 2px;
    }
}


@media (max-width: 1024px) {
    :root {
        --font-size-title: 42pt;
        --font-size-title-2: 42pt;
        --font-size-subtitle: 32pt;
        --font-size-text: 16pt;
        --font-size-sublevel-card: 14pt;
    }

    .container {
        width: 100%;
        max-width: 1024px;
        margin: 0 auto;
        padding: 0 20px;
    }
    

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        position: relative;
        padding: 0px 50px 100px 50px;
    }

    .hero-left, .hero-right {
        max-width: 45%;
    }
    
    
    .prediction-info {
        max-width: 100%;
    }

    
    .logo-icon2{
        max-height: 45px;
        width: 100%;
    }
    .sidebar-menu-toggle{
        display: none;
        font-size: 28px;
        cursor: pointer;
        color: white;
        display: none; /* oculto en escritorio */
    }
    .main-layout {
            display: grid;
            grid-template-columns: minmax(180px, 20%) minmax(400px, 60%) minmax(180px, 20%);
            width: 100vw;
            max-width: none; 
            gap: 20px;
            margin: 0 auto;
            padding: 0;
            align-content: space-between;
    }
    .sidebar {
            width: 100%;
            min-height: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;

            transition: all 0.3s ease-in-out;
    }
    
    .main-content {
            width: auto;
            display: flex;
            flex-direction: column;
    }
    .sidebar-publicidad .publicidad-sidebar-2 {
           
            height: 100%;
            display: flex;
            flex-direction: column;
    }
    
    .publicidad-sidebar-2 img{
        
        height: 50%;
         
        display: flex; 
    }

    .social-links-sidebar {
        /* Asegura la disposición en una fila */
        display: flex;
        flex-direction: column;
        width: 100%;
        /* El 'gap: 10px;' de la regla global ya debería funcionar */
    }
    .social-links-sidebar .btn-redes1 {
    flex-grow: 1;
    padding: 5px 5px;
    width: 100%; 
    flex: 1;
    }
    .btn-redes1:hover{
            
            color: var(--color-white);
            border: 2px solid var(--color-pink);
            background-color: var(--gradient-dark-pink);
            flex-grow: 1;
            padding: 5px 5px;
            width: 100%; 
            flex: 1;
           
        }

    /* El contenedor principal se pone horizontal */
    .prediction-main-wrapper {
        flex-direction: row; 
        
        justify-content: center; 
        align-content: center;
    }
    
    /* El contenedor de tarjetas toma la mayor parte del espacio */
    .prediction-options-container {
        flex: 3; /* Más espacio para las tarjetas */
        flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
    }
    
    /* La caja de asignación toma el espacio restante */
    .available-coins-box {
        flex: 1; /* Menos espacio para la caja de asignación */
        max-width: 300px;
    }
   

    /* Anulamos la regla del 100% que aplicamos a la columna visitante en móvil */
    .column-visitor {
        flex-basis: calc(31% - 5px); /* Vuelve a ser 1/3 del ancho */
        max-width: calc(31% - 5px);
        margin-top: 0; /* Sin margen superior */

    }
    .bettor-avatar{
        display: none;
    }
    .hide-desktop{
        display: none;
    }
    .bet-list-row {
        display: flex; /* Debe ser Flex para que funcione flex: 1 */
        flex-wrap: nowrap; /* Evita que las columnas se muevan abajo en escritorio */
    }
    .bet-column {
        /* Define columnas por fila: 33.33% menos el gap/margen */
        flex-basis: calc(31% - 5px);
        max-width: calc(31% - 5px);
        flex: 1; 
        /* Anulamos cualquier max-width o flex-basis previo para que flex: 1 tome control */
        
        flex-basis: auto;
        padding: 5px 2px;
    }

    /*responsive modal*/

    .modal-content {
        padding: 20px 30px 10px 30px;
        /* El modal ocupa más espacio en móvil para no verse demasiado pequeño */
        max-width: 450px; 
        max-height: 90vh; 
        display: block;
        overflow-y: auto;
    }
    .modal-body .sub-title-card {
        font-size: var(--font-size-sublevel); 
        margin-bottom: 20px;
    }
    .forgot-password {
        /* Ocupa la segunda columna (columna 2 / final) */
        grid-column: 2 / 3; 
        text-align: right; 
    }
    .label-form{
        grid-column: 1 / 3;
        display: flex;
        justify-content: start; 
        align-items: center; 
        flex-direction: row;
        min-width: 48%;
        width: 100%;
    }
    #reg-username{
        width: 48%;
    }

    /*clases para las pestañas*/

    .tabs-container {
        flex-wrap: nowrap; /* Mantiene las 3 pestañas en una sola línea */
    }
    
    .tab-button {
        /* Distribución equitativa para las 3 pestañas en escritorio */
        flex-basis: calc(33.333% - 7px);
        max-width: calc(33.333% - 7px);
        border-radius: 10px 10px 0 0;
    }
    
    .tab-button:nth-child(3) { /* El tercer botón vuelve a ser de 1/3 del ancho */
        flex-basis: calc(33.333% - 7px);
        max-width: calc(33.333% - 7px);
    }

}

/* --- Tablet Portrait --- */
@media (max-width: 768px) {
    :root {
        --font-size-title: 38pt;
        --font-size-title-2: 38pt;
        --font-size-subtitle: 28pt;
        --font-size-text: 15pt;
        --font-size-sublevel-card: 16pt; 
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .hero-left, .hero-right {
        max-width: 50%;
    }

    .prediction-info {
        margin: -60px auto 40px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /*---------------------------*/

    .cards-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: center;
    flex-wrap: wrap; 
    justify-content: center; 
    
    }

    .event-card, .event-card-game {
        flex-basis: calc(45% - 10px); /* 50% para 2 cards - mitad del gap */
    }
    .sidebar-menu-toggle{
        display: none;
    }

    .main-layout {
            display: grid;
            grid-template-columns: 1fr;
            width: 100vw;
            max-width: none; 
            gap: 20px;
            margin: 0 auto;
            padding: 0;
            align-content: space-between;
    }
    .sidebar {
            width: 100vw;
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
            position: fixed;
            top: 0;
            left: 0;
            position: relative;
            z-index: 999;
    }

    .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    border-bottom: 3px solid var(--color-pink);
    }
    .sidebar.active {
    height: 100vh;
    overflow-y: auto;
    }
    
    .main-content {
            
            width: 100vw;
            display: flex;
            flex-direction: column;
    }

    .sidebar .user-info,
    .sidebar .social-links-sidebar,
    .sidebar .publicidad-sidebar,
    .sidebar .btn,
    .sidebar .footer {
        display: none;
    }

    /* mostrar el botón hamburguesa */
    .sidebar-menu-toggle {
        display: block;
    }

    /* cuando el menú está activo (se abre) */
    .sidebar.active {
        height: 100vh;
        overflow-y: auto;
        background-color: var(--color-dark-blue);
    }

    /* mostrar contenido cuando está activo */
    .sidebar.active .user-info,
    .sidebar.active .social-links-sidebar,
    .sidebar.active .publicidad-sidebar,
    .sidebar.active .btn {
        display: block;
    }
    .sidebar-publicidad .publicidad-sidebar-2 {
            height: 100%;
            display: flex;
            flex-direction: row;
    }

    .live-betting-section {
                align-self: flex-start; /* Se alinea a la izquierda de la columna principal */
    }
        
    .publicidad-sidebar-2 img{
        width: 50%;
        height: 100%;
    }

    /* El contenedor principal se pone horizontal */
    .prediction-main-wrapper {
        flex-direction: row; 
        align-content: center; /* Alinea los elementos por arriba */
        justify-content: center; 
        padding: 20px 10px;
        gap: 10px;
    }
    
    /* El contenedor de tarjetas toma la mayor parte del espacio */
    .prediction-options-container {
        flex: 3; /* Más espacio para las tarjetas */
        flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
    }
    
    /* La caja de asignación toma el espacio restante */
    .available-coins-box {
        flex: 1; /* Menos espacio para la caja de asignación */
        max-width: 300px;
    }

    

    /* Regla especial para la TERCERA columna (column-visitor) en móvil */
    /* Se fuerza al 100% para que siempre caiga a la línea de abajo */
    .bet-column.column-visitor {
        flex-basis: 30%;
        max-width: 30%;
        margin-top: 5px; /* Pequeño espacio para separarla de las de arriba */
    }
    .bettor-avatar{
        display: none;
    }
    
    .hide-desktop{
        display: flex;
    }
    .bet-list-row {
        display:flex; /* Debe ser Flex para que funcione flex: 1 */
        flex-wrap: nowrap; /* Evita que las columnas se muevan abajo en escritorio */
        padding: 0px 50px;
        gap: 30px;
        margin-bottom: 20px;
    }
    .bet-column {
        flex-basis: calc(30% - 5px); /* 50% menos el gap/margen */
        max-width: calc(30% - 5px);
        flex: 1; 
        /* Anulamos cualquier max-width o flex-basis previo para que flex: 1 tome control */
         
        flex-basis: auto;
        padding: 5px 2px;
        text-align: center;
        min-height: 60px; 
    }
    .hide-desktop{
        display: none;
    }

    /*clases para el modal*/

    .modal-content {
        padding: 20px 30px 10px 30px;
        /* El modal ocupa más espacio en móvil para no verse demasiado pequeño */
        max-width: 450px;
        max-height: 90vh; /* Altura máxima del 90% de la pantalla */
        overflow-y: auto;
    }
    .modal-body .sub-title-card {
        font-size: var(--font-size-sublevel); 
        margin-bottom: 20px;
    }
    .forgot-password {
        /* Ocupa la segunda columna (columna 2 / final) */
        grid-column: 2 / 3; 
        text-align: right; 
        
    }
    #modal-Registro .form-group-terms .social-links-register {
        /* Checkbox de términos y condiciones, ocupa el ancho de dos columnas */
        grid-column: 1 / 3;
        
    }

    /*clases para las pestañas*/

    .tabs-container {
        /* Permite que Gamer y Eventos Ganados se muevan a la línea de abajo si no caben */
        flex-wrap: wrap; 
    }
    
    /* Regla para que en tablet (768px a 1024px) se muestren 2 arriba y 1 abajo. */
    .tab-button {
        flex-basis: calc(50% - 5px); /* 2 botones por línea */
        max-width: calc(50% - 5px);
        border-radius: 10px;
    }
    
    .tab-button:nth-child(3) { /* El tercer botón (Eventos ganados) */
        flex-basis: 100%; /* Ocupa todo el ancho en la línea de abajo */
        max-width: 100%;
    }
    
    .events-grid-dashboard {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    :root {
        --font-size-title: 32pt;
        --font-size-title-2: 32pt;
        --font-size-subtitle: 24pt;
        --font-size-text: 14pt;
    }
    
    /* REGLA REQUERIDA: OCULTA los iconos de fútbol y gamer SOLAMENTE en móvil */
    .elemento-responsive {
        display: none; 
    }

    .header-content .nav:first-child {
        display: flex; /* Mantiene la flexibilidad */
        align-items: center; 
        min-width: 100px; 
    }
    
    /* REGLA PARA EL LOGO: Asegura que no se apliquen transformaciones o tamaños no deseados */
    .logo-icon {
        display: block; /* Asegura que el logo se muestre */
        max-width: 100%; 
        height: auto; 
    }
    
    /* REGLA PARA EL HEADER: Centra los elementos que quedan */
    .header-content {
        justify-content: space-between; /* Mantiene el logo a la izquierda y los botones a la derecha */
        flex-wrap: nowrap; /* Evita saltos de línea indeseados en el header */
    }

    
    .event-card, .event-card-game {
        flex-basis: 100%;
        min-width: 90%; 
    }
    
    .hero-left, .hero-right {
        max-width: 100%;
        text-align: center;
    }

    .predictions-card ul {
        columns: 1; /* Para mejor lectura en pantallas pequeñas */
    }
    .nav {
        
        display: flex; 
        justify-content: flex-start; 
    }
    .footer-links, ul, li, a{
        text-align: center;
        align-items: center;
    }
   .sidebar-publicidad .publicidad-sidebar-2 {
            
            display: flex;
            flex-direction: column;
    }
    
    
    .publicidad-sidebar-2 img{
        width: 100%;
        
    }

    .bet-column {
        /* Por defecto: Las primeras 2 columnas ocupan casi 50% del ancho */
        flex-basis: calc(100% - 5px); /* 20% menos el gap/margen */
        max-width: calc(100% - 5px);
        width: 100%;
        padding: 5px 2px;
        text-align: center;
        min-height: 60px; 
        flex-direction: column;
    }
    .header-team{
        width: 100%;
    }

    /* Regla especial para la TERCERA columna (column-visitor) en móvil */
    /* Se fuerza al 100% para que siempre caiga a la línea de abajo */
    .bet-column.column-visitor {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 5px; /* Pequeño espacio para separarla de las de arriba */
    }

    
    /* El contenedor principal se pone horizontal */
    .prediction-main-wrapper {
        flex-direction: column; 
        align-items: flex-start; /* Alinea los elementos por arriba */
        justify-content: center; 
        align-items: center;
        padding: 20px 5px;
        gap: 30px;
    }
    
    /* El contenedor de tarjetas toma la mayor parte del espacio */
    .prediction-options-container {
        flex: 3; /* Más espacio para las tarjetas */
        flex-direction: row; /* Coloca las 3 tarjetas LADO A LADO */
        justify-content: center; 
        width: 95%;
    }
    
    /* La caja de asignación toma el espacio restante */
    .available-coins-box {
        flex: 1; /* Menos espacio para la caja de asignación */
        width: 400px;
        justify-content: center; 
    }
    
    .bettor-avatar{
        display: none;
    }
    .bet-list-row{
        padding: 0px 50px;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        
    }
    .hide-movil{
        display: none;
    }
    .hide-desktop{
        display: flex;
    }

    /*clases para el modal*/

    .modal-content {
        padding: 20px 30px 10px 30px;
        /* El modal ocupa más espacio en móvil para no verse demasiado pequeño */
        max-width: 350px;
        max-height: 90vh; /* Altura máxima del 90% de la pantalla */
        overflow-y: auto;
    }
    .modal-body .sub-title-card {
        font-size: var(--font-size-sublevel); 
        margin-bottom: 20px;
    }
    .form-group input {
        padding: 10px 12px;
        font-size: var(--font-size-text);
        
    }
    .btn-submit {
        padding: 12px 20px;
        font-size: var(--font-size-button-large);
    }
}

