body {
    background: black; 
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
}

#jugar, #contacto, #containerInfoRanking {
  scroll-margin-top: 76px;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
    align-items: center;
    background: black;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header a {
      color: inherit;         
      text-decoration: none;  
      cursor: auto;           
    }

header div {
    display: flex;
    align-items: center;
}

header img {
    width: 15px;
    height: auto;
}

header h1 {
    color: white;
    font-size: 1.3em;
    white-space: nowrap; 
    margin-left: 10px;
}

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

header nav a {
    color: #222;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 500;
    transition: color 0.2s;
}

header nav a:hover {
    color: #ff9800;
}

.dropdown-nav {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown-nav:hover .dropbtn {
    background-color: black;
}

.hamburger {
    display: inline-block;
    width: 26px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: background 0.2s;
}

footer {
    background: #fff;
    padding: 10px;
}


footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px 10px;
    font-size: 12px;
}

footer p {
    margin: 0;
    color: #222;
    font-size: 1em;
}

footer a {
    color: #222;
    text-decoration: none;
    margin: 0px 5px;
    font-weight: 500;
    transition: color 0.2s;
}

footer nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
}


footer nav a {
    color: #222;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
    transition: color 0.2s;
}

footer nav a:hover {
    color: #ff9800;
}

.Primera-vista {
    position: relative;
    width: 100%;
    height: 100vh; /* calc(100vh - 76px); */
    overflow: hidden;
}

.Primera-vista img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
    z-index: 1;
}

.texto-primera-vista {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;

    padding: 24px 16px;
    border-radius: 12px;
    z-index: 2;
}

.texto-primera-vista h2 {
    margin: 0 0 12px 0;
    font-size: 3em;
    font-weight: bold;
}

.texto-primera-vista p {
    margin: 0;
    font-size: 1.2em;
}



.container_muestra {
    position: relative;
    overflow: hidden;
    margin: 10px auto;

    max-width: 400px;
    max-height: 225px;
    /* box-shadow: #303030 0px 0px 10px; */
}

.container_muestra img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: brightness(0.6);
    z-index: 1;
}

.container_muestra h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -80%);
    color: #fff;
    text-align: center;
    z-index: 2;
}

.titulo-seccion-contacto {
    text-align: center;
    margin: 76px 0px 0px 0px;
}

.titulo-contacto {
    text-align: center;
    margin: 20px 0px 0px 0px;
    padding: 20px 30px 30px 30px;
    background: #232323;
}

.titulo-ranking {
    text-align: center;
    margin: 20px 0px 0px 0px;
    padding: 20px 30px 30px 30px;
    background-image: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
        url('/Images/ranking.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover; /* o 'contain' / 'cover' según necesites */
}

.titulo-informacion {
    text-align: center;
    margin: 20px 2px 40px 2px;
}

.titulo-informacion h2, .titulo-contacto h2, .titulo-seccion-contacto h2, .titulo-ranking h2 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 3em;
    font-weight: bold;
    border-bottom: 3px solid red; 
    display: inline-block;
}

.titulo-seccion-contacto h3 {
    color: white;
    margin: 0 0 12px 0;
    font-size: 1.5em;
    font-weight: bold;
}

.titulo-informacion p {
    color: white;
    font-weight: bold;
    margin: 3px;
}

.titulo-contacto p, .titulo-ranking p {
    color: white;
    margin: 3px;
}

.informacion-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

