/* General */
body {
    margin: 0;
    padding: 0;
    background-color: #184887;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

a, a :hover {
    color:#ffffff;
    text-decoration: underline;
}

b {
    letter-spacing: 0.07em;
}

#contenedor {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
#logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

#logo img {
    width: 50%;
}

/* Separadores */
.separador img,
.separador-abajo img {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* Texto */
#texto {
    width: 100%;
    background-color: #1d5399;
    text-align: left;
    display: flex;
    justify-content: center;
}

#texto p {
    color: #ffffff;
    font-size: 1.3em;
    margin: 1em 15%;
}

#mensaje-general{
    width: 100%;
    margin: 0;
    background-color: #1d5399;

}

#mensaje-error{
    width: 50%;
    padding: 5% 10%;
    margin: 1em 15%;
    text-align: center;
    border-radius: 14px;
    color: #ffffff;
    background-color: #ff3737;
    display:inline-block;

}

#mensaje-exito{
    width: 50%;
    padding: 5% 10%;
    margin: 1em 15%;
    text-align: center;
    border-radius: 14px;
    color: #ffffff;
    background-color: #00bd4f;
    display:inline-block;

}

/* Formulario */
#formulario {
    width: 100%;
    background-color: #1d5399;
    display: flex;
    justify-content: center;
    overflow: visible; /* <- Asegura que la sombra no se corte */
}

#form-general {
    width: 100%;
    margin: 0 15%;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#form-general input {
    width: 100%;
    padding: 0.75em;
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    font-size: 1em;
    text-align: center; /* Centra el placeholder */
    box-sizing: border-box; /* Evita que el padding o border lo haga sobresalir */
}

.select-wrapper {
    position: relative;
    width: 100%;
}

/* Select con estilo plano */
#form-general select {
    width: 100%;
    padding: 0.75em;
    padding-right: 2.5em; /* Espacio para la flecha decorativa */
    border: none;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    color: #888888;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Flechita decorativa */
.select-wrapper::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.9em;
    color: #666666;
}

/* Estilo gris para la opción "placeholder" */
#rol option[disabled][selected] {
    color: #888888;
}


#form-general button {
    width: 100%;
    padding: 0.75em;
    background-color: #79c7fd;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.3);
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    box-sizing: border-box;
    margin-bottom: 1em; /* Agrega espacio debajo del botón para que se vea la sombra */
}

/* Mostrar u ocultar password */
.password-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.password-wrapper input {
    flex: 1;
}

#form-general button.toggle-password {
    all: unset;
    cursor: pointer;
    margin-left: 0.5em;
    font-size: 1.2em;
    color: #ddd;
}

.mensaje-campo{
width: 100%;
text-align: center;
margin: 0;
padding: 0;
color: #ff3737;

}




/************  HOME      ******************/

#menu{
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

#logomenu{
    width: 18%;
    margin: 5% 0 0 10%;
    float: left;
}

#logomenu img{
    width: 100%;
}

#botsmenu{
    width: 40%;
    height: auto;
    margin: 5% 10% 0 0;
    float: right;
}

#bothome{
    margin: 0;
    padding: 0;
    width: 33%;
    height: auto;
    float: right;
}

#bothome img{
    width: 100%;
}

#botranking{
    margin: 0;
    padding: 0;
    width: 33%;
    height: auto;
    float: right;
}

#botranking img{
    width: 100%;
}

#botstats{
    margin: 0;
    padding: 0;
    width: 33%;
    height: auto;
    float: right;
}

#botstats img{
    width: 100%;
}


/* Texto */
#texto-home {
    width: 100%;
    background-color: #1d5399;
    text-align: left;
}

#texto-home h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin: 1em 10%;
    font-weight: 100;
}

#texto-home h2 {
    color: #ffffff;
    font-size: 2.0em;
    margin: 0.2em 10%;
    font-weight: 100;
}

