/* "Reseteo" Profesional */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ------------------------------------------ ENCABEZADO ------------------------------------------ */
.encabezado {
    display: flex;
    flex-flow: row wrap;
    text-align: center;
    justify-content: space-around;
    padding: 2px;
    background-color: #1a6b4a;
}

.encabezadoInicio {
    display: flex;
    flex-flow: row wrap;
    text-align: center;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 40px;
    background-image: url(img/club/clubCompleto.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 750px;
    width: 100%;
}

.escudo {
    height: 150px;
    width: 150px;
}

.rfaf {
    height: 120px;
    width: 100px;
}

.tarjeta {
    height: 120px;
    width: 235px;
}

.titulo {
    display: flex;
    align-items: center;
    gap: 30px;
    color: rgba(255, 255, 255);
    align-self: flex-start;
}

.paginas {
    display: flex;
    flex-flow: row wrap;
    gap: 30px;
    align-items: center;
    align-self: flex-start;
    margin-top: 65px;
}

.paginas a {
    color: rgba(255, 255, 255, 0.867);
    text-decoration: none;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.75);
    font-size: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    transition: 0.5s;
}

.paginas a:hover {
    cursor: pointer;
    color: rgb(255, 255, 255);
}

.paginas a.actual {
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    font-weight: bold;
}

/* ========== ENLACES PRINCIPALES ========== */
.paginas > a,
.desplegable > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
}

/* Barra de debajo (oculta por defecto) */
.paginas > a::before,
.desplegable > a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.25s;
}

/* En CLUB la barra no pasa por debajo de la flecha */
.desplegable > a::before {
    width: calc(100% - 14px);
}

/* Se ve al pasar el ratón y en la página actual */
.paginas > a:hover::before,
.desplegable:hover > a::before,
.paginas a.actual::before {
    transform: scaleX(1);
}

/* ========== FLECHITA ∨ ========== */
.desplegable > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s, margin-top 0.25s;
}

/* Gira hacia arriba al abrir el menú */
.desplegable:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

/* ========== SUBMENÚ ========== */
.desplegable {
    position: relative;
}

.submenu {
    position: absolute;
    top: calc(100% + 20px);
    left: -20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: auto;
    padding: 24px 0;
    background-color: #1a6b4a;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

    /* Oculto con animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

/* "Puente" invisible para no perder el hover en el hueco */
.submenu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.desplegable:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.paginas .submenu a {
    padding: 8px 32px;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    text-shadow: none;
}

.paginas .submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* El botón no se ve en escritorio */
.menu-toggle {
    display: none;
}

.barra-menu {
    display: contents;
}

/* ------------------------------------------ PRINCIPAL ------------------------------------------ */
h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    text-align: center;
}

.tituloIndex {
    color: #1a6b4a;
    text-shadow: 1px 0.2px 3px rgb(255, 255, 255);
}

h2 {
    text-align: center;
    color: #1a6b4a;
    font-size: clamp(2rem, 12vw, 12rem);
    font-family: 'Bebas Neue', sans-serif;
}

.fondoTitulos {
    background-image: url(img/club/fondo3.webp);
    background-size: cover;
    background-position: center;
    width: 74%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 2% auto 1.5%;
}


/* ------------------------------------------ PIE DE PÁGINA ------------------------------------------ */
.footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-style: normal;
    gap: 0;
    padding: 20px;
    padding-left: 420px;
    padding-bottom: 50px;
    background-image: url(img/club/pieDePag.webp);
    background-size: cover;
    background-position: center;
    color: rgb(255, 255, 255);
}

.footer p {
    margin: 30px;
    text-align: center;
    flex: 1;
    font-size: 18px;
}

.rrss {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    border-top: none;
    margin-left: 80px;
    margin-right: 80px;
}

.rrss a, .logoIcono{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #1a6b4a;
    background-color: rgb(255, 255, 255);
}

.ig {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.otros {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.copyright {
    text-align: center;
    font-size: 16px;
    color: rgb(255, 255, 255);
    padding: 10px;
    background-color: #7a1a2e;
    margin: 0.8px;
}


/* ------------------------------------------ INDEX ------------------------------------------ */
.intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.intro p {
    flex: 1;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.club {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.tarjetaClub {
    height: 250px;
    width: 460px;
    border-radius: 4px;
}

.noticias {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.noticiasTarjeta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    width: 380px;
    border: 2px solid #1a6b4a;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.noticiasTarjeta:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75);
}

.noticiasTarjeta h3 {
    color: #1a6b4a;
    margin: 0px;
    text-align: center;
}

.noticiasTarjeta p {
    font-size: 14px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0px;
}

.noticiasTarjeta img {
    width: 80%;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.noticiaFecha {
    font-size: 12px;
    color: #615d5d;
}

.noticiaLeerMas {
    font-size: 14px;
    font-weight: bold;
    color: #7a1a2e;
    text-decoration: none;
}

.patrocinadores {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.patrocinadores a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.patrocinador1 {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.patrocinador2 {
    width: 40%;
    height: auto;
    object-fit: contain;
}

.patrocinador3 {
    width: 35%;
    height: auto;
    object-fit: contain;
}

.patrocinador4 {
    width: 50%;
    height: auto;
    object-fit: contain;
}

/* ------------------------------------------ CLUB ------------------------------------------ */
.qnSomos {
    background-image: url(img/club/quienesSomos.webp);
    background-size: cover;
    background-position: center;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.qnSomosTexto {
    width: 42%;
    padding: 30px;
    margin-left: 18%
}

.qnSomosTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.2rem;
    transform: scaleY(1.2);
    color: #1a6b4a;
    margin: 0 0 18px -160px;
}

.qnSomosInfo {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    color: #1a6b4a;
    margin: 0;
    text-align: justify;
}

.qnSomosFrase {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.1rem;
    color: #1a6b4a;
    margin: 0 0 0 -1%;
    text-align: center;
}

.hitosFun {
    background-image: url(img/club/hitos1.webp);
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    text-align: center;
}

.hitosTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.2rem;
    transform: scaleY(1.2);
    color: #1a6b4a;
    margin-top: -15px;
}

.hitosContenidoFun {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 200px;
    align-items: flex-start;
    margin-top: 180px;
}

.hito1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 360px;
    height: 150px;
    margin-top: -1.4%;
    margin-left: 5.4%;
}

.hito2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
    height: 150px;
    margin-top: -1.4%;
}

.hito3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    height: 150px;
    margin-right: 5%;
    margin-top: 1%;
}

.hitosDep {
    background-image: url(img/club/hitos3.webp);
    background-size: cover;
    background-position: bottom;
    padding: 40px 20px;
    text-align: center;
}

.hitosContenidoDep {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 120px;
    align-items: flex-start;
    margin-top: 180px;
}

.hito4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    height: 150px;
    margin-left: 7.5%;
}

.hito5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 590px;
    height: 150px;
    margin-left: 3%;
}


.hito6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 530px;
    height: 150px;
    margin-right: 5%;
}
.hitosTexto {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    color: #1a6b4a;
    margin: 0;
    line-height: 1.4;
}

.obj {
    background-image: url(img/club/objetivos1.webp);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.objTexto {
    width: 48%;
    padding: 20px;
    margin-left: 5%;
}

.objTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.2rem;
    transform: scaleY(1.2);
    color: #1a6b4a;
    margin: 30px 0 18px 0;
}

.objInfo {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    color: #1a6b4a;
    margin: 0;
    text-align: justify;
}

.tarjetaClubImg {
    width: 60%;
    height: 45%;
    object-fit: contain;
    margin: 2% 0 10% 20%;
}

.dir {
    background-image: url(img/club/directiva1.webp);
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.dirTexto {
    width: 48%;
    padding: 20px;
    margin-left: 2%;
}

.dirTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.2rem;
    transform: scaleY(1.2);
    color: #1a6b4a;
    margin: 5% 0 1% 0;
}

.dirInfo {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 15px;
    color: #1a6b4a;
    margin: 0 0 4% 0;
    text-align: justify;
}

.fotoEquipacion {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* ------------------------------------------ TORNEOS ------------------------------------------ */
.torneos {
    padding: 20px;
}

.torneo {
    text-align: center;
}

.torneoTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.2rem;
    transform: scaleY(1.2);
    color: #1a6b4a;
    text-align: center;
    margin: 0 0 2.5% 0;
}

.torneoCartel {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
}

.torneoCartelFoto1 {
    width: 24%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.torneoCartelFoto2 {
    width: 24%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.torneoInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    margin-left: 0;
}

.seccion {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: #1a6b4a;
    border-bottom: 2px solid #1a6b4a;
    padding-bottom: 4px;
    margin: 5% 0 0 0;
}

.grupo {
    margin: 1% 0 0 0;
    font-size: 1.4rem;
}

.torneoEquipos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.torneoEquipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 6px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
}

.nombreEquipo {
    font-size: 1rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.torneoEscudo {
    width: 15%;
    height: 15%;
    object-fit: contain;
    margin: -4% 0 1% 0;
}

.torneoEquipoFoto {
    width: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.torneoResultados {
    display: grid;
    grid-template-columns: repeat(3, 400px);
    gap: 80px;
    justify-content: center;
    margin-top: 0.8%;
}

.torneoCategoria {
    border: 1px solid rgb(255, 255, 255);
    border-radius: 8px;
    overflow: hidden;
}

.torneoCatTitulo {
    background: #1a6b4a;
    color: rgb(255, 255, 255);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    padding: 8px 12px;
    text-align: center;
    margin: 0;
}

.torneoClasificacion {
    padding: 8px 10px;
    border-bottom: 1px solid rgb(255, 255, 255);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    margin-left: 18%;
}


/* ------------------------------------------ EVENTOS ------------------------------------------ */
.eventos {
    padding: 20px;
}

.eventosAnio {
    margin-bottom: 30px;
}

.anio {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #1a6b4a;
    border-bottom: 2px solid #1a6b4a;
    padding-bottom: 4px;
    margin-bottom: 15px;
}

.eventosTarjetas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eventoTarjeta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 0.5px solid #1a6b4a;
    border-radius: 8px;
}

.eventosCampeon {
    border: 2px solid #c8a84b;
    background-color: rgb(255, 255, 255);
}

.cartel {
    width: 160px;
    height: 226px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cartel1 {
    width: 160px;
    height: 195px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cartelLiga {
    width: 160px;
    height: 170px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.eventoInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eventoNombre {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #1a6b4a;
    margin: 0;
}

.eventosCampeon .eventoNombre {
    color: #8a6a00;
}

.campeones {
    display: inline-block;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgb(255, 255, 255);
    color: #8a6a00;
    border: 0.5px solid #c8a84b;
    vertical-align: middle;
    margin-left: 8px;
}

.eventoDesc {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #898888;
    margin: 0;
}

.trofeo {
    width: 400px;
    height: 226px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}


/* ------------------------------------------ MULTIMEDIA ------------------------------------------ */
.banner {
    text-align: center;
}

.fotografo {
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 6px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1rem;
    padding: 5px 14px;
    border-radius: 20px;
    background: #1a6b4a;
    color: white;
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: bold;
}

.fotografo:hover {
    background: #7a1a2e;
}

.galeria {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.galeriaEvento {
    display: flex;
    flex-direction: column;
}

.galeriaTitulo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #1a6b4a;
    border-bottom: 2px solid #1a6b4a;
}

.galeriaFotos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 1.5%;
}

.galeriaFoto {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.videos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.videosTarjeta {
    width: 400px;
    border: 0.5px solid #1a6b4a;
    border-radius: 8px;
    overflow: hidden;
}

.videosTarjeta a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.videoMiniatura {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.videoTitulo {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 01rem;
    font-weight: bold;
    color: #1a6b4a;
    padding: 10px;
    margin: 0;
    text-align: center;
}

.redesSociales {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    margin-left: 40%;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.logoEnlace {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    color: #1a6b4a;
    text-decoration: none;
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    background-color: transparent;
}

.logoEnlace:hover {
    color: #7a1a2e;
    text-decoration: underline;
}


/* ------------------------------------------ CONTACTO ------------------------------------------ */
.form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.formTarjeta {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 20px;
    width: 38%;
    border: 2px solid #1a6b4a;
    border-radius: 8px;
    transition: box-shadow 0.2s;
    background-image: url(img/club/Fondo1.webp);
    background-size: cover;
    background-position: center;
}

.formTarjeta:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.formTarjeta h3 {
    color: #1a6b4a;
    margin: 0 0 4%;
    text-align: center;
    font-size: 1.4rem;
}

.formTarjeta form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.formTarjeta form input,
.formTarjeta form textarea,
.formTarjeta form button {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.formTarjeta form label {
    margin-bottom: 5px;
}

button[type="submit"],
input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    padding: 1.5%;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #1a6b4a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #1a6b4a;
}

/* ------------------------------------------ MÓVIL ------------------------------------------ */
@media (max-width: 768px) {
    
    /* ENCABEZADO */
    .encabezado {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
        padding-bottom: 0;   /* la barra queda pegada al final de la cabecera */
    }

    .encabezado .titulo {
        flex-direction: row;
        text-align: center;
        gap: 8px;
        margin-bottom: 0;
    }

    .encabezadoInicio {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 10px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top center;
        min-height: 220px;
        position: relative;
    }

    .encabezadoInicio .titulo {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-left: -8%;
    }

    .encabezadoInicio .escudo {
        width:45px;
        height: 45px;
    }

    .encabezadoInicio h1 {
        font-size: 1rem;
    }

    .titulo {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .escudo {
        width: 56px;
        height: 56px;
    }

    /* ---------- BARRA DEL MENÚ (verde con bordes burdeos) ---------- */
    .barra-menu {
        display: flex;
        flex-direction: column;
        display: block;
        align-self: stretch;
        margin: 0 -15px;   
        padding: 0;
        background-color: #1a6b4a;
        border-top: 6px solid #7a1a2e;
        border-bottom: 6px solid #7a1a2e;
    }

    /* ---------- BOTÓN HAMBURGUESA ---------- */
    .menu-toggle {
        position: relative;
        display: block;
        width: 34px;
        height: 24px;
        margin: 14px auto;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        position: absolute;
        left: 0;
        width: 85%;
        height: 15%;
        background-color: #fff;
        border-radius: 3px;
        transition: top 0.2s, bottom 0.2s, transform 0.2s, opacity 0.2s;
    }

    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle span:nth-child(3) { bottom: 0; }

    /* X: las dos rayas van al centro y se giran */
    .menu-toggle.abierto span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-toggle.abierto span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.abierto span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* ---------- MENÚ (igual en todas las páginas) ---------- */
    :is(.encabezado, .encabezadoInicio) nav.paginas {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    :is(.encabezado, .encabezadoInicio) nav.paginas.abierto {
        display: flex;
    }

    .desplegable {
        width: 100%;
        margin-top: -1.6%;
    }

    /* Todos los enlaces principales: mismo tamaño y estilo */
    :is(.encabezado, .encabezadoInicio) nav.paginas > a,
    :is(.encabezado, .encabezadoInicio) nav.paginas .desplegable > a {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 18px 0;
        font-size: 0.85rem;
        font-weight: normal;
        letter-spacing: normal;
        color: #fff;
        background-color: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    /* Fuera la barra de subrayado en móvil */
    .paginas > a::before,
    .desplegable > a::before {
        display: none;
    }

    /* Página actual: fondo blanco, letra verde, MISMO tamaño que las demás */
    :is(.encabezado, .encabezadoInicio) nav.paginas a.actual {
        font-size: 0.85rem;
        font-weight: bold;
        background-color: #fff;
        color: #1a6b4a;
        text-shadow: none;
    }

    /* ---------- SUBMENÚ  ---------- */
    .submenu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
    }

    .submenu::before {
        display: none;
    }

    .desplegable.abierto .submenu {
        display: flex;
    }

    :is(.encabezado, .encabezadoInicio) nav.paginas .submenu a {
        justify-content: center;
        text-align: center;
        padding: 14px 0;
        font-size: 0.8rem;
        color: #fff;
        background-color: transparent;
    }

    /* La flecha gira al tocar, no al pasar el ratón */
    .desplegable > a::after,
    .desplegable:hover > a::after {
        transform: rotate(45deg);
        margin-top: -4px;
    }

    .desplegable.abierto > a::after {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    /* ---------- LO ÚNICO PROPIO DE INDEX ---------- */

    /* La barra se va al final de la cabecera, justo debajo de la foto.
       auto arriba = la empuja hacia abajo
       -10px a los lados = ocupa todo el ancho (la cabecera tiene 10px de padding) */
    /* La barra no ocupa sitio: así no mueve el nombre ni el escudo */
    .encabezadoInicio .barra-menu {
        display: contents;
    }

    /* El menú abierto sale justo debajo de la foto,
       con fondo verde y bordes burdeos como en las demás páginas.
       top = alto de la foto. 1.98 = ancho ÷ alto de tu foto del equipo */
    .encabezadoInicio nav.paginas {
        position: absolute;
        top: calc((100vw - 16px) / 1.98);
        left: 0;
        right: 0;
        z-index: 30;
        background-color: #1a6b4a;
        border-top: 6px solid #7a1a2e;
        border-bottom: 6px solid #7a1a2e;
    }

    /* Las 3 rayitas arriba a la derecha, junto al nombre del club */
    .encabezadoInicio .menu-toggle {
        position: absolute;
        top: 26.5px;
        right: 40px;
        margin: 0;
        z-index: 20;
    }


    /* TITULOS */
    h2 {
        font-size: 2rem;
    }

    .fondoTitulos {
        width: 100%;
        margin: 0;
        min-height: 150px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* INDEX */
    .intro {
        flex-direction: column;
    }

    .tarjetaClub {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .noticias {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .noticiasTarjeta {
        width: 90%;
    }
    .noticiasTarjeta img {
        max-height: 375px;
    }

    .noticiasTarjeta h3 {
        font-size: 0.9rem;
    }

    .noticiasTarjeta p {
        font-size: 12px;
    }

    .patrocinadores {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CLUB */
    .qnSomos {
        background-image: url(img/club/quienesSomos1.webp);
        background-size: cover;
        background-position: center;
        min-height: 900px;
        display: flex;
        align-items: center;
    }

    .qnSomosTexto {
        width: 95%;
        margin: 0 auto;
        margin-top: -10%;
        padding: 20px;
    }

    .qnSomosTitulo {
        font-size: 2rem;
        margin: -32% 0 2% 0;
        transform: none;
        text-align: right;
    }

    .qnSomosInfo {
        font-size: 0.8rem;
    }

    .qnSomosFrase {
        font-size: 1rem;
        margin: -5%;
    }

    .hitosFun {
        background-image: url(img/club/hitos2.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 800px;
        padding: 10px;
    }

    .hitosTitulo {
        font-size: 2rem;
        transform: none;
        margin-top: 11%;
    }

    .hitosContenidoFun {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 0;
    }

    .hito1 {
        width: 90%;
        height: 200px;
        text-align: center;
        margin-right: 4%;
    }

    .hito2 {
        width: 90%;
        height: 200px;
        text-align: center;
        margin-top: 9%;
        margin-bottom: 14%;
    }

    .hito3 {
        width: 90%;
        height: 200px;
        text-align: center;
        margin-left: 5%;
    }

    .hitosDep {
        background-image: url(img/club/hitos4.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 800px;
        padding: 10px;
    }

    .hitosContenidoDep {
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 0;
    }

    .hito4 {
        width: 90%;
        height: 200px;
        text-align: center;
        margin-right: 4%;
        margin-top: 4%;
    }

    .hito5 {
        width: 99%;
        height: 200px;
        text-align: center;
        margin-top: -8%;
        margin-bottom: 14%;
    }

    .hito6 {
        width: 90%;
        height: 200px;
        text-align: center;
        margin-left: 5%;
    }

    .hitosTexto {
        font-size: 0.8rem;
        margin-top: 22%;
    }

    .obj {
        background-image: url(img/club/objetivos2.webp);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
    }

    .objTexto {
        width: 103%;
        margin: 0 auto;
        padding: 20px;
        margin-left: -6%;
        font-size: 0.8rem;
    }

    .objTitulo {
        font-size: 2rem;
        margin-right: 8%;
        transform: none;
        text-align: right;
    }

    .objInfo {
        font-size: 0.8rem;
    }

    .tarjetaClubImg {
        margin: 20% 0 0 6%;
        width: 66%;
    }

    .dir {
        background-image: url(img/club/directiva2.webp);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 400px;
    }

    .dirTexto {
        width: 95%;
        padding: 20px;
        margin: 0 0 540px 0;
        font-size: 0.8rem;
    }

    .dirTitulo {
        font-size: 2rem;
        margin: 0;
        transform: none;
        text-align: center;
    }

    .dirInfo {
        font-size: 0.8rem;
        margin-top: -5%;
    }

    /* TORNEOS */
    .torneos {
        padding: 2%;
    }

    .torneoCartel {
        flex-direction: column;
        align-items: center;
    }

    .torneoCartelFoto1 {
        width: 60%;
        height: auto;
    }

    .torneoCartelFoto2 {
        width: 60%;
        height: auto;
    }

    .torneoTitulo {
        font-size: 2.4rem;
    }

    .torneoInfo {
        width: 95%;
        gap: 0;
        margin-left: 4%;
    }

    .torneoEscudo {
        width: 18%;
        object-fit: contain;
        margin: -12% 0 0 0;
    }

    .torneoEquipos {
        grid-template-columns: repeat(2, 1fr);
    }

    .torneoEquipo {
        width: 100%;
    }

    .nombreEquipo {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.85rem;
    }


    .torneoCatTitulo {
        font-size: 1.2rem;
    }

    .torneoClasificacion {
        font-size: 0.9rem;
        margin-left: 4%;
    }

    .torneoResultados {
        grid-template-columns: repeat(1, 280px);
        gap: 15px;
    }

    .seccion {
        font-size: 2rem;
    }

    /* EVENTOS */
    .eventoTarjeta {
        flex-direction: column;
        align-items: center;
    }

    .cartel {
        width: 80%;
        height: auto;
    }

    .trofeo {
        width: 80%;
        height: auto;
    }

    /* MULTIMEDIA */
    .fotografo {
        font-size: 0.5rem;
        padding: 2px 10px;
    }
    .galeriaFotos {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos {
        flex-direction: column;
        align-items: center;
    }

    .videosTarjeta {
        width: 90%;
    }

    .redesSociales {
        margin-left: 10%;
    }

    /* CONTACTO */
    .formTarjeta {
        width: 90%;
        height: auto;
    }

    .formTarjeta h3 {
        margin: 0 0 8%;
        font-size: 1.2rem;
    }

    button[type="submit"],
    input[type="submit"] {
        -webkit-appearance: none;
        appearance: none;
        padding: 2.5%;
    }

    /* FOOTER */
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
        padding-left: 20px;
        padding-bottom: 20px;
        background-position: left center;
    }

    .footer p {
        margin: 10px 0;
        font-size: 14px;
    }

    .rrss {
        margin: 10px 0;
        justify-content: center;
    }

    .copyright {
        font-size: 13px;
    }
}