* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    /* ¡IMPORTANTE! Asegúrate que '/Img/' tenga la misma capitalización que tu carpeta en GitHub */
    background-image: url('/Img/fondo.png'); 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Estilos navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #2F3E4E;
    color: white;
    position: relative;
}

.logo-container {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.texto-centro {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.texto-centro h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.texto-centro p {
    font-size: 0.9rem;
    color: #ccc;
}


.home-btn-container {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
}

.home-btn-background {
    background-color: white;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.home-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.home-btn:hover .home-btn-background {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Diseño responsive - Manteniendo la misma disposición */
@media (max-width: 992px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }
    
    .texto-centro h1 {
        font-size: 1.3rem;
    }
    
    .texto-centro p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .texto-centro h1 {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .home-img {
        height: 20px;
    }
    
    .home-btn-background {
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .texto-centro h1 {
        font-size: 1rem;
    }
    
    .texto-centro p {
        display: none;
    }
    
    .home-img {
        height: 18px;
    }
    
    .home-btn-background {
        padding: 5px;
        border-radius: 4px;
    }
}


/* PALETA DE COLORES */
:root {
  --color-primario: #2F3E4E;
  --color-secundario: #3A6EA5;
  --color-borde: #E1E8ED;
}

/* ESTRUCTURA PRINCIPAL*/

.Titulo {
    background-color: white;
    padding: 0.5rem 0.5rem;
    border: 2px solid #2F3E4E;
    border-radius: 10px 30px 60px 120px; 
    margin: 0 auto 1.5rem auto;
    text-align: center;
    max-width: 55%;
}

.contenido-principal {
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* CONTENEDOR DE DEPORTES */
.contenedor-deportes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}


.tarjeta-deporte {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.8rem; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    min-height: 120px; 
    border-radius: 10px 60px 30px;
    border: 1px solid var(--color-borde);
}

/* ELEMENTOS INTERNOSS */
.icono-deporte {
    width: 70px;
    height: 70px;
    margin-right: 1.5rem; 
    object-fit: contain;
}

.info-deporte h3 {
    font-size: 1.3rem; 
    color: var(--color-primario);
    margin-bottom: 0.5rem;
}

.info-deporte p {
    font-size: 1rem; 
    color: #666;
}

/* BOTÓN IR  */
.boton-ir {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--color-secundario);
    color: white;
    padding: 0.6rem 1.2rem; 
    border-radius: 8px;
    font-size: 1rem; 
    transition: all 0.2s;
}


.titulo-seleccion {
    font-size: 2rem; 
    color: var(--color-primario);
    text-align: center;
    margin-bottom: 0.8rem;
}

.subtitulo {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contenedor-deportes {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .contenido-principal {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .tarjeta-deporte {
        padding: 1.8rem 1.5rem;
        min-height: 110px;
    }
    
    .icono-deporte {
        width: 60px;
        height: 60px;
    }
    
    .boton-ir {
        padding: 0.5rem 1rem;
    }
    
    .titulo-seleccion {
        font-size: 1.8rem;
    }
}


.tarjeta-deporte {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: white;
    border: 1px solid #e2e8f0;
}

.tarjeta-deporte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2F3E4E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}


.tarjeta-deporte {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
    background: white; 
}


.tarjeta-deporte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2F3E4E; 
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s ease;
    z-index: -1;
}


.tarjeta-deporte {
    position: relative;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.28, 0.84, 0.42, 1); 
    z-index: 1;
    background: white;
    border: 1px solid rgba(47, 62, 78, 0.1);
}


.tarjeta-deporte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2F3E4E;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: 
        transform 0.9s cubic-bezier(0.28, 0.84, 0.42, 1),
        opacity 0.4s ease;
    z-index: -1;
    opacity: 0.8;
}

.tarjeta-deporte:hover::before {
    transform: scaleY(1);
    opacity: 1; 
}


.tarjeta-deporte .info-deporte h3,
.tarjeta-deporte .info-deporte p {
    transition: color 0.6s 0.2s ease-out; 
}

.tarjeta-deporte .icono-deporte {
    transition: filter 0.5s 0.15s ease-out;
}

.tarjeta-deporte .boton-ir {
    transition: 
        background 0.5s 0.15s ease-out,
        color 0.5s 0.15s ease-out,
        border 0.5s 0.15s ease-out;
}


.tarjeta-deporte {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: white;
    border: 1px solid #e2e8f0; 
}


.tarjeta-deporte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2F3E4E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.tarjeta-deporte:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.tarjeta-deporte:hover .info-deporte h3,
.tarjeta-deporte:hover .info-deporte p {
    color: white !important;
    transition: color 0.3s 0.2s; 
}


.tarjeta-deporte .icono-deporte {
    transition: 
        filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s,
        transform 0.4s ease-out;
    will-change: filter, transform; 
}

.tarjeta-deporte:hover .icono-deporte {
    filter: 
        invert(99%) 
        sepia(1%) 
        saturate(50%) 
        brightness(125%); 
    transform: 
        scale(1.08) 
        rotate(2deg); 
}

/* BOTÓN */
.tarjeta-deporte .boton-ir {
    transition: 
        background 0.5s ease-in-out 0.1s,
        color 0.4s ease-out 0.1s,
        border-color 0.4s ease-out,
        box-shadow 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.1),
        transform 0.3s ease-out;
    will-change: transform, background;
}

.tarjeta-deporte:hover .boton-ir {
    background: white !important;
    color: #2F3E4E !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 3px 12px rgba(255, 255, 255, 0.4),
        0 2px 0 rgba(47, 62, 78, 0.1) inset; 
    transform: 
        translateY(-3px) 
        scale(1.02); 
}


.tarjeta-deporte {
    border: 1px solid rgba(47, 62, 78, 0.15); 
    transition: border-color 0.6s ease-in-out;
}

.tarjeta-deporte:hover {
    border-color: rgba(255, 255, 255, 0.3); 
}