#texto-home p {
    color: #ffffff;
    font-size: 1.3em;
    margin: 1em 10%;
}

.editardatos{
    color: #518fe0;
    text-decoration: none;
    line-height: 2em;
}

#texto-home hr {
    width: 15%;
    background-color: #518fe0;
    height: 5px;
    border:none;
    margin: 0 0 0 10% ;
}

/*****CURSOS********/

/* Texto */
#cursos {
    width: 100%;
    text-align: left;
}

#cursos h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin: 1em 10%;
    font-weight: 100;
}

#cursos p {
    color: #ffffff;
    font-size: 1.3em;
    margin: 1em 10%;
}

#cursos p img {
    width: 100%;
    margin: 5% 0 0 0;
    padding: 0;
}

.titulo-curso{
    font-size: 1.5em;
    font-weight: 100;
}

.link-curso{
    text-decoration: none;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/****** RANKING  *******/

.ranking{
    width: 80%;
    height: auto;
    margin: 10% 10% 0 10%;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;

}

.fila-impar{
    background-color: #518fe0;
    width: 100%;
    height: auto;
    padding: 0.5em 0 0.5em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;

}

.fila-par{
    background-color: #3f7ccd;
    width: 100%;
    height: auto;
    padding: 0.5em 0 0.5em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;

}

.fila-usuario{
    background-color: #ebb400;
    width: 100%;
    height: auto;
    padding: 0.5em 0 0.5em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;

}

.posicion{
    width: 10%;
    float: left;
    text-align: center;
    font-weight: bold;
}

.nombre{
    width: 65%;
    float: left;
    text-align: left;
}

.puntaje{
    width: 15%;
    float: left;
    text-align: right;
    font-weight: bold;
}

.pts{
    width: 10%;
    float: left;
    text-align: center;
    font-size: 0.7em;
}

/********   POSICIONES DEL RANKING FINAL   ********/

.ranking-final{
    width: 80%;
    height: auto;
    margin: 1% 10% 10% 10%;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;

}

.fila-primero{
    background-color: #ebb400;
    width: 100%;
    height: auto;
    padding: 1em 0 1em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;
}

.fila-segundo{
    background-color: #d78500;
    width: 100%;
    height: auto;
    padding: 1em 0 1em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;
}

.fila-tercero{
    background-color: #bb6100;
    width: 100%;
    height: auto;
    padding: 1em 0 1em 0;
    overflow: hidden;
    content: "";
    display: table;
    clear: both;
}


/******* ESTADISTICAS *********/

.fila-stats {
    width: 80%;
    margin: 2% 10% 0 10%;
    display: flex;
    justify-content: space-between;
    /*gap: 1%;  espacio entre columnas si querés */
}

.celda-stats-1,
.celda-stats-2 {
    width: 48%;
    margin: 0 1%;
    background-color: #3f84dd; /* o #2c6fc5 para la segunda */
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
    color: white;
}

.celda-stats-2 {
    background-color: #2c6fc5;
}

/* Fila que contiene el título y la pregunta */
.fila-superior {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5%;
}

.titulo-stats {
    width: 69%;
    margin: 5% 0 0 6%;
    color: #ffffff;
}

.question {
    width: 20%;
    margin: 5% 0 0 0;
}

.question img {
    width: 100%;
    display: block;
}

/* Contenido nuevo debajo */
.valor-stats {
    width: 100%;
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color:#fff27e;
    margin: 0 0 5% 0;
}


/***** DIV Explicaciones   *******/


/* Ocultar por defecto */
#modalOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modalContenido {
    width: 50%;
    max-width: 600px;
    background-color: white;
    padding: 2em;
    border-radius: 8px;
    text-align: center;
    color: #3d3d3d;
    font-size: 1em;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}


.dropdown-popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 0.5em;
    z-index: 100;
}

.dropdown-popup div {
    padding: 0.5em 1em;
    cursor: pointer;
}

.dropdown-popup div:hover {
    background-color: #eee;
}