* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: relative;
    background-image: url(ciudad.png);
}

/* barra de navegacion*/

.navegacion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}


.navegacion {
    position: fixed;
    top: 0; /* Alineación en el borde superior */
    width: 100%; /* Ancho total */
    z-index: 1000; /* Prioridad visual */
    background-color: transparent; /* Fondo transparente */
    padding: 10px 5%; /* Espaciado interno responsive */
    display: flex; /* Alinea elementos en fila */
    justify-content: space-between; /* Distribuye espacio entre elementos */
    align-items: center; /* Centrado vertical */
    font-weight: bold;
    transform: translateY(0); /* Inicialmente visible */
    transition: transform 0.3s ease-in-out; /* Animación de desplazamiento */
}



.navegacion ul li a {
    color: rgb(255, 255, 255); /* Color del texto */
    text-decoration: none; /* Sin subrayado */
    font-size: 16px;
    position: relative; /* Necesario para la animación */
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap; /* Evita saltos de línea */
}

.navegacion ul li a::after {
    content: ""; /* Crea el efecto de línea */
    position: absolute; /* Línea colocada debajo del texto */
    bottom: -3px; /* Espaciado desde el texto */
    left: 50%; /* Comienza en el centro */
    width: 0; /* Inicialmente oculta */
    height: 2px; /* Grosor de la línea */
    background-color: white; /* Color de la línea */
    transform: translateX(-50%); /* Centra la línea */
    transition: width 0.3s ease; /* Efecto de animación */
}

.navegacion ul li a:hover::after {
    width: 100%; /* Expande la línea al hacer hover */
}

.logo {
    flex: 1; /* Ocupa espacio disponible */
    z-index: 1001; /* Asegura que esté sobre otros elementos */
}

.logo a {
    color: rgb(255, 255, 255); /* Texto blanco */
    text-decoration: none; /* Sin subrayado */
    font-size: 30px; /* Tamaño destacado */
    font-weight: bold; /* Negrita */
    font-family: "Abyssinica SIL", serif; /* Fuente elegante */
    transition: all 0.3s ease;
}

.logo a:hover{
    transform: scale(105);
}

.navegacion nav ul {
    list-style: none; /* Elimina los puntos de las listas */
    display: flex; /* Alinea los enlaces en fila */
    gap: 25px; /* Espaciado entre los enlaces */
    margin: 0;
    padding: 0;
}

.navegacion nav ul li a {
    color: rgb(255, 255, 255); /* Texto blanco */
    text-decoration: none; /* Sin subrayado */
    font-size: 16px; /* Tamaño del texto */
    position: relative; /* Necesario para la animación de la línea */
    transition: all 0.3s ease; /* Animaciones suaves */
    font-weight: 500;
    white-space: nowrap; /* Evita saltos de línea */
    
}

.navegacion nav ul li a:hover {
    transform: scale(1.1); /* Agrandamiento al pasar cursor */
}

.navegacion nav ul li a::after {
    content: ""; /* Línea decorativa */
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(0, 0, 0);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after {
    width: 100%; /* Muestra la línea al hacer hover */
}

.entrar {
    flex: 1; /* Ocupa espacio disponible */
    display: flex;
    justify-content: flex-end; /* Alinea a la derecha */
    z-index: 1001; /* Asegura que esté sobre otros elementos */
}

.ingresar-btn {
    background-color: #000000;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ingresar-btn:hover {
    background-color: #0066cc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.ingresar-btn:active {
    background-color: #002f60;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-container {
    position: fixed; /* Fija el botón en la pantalla */
    top: 20px; /* Separación desde la parte superior */
    right: 150px; /* Separación desde el lado derecho */
    z-index: 1000; /* Asegura que se muestre por encima de otros elementos */
    display: flex; /* Flexbox en caso de más botones */
    justify-content: flex-end; /* Alineación a la derecha */
    align-items: center; /* Centrado vertical del botón */
    
}


/* Estilo del enlace */
.button-container a {
    background-color: #000000; /* Azul oscuro */
    color: white; /* Texto blanco */
    font-size: 16px; /* Tamaño del texto */
    font-weight: bold; /* Negrita */
    text-decoration: none; /* Quita el subrayado del enlace */
    border: none; /* Sin borde */
    border-radius: 20px; /* Bordes redondeados */
    padding: 10px 20px; /* Espaciado interno */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    cursor: pointer; /* Icono de mano para indicar interactividad */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Suaviza el efecto hover */
}

/* Hover sobre el enlace */
.button-container a:hover {
    background-color: #0066cc; /* Azul más claro */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Sombra más marcada */
}

/* Active al hacer clic */
.button-container a:active {
    background-color: #002f60; /* Azul más intenso */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduce la sombra */
}

/* =================== SLIDER =================== */

.titulo{
    text-align: center;
    color: #ffffff;
    font-size: 40px;
   
}

.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Ocupa toda la pantalla */
    height: 100vh; /* Ocupa toda la pantalla */
}

.slider {
    position: relative; /* Permite posicionar los slides correctamente */
    width: 100vw;
    height: 100vh;
}

.slide {
    position: absolute; /* Superpone las imágenes */
    width: 100vw;
    height: 100vh;
    opacity: 0; /* Inicialmente ocultas */
    transition: opacity 1s ease-in-out; /* Transición suave */
}

.slide.active {
    opacity: 1; /* Solo el slide activo será visible */
}

.slide img {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Mantiene la imagen ajustada sin distorsión */
}

/* Botones de navegación */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
}

.arrow.prev {
    left: 10px;
}

.arrow.next {
    right: 10px;
}

/* Indicadores de Slider */
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #0d1097;
}

/* =================== SECCIÓN DEPORTISTAS =================== */


.deportistas {
    padding: 80px 20px 50px;
    background-color: #ffffff;
    text-align: center;
}

.deportistas h1 {
    color: #004080;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}





/* =================== TARJETAS =================== */
.card {
    position: relative;
    width: 280px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f4f4f4;
    cursor: pointer;
    width: calc((100% - 90px) / 4); /* Divide el ancho total entre 4, considerando el gap */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Imagen opaca al pasar el mouse */
.card:hover img {
    opacity: 0.25;
    transform: scale(1.05);
}

/* Contenido centrado */
.card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 15px;
    transition: opacity 0.3s ease;
    opacity: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

/* Mostrar contenido al hacer hover */
.card:hover .content {
    opacity: 1;
}

.card .content h2 {
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.card .content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-width: 240px;
    word-wrap: break-word;
}


.deportistas {
    padding-top: 80px; /* Espaciado superior para evitar solapamientos */
    margin-top: 100vh; /* Empuja el contenido debajo del slider */
    padding: 80px 20px 50px; /* Espaciado interno */
    background-color: #ffffff; /* Fondo blanco para tarjetas */
    text-align: center;
}

.deportistas h1 {
    color: #004080; /* Color azul oscuro */
    font-size: 36px; /* Tamaño grande */
    font-weight: bold; /* Texto en negrita */
    margin-bottom: 30px; /* Espaciado inferior */
    text-transform: uppercase; /* Texto en mayúsculas */
    letter-spacing: 2px; /* Espaciado entre letras */
}

.gallery {
    display: flex; /* Flexbox para las tarjetas */
    flex-wrap: wrap; /* Acomoda tarjetas en múltiples filas */
    gap: 30px; /* Espaciado entre tarjetas */
    justify-content: center; /* Centra las tarjetas horizontalmente */
    align-items: center; /* Centra las tarjetas verticalmente */
    margin-left: 4%;
    margin-right: 4%;
   
}



.container-deportistas{
    background-color: #002f60;
}