@media (min-width: 1200px) {
    .container_todos {
        display: flex;
        flex-direction: row;
        justify-content: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .container_muestra {
        max-width: 400px;
        max-height: 225px;
        margin: 10px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        box-shadow: #303030 0px 0px 10px;
    }
}

.container_info {
    margin: 76px 0 0 0; 
    text-align: center;
}

.container_info > img {
    display: block;
    width: 100vw;
    height: auto;
}

.toda_info h2 {
    color: #ffffff;
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 0px;
    display: inline-block;
    text-align: center;
}

.toda_info h3 {
    color: #a5a5a5;
    font-size: 1em;
    margin-bottom: 0px;
    margin-top: 10px;
    display: block;
    text-align: center;
}

.description h3 {
    color: #ff0000;
    font-size: 1.3em;
    margin: 0px;
    display: block;
    text-align: center;
    font-weight: normal;
}

.toda_info > div {
    padding: 10px 30px;
    color: #ffffff;
    font-size: 1em;
    line-height: 1.6;
    display: block;
    text-align: justify;
    word-break: break-word; /* Permite que el texto se divida en varias líneas si es necesario */
    white-space: normal;    /* Asegura que el texto se ajuste y salte de línea */
}

.dificultad, .info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dificultad img {
    width: 15px;
    object-fit: cover;
    margin: 4px;
    display: inline-block;
}

.info > div {
    margin: 0 10px; /* Espacio entre los elementos */
}

.info img {
    width: 25px;
    object-fit: cover;
    margin: 4px;
    display: inline-block;
    vertical-align: middle;
}

.info p {    
    font-size: 1em;
    display: inline-block;
}



.container_info_contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info_contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.tarjeta_contacto {
    background: #222222;
    color: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    height: 80px;
    margin: 0 10px 20px 10px;
    text-align: center;
    flex-direction: row;
    align-items: center;
    display: flex;
}

.tarjeta_contacto div {
    text-align: center;
    width: 100%;
}

.tarjeta_contacto h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.tarjeta_contacto a {
    color: #ffffff;
    text-decoration: none;
}

.tarjeta_contacto > img {
    width: 40px;
    margin: 0 10px;
    display: flex;
}

.tarjeta_contacto p {
    margin: 5px;
    font-size: 1em;
}

.mapa-contacto {
    width: 100%;
    height: 250px;
    border: 0;
}

@media (min-width: 1200px) {
    .container_info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 600px;
        width: 100%;
        overflow: hidden;       
    }

    .container_info > div {
        width: 50%;
        height: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .container_info > img {
        display: block;
        height: 100%;
        width: 50%;
        object-fit: cover;
    }

    .toda_info {
        display: block;
        margin: 0 20px;
    }

    .container_info_contacto > iframe {
        display: block;
        height: 400px;
        width: 50%;
        object-fit: cover;
    }

    .info_contacto {
        display: flex;
        flex-direction: row;
        margin: 20px 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
}

.btn-reservar-concreto {
    display: block;
    background: #ff0000;
    color: #fff;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1.1em;
    text-decoration: none;
    font-weight: 600;
    margin: 18px auto 0 auto; /* Centrado horizontal */
    text-align: center;
    width: fit-content;
    font-weight: bold;
}
.btn-reservar:hover {
    background: #c40000;
}



















.container_marcadores {
    margin: 76px 0 0 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container_todos button {
    background: none;       /* Sin fondo */
    border: none;           /* Sin borde */
    padding: 0;             /* Sin padding extra */
    cursor: pointer;
    font-family: inherit;   /* Mantiene la fuente */
    display: block;  /* Para que el tamaño se ajuste al contenido */
}

#containerInfoRanking {
    margin: 20px 0px; 
    display: none;
}

#containerInfoRanking h2 {
    color: white;
    margin: 20px 0 12px 0;
    font-size: 2em;
    font-weight: bold;
    display: block;
    text-align: center;
}

#tablaRanking table {
    margin: 20px 0;
    border-collapse: collapse;
    width: 100%;
}

#tablaRanking th, td {
    border: 1px solid #333;
    padding: 8px;
    text-align: center;
    white-space: Wrap; /* Permite que el texto se ajuste y salte de línea */
}

#tablaRanking caption {
    font-size: 2em;
    padding: 10px;
    font-weight: bold;
    color: white;
}

#tablaRanking th {
    background-color: red;
    color: white;
}

#tablaRanking tr:nth-child(even) {
    background-color: #ffbfbf;
}

#tablaRanking tr:nth-child(odd) {
    background-color: #ffe1e1;
}

/* Ancho mínimo por columna */
#tablaRanking th:nth-child(1),
#tablaRanking td:nth-child(1) {
    width: 20px;  /* Columna "Posición" */
}

#tablaRanking th:nth-child(2),
#tablaRanking td:nth-child(2) {
    width: 300px; /* Columna "Nombre de equipo" */
}

#tablaRanking th:nth-child(3),
#tablaRanking td:nth-child(3) {
    width: 100px; /* Columna "Tiempo" */
}

#tablaInfoResumen table {
    display: flex;
    justify-content: center;
    /* margin: 10px auto; */
    /* padding: 10px; */
    
    /* border: 2px solid red; */
    border-radius: 8px;
    /* background-color: #222222; */
    color: white;
}

#tablaInfoResumen th {
    padding: 5px 20px;
    font-weight: bold;
}

#tablaInfoResumen td {
    background-color: #252525;
    /* color: rgb(255, 120, 120); */
}