* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #2b2b2b;
}

h2, h3 {
    font-weight: 700;
}

.rojo {
    color: #c80000;
}

/* ===== HEADER ===== */
.header {
    background: #c80000;
    color: white;
    padding-bottom: 5px;
    border-bottom: 5px solid #a40000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.top-bar h2 {
    text-align: right;
    line-height: 1.2rem;
    font-size: 1rem;
    font-weight: 600;
}

.logo-header {
    width: 70px;
}

.navbar {
    display: flex;
    gap: 25px;
    padding: 10px 25px;
    font-size: 1rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding-bottom: 0px;
    font-weight: 600;
    border-bottom: 4px solid transparent;
}

/* ===== SECCIÓN INICIO ===== */
.inicio-section {
    padding: 35px 20px;
}

.bienvenidos {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
}

.banner-central {
    text-align: center;
    margin: 35px auto;
    background: #ffffff;
    border: 3px solid #c80000;
    padding: 30px;
    border-radius: 10px;
    max-width: 650px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.banner-central .logo-grande {
    width: 150px;
    margin-bottom: 15px;
}

hr {
    margin: 35px 0;
    border: none;
    border-top: 3px solid #c80000;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.imagen-club img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* ===== NOVEDADES ===== */
.novedades-section {
    padding: 20px;
}

.novedades-section h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.novedad {
    background: #ededed;
    padding: 18px;
    margin-bottom: 18px;
    border-left: 8px solid #c80000;
    border-radius: 8px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.15);
}

.novedad h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.fecha {
    display: block;
    text-align: right;
    color: #666;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ===== UBICACIÓN ===== */
.ubicacion-section {
    padding: 25px;
}

.ubicacion-section h2 {
    font-size: 1.7rem;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.direccion, .horarios {
    background: #f2f2f2;
    padding: 18px;
    border-left: 8px solid #c80000;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
}

.mapa iframe {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.25);
}

.orgullo {
    text-align: center;
    margin-top: 35px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #c80000;
}

/* ===== FOOTER ===== */
.footer {
    background: #c80000;
    color: white;
    padding: 25px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    border-top: 5px solid #a40000;
}

.footer div {
    margin: 10px 0;
}

.social a {
    margin: 0 8px;
    font-size: 1.4rem;
    text-decoration: none;
    color: white;
}

.LetrasRojas {
    color: #d50000;
}

/* ===== HEADER ===== */
.top-bar {
    /*position: relative;*/
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    flex-direction: row-reverse;
}

.top-bar .titulo-header {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 35px;   
    font-weight: 600;
}

.brand-block {
    display: flex;
    flex-direction: column;
}

/* Logo a la derecha */
.logo-header {
    height: 110px;
    width: 100px;
    border-bottom: 3px solid #ffffff;
}

.titulo-header {
    margin: 0;
}

.web-oficial {
    font-size: 0.8rem;              
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* ===== INICIO CON PANEL AL COSTADO ===== */


.inicio-textos {
    width: 100%;
    line-height: 1.9;
    
}

.logo-lateral {
    width: 100%;
    max-width: 400px;
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    margin: auto;
    align-items: center;
    margin-bottom: 30px;
}


/* ===== IMAGEN LOGO CLUB COMUNIDAD ===== */

.imagen-club img {
    width: 80%;
    max-width: 600px;
    display: block;
    margin: auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

/* ===== Imagenes apartado, novedades ===== */
.Comodoro {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.FutbolTrofeos {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.VoleyCancha {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}


/* ===== UBICACIÓN AJUSTADA A LA IZQUIERDA ===== */

.ubicacion-grid-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.direccion {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.horarios {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.mapa iframe {
    height: 100%;
    width: 100%;
}
.mapa {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: stretch;
    line-height: 1.9;
}

.direccion, .horarios {
    background: #f8f8f8;
    border-left: 8px solid #c80000;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    width: 100%;
    text-align: center;
}

/* ===== ICONOS REDES SOCIALES EN FOOTER ===== */
.footer .social {
    display: flex; 
    gap: 15px; 
    font-size: 28px; 
}

/* Estilos para los enlaces de iconos */
.footer .social a {
    color: white; 
    text-decoration: none;
    transition: color 0.3s ease; 
}

/* Efecto al pasar el mouse (hover) */
.footer .social a:hover {
    color: #E1306C; 
}

.footer .social a[title="Instagram"]:hover {
    color: #E1306C;
}

.footer .social a[title="WhatsApp"]:hover {
    color: #25D366; 
}

.footer .social i {
    font-size: 32px;
    transition: transform 0.3s ease;
}

.footer .social i:hover {
    transform: scale(1.2);
}

/* Navbar */
nav {
    display: flex;
    align-items: center;
    background-color: #c40000;
    padding: 10px;
    gap: 20px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 30px;
    left: 0;
    background-color: #8b0000;
    padding: 10px 0;
    border-radius: 5px;
    display: none; /* Oculto por defecto */
    min-width: 120px;
    z-index: 20;
    cursor: pointer;
}

.dropdown-menu a {
    display: block;
    padding: 6px 15px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-menu a:hover::before {
    content: "● ";
    color: white;
}

/*
.dropdown:hover .dropdown-menu {
    display: block;  AQUÍ SE ACTIVA EL PANEL 
}*/

/* Prueba */

.test {
  font-size: 17px;
  color: #e1e1e1;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  text-transform: uppercase;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.test:focus,
.test:hover {
  color: #fff;
}

.test:focus:after,
.test:hover:after {
  width: 100%;
  left: 0%;
}

.test:after {
  content: "";
  pointer-events: none;
  bottom: -2px;
  left: 50%;
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}

/* animacion al pasar el cursor */

.cursor:hover {
  transform: scale(1.1);
}

/* ocultar elemento*/
.oculto {
    display: none;
}

                                                                /* ===== SECCIÓNES ===== */

 /* ===== SECCIÓN Handball ===== */

.Handball {
    margin-top: 20px;
    text-align: center; 
}
.contenedor-handball {
    display: flex; 
    width: 100%;
    padding: 0 40px;
    gap: 40px;
}

.col-textos-handball {
    flex: 1;
    display: flex;
    flex-direction: column; /* acá está la clave */
    gap: 20px;
}

.HCaballeros {
    margin-top: 20px;
    text-align: center; 
}

.HDamas {
    margin-top: 20px;
    text-align: center; 
}

.col-imagenes-handball {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.novedades-handball {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.tabla-handball {
    width: 100%;
    border-spacing: 0;
    border-radius: 200px;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
    box-shadow: -20px 18px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
}

.header-table-handball th {
    color: #fff; 
    text-align: center;
    padding: 10px;
    border: 3px solid #cc0000;
    text-transform: uppercase;
    background-color: #cc0000;
}

.data-table1 td, 
.data-table2 td {
    background-color: #f9f9f9;
    padding: 20px;
    border-bottom: 3px solid #cc0000;
    border-left: 3px solid #cc0000;
    font-size: 16px;
    box-shadow: none;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}



#datoDelMedio {
    border-right: 3px solid #cc0000;
}
#ultimoDato {
    border-right: 3px solid #cc0000;
    border-bottom-right-radius: 20px;
}
#viernes {
    border-top-right-radius: 20px;
}
#categorias {
    border-top-left-radius: 20px;
}
#Minis {
    border-bottom-left-radius: 20px;
}


/* Estilo de texto dentro de las celdas */
.tabla-handball td {
    color: #333;
    font-size: 16px;
}

.ImagenHandball {
    max-width: 250px;
    min-width: 150px;
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    margin-left: 20px;
    margin-right: 20px;

    margin: 0;              /* sin márgenes que la separen */
}

.ImagenHandball img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SECCIÓN Futbol ===== */

.Futbol {
    margin-top: 20px;
    text-align: center; 
}

.contenedor-futbol {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-futbol {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 50%;
    flex-grow: 1;
}

.ImagenFutbol {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenFutbol img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SECCIÓN Voley ===== */

.Voley {
    margin-top: 20px;
    text-align: center; 
}

.contenedor-voley {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-voley {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 50%;
    flex-grow: 1;
}

.ImagenVoley {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenVoley img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SECCIÓN Patin ===== */

.Patin {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-patin {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-patin {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.ImagenPatin {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenPatin img {
    display: block;
    width: 100%;
    height: auto;
}

.col-textos-Patin {
    flex: 1;
    display: flex;
    flex-direction: column; /* acá está la clave */
    gap: 20px;
}

.col-imagenes-Patin {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.PatinImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
    transition: opacity 0.5s ease;
    align-items: center;
    justify-content: center;
}

.centro-Patin {
    width: 100%;
    display:flex;
    justify-content: center;
    align-items: center;
}


/* ===== SECCIÓN Natatorio Climatizado ===== */

.Natatorio {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Natatorio {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.col-Letras-Natatorio {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.col-Imagenes-Natatorio {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.novedades-Natatorio {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.NatatorioImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
}

.ImagenNatatorio {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenNatatorio img {
    display: block;
    width: 100%;
    height: auto;
}
.NatatorioImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
    transition: opacity 0.5s ease;
}

/* ===== SECCIÓN Gimnasio ===== */

.Gimnasio {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Gimnasio {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.col-Letras-Gimnasio {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.novedades-Gimnasio {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.GimnasioImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
}
.ImagenGimnasio {
    max-width: 250px; 
    min-width: 50px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenGimnasio img {
    display: block;
    width: 100%;
    height: auto;
}

.col-Imagenes-Gimnasio {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ===== SECCIÓN PILATES ===== */

.Pilates {
    margin-top: 20px;
    text-align: center; 
}
  
.PilatesImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
}
.contenedor-Pilates {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-Pilates {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}
.col-Letras-Pilates {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.ImagenPilates {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.PilatesImg {
    max-width: 450px;
    min-width: 100px;
    border: 3px solid #c80000;
    border-radius: 12px;
    transition: opacity 0.5s ease;
}

.ImagenPilates img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SECCIÓN MASOTERAPIA ===== */

.Masoterapia {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Masoterapia {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-Masoterapia {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.ImagenMasoterapia {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenMasoterapia img {
    display: block;
    width: 100%;
    height: auto;
}

.MasoterapiaImg {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.col-Letras-Masoterapia {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}


/* ===== SECCIÓN COLONIA DE VERANO ===== */

.ColoniaVerano {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-ColoniaVerano {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-ColoniaVerano {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.ImagenColoniaVerano {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenColoniaVerano img {
    display: block;
    width: 100%;
    height: auto;
}

.ColoVeranoImg {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.centro-ColoniaVerano {
    width: 100%;
    display:flex;
    justify-content: center;
    align-items: center;
}

.col-Letras-ColoniaVerano {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* ===== SECCIÓN BUFFET ===== */

.Buffet {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Buffet {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-Buffet {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.ImagenBuffet {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenBuffet img {
    display: block;
    width: 100%;
    height: auto;
}

.col-Letras-Buffet {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.BuffetImg {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}


/* ===== SECCIÓN ALIANZAS ===== */

.Alianzas {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Alianzas {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-Alianzas {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 100%;
    flex-grow: 1;
}

.ImagenAlianzas {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenAlianzas img {
    display: block;
    width: 100%;
    height: auto;
}

.col-Letras-Alianzas {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.MacImg1, .MacImg2 {
    width: 100%;
    max-width: 500px;
    min-width: 100px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    border: 4px solid #c80000;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.contenedor-Alianzas-Img {
    width: 100%;
    display:flex;
    justify-content: center;
    align-items: center;
}

/* ===== SECCIÓN HISTORIA ===== */

.Historia {
    margin-top: 20px;
    text-align: center; 
}
  
.contenedor-Historia {
    display: flex; 
    align-items: flex-start; 
    gap: 30px; 
    margin-right: 20px; 
    justify-content: space-between;
    width: 100%;
}
.novedades-Historia {
    background: #f2f2f2;
    border-left: 8px solid #c80000;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 3px 7px rgba(0,0,0,0.15);
    margin-left: 20px;
    margin-right: 0px;
    width: 50%;
    flex-grow: 1;
}

.ImagenHistoria {
    max-width: 250px; 
    min-width: 150px; 
    border: 3px solid #c80000;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    margin-right: 40px;
}

.ImagenHistoria img {
    display: block;
    width: 100%;
    height: auto;
}



      /* ===== AJUSTES RESPONSIVE GENERAL ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===============================
   ===== RESPONSIVE MOBILE =====
   =============================== */
@media (max-width: 768px) {

    /* ===== HEADER ===== */
    .top-bar {
        flex-direction: column;
        gap: 10px;
        position: static;
    }

    .top-bar .titulo-header {
        position: static;
        transform: none;
        font-size: 22px;
        text-align: center;
    }

    .logo-header {
        width: 80px;
        height: auto;
    }

    /* ===== NAVBAR ===== */
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }


    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #8b0000;
        padding: 10px 0;
        border-radius: 5px;
        display: none;
        min-width: 200px;
        z-index: 999;   /* bien arriba de todo */
    }


    /* ===== INICIO ===== */
    .inicio-section > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo-lateral {
        max-width: 280px;
    }

    /* ===== UBICACIÓN ===== */
    .ubicacion-grid-left {
        grid-template-columns: 1fr;
    }

    .mapa {
        grid-column: auto;
        grid-row: auto;
    }

    .mapa iframe {
        height: 250px;
    }

    /* ===============================
       ===== TODAS LAS SECCIONES =====
       =============================== */

    .contenedor-handball,
    .contenedor-futbol,
    .contenedor-voley,
    .contenedor-patin,
    .contenedor-Natatorio,
    .contenedor-Gimnasio,
    .contenedor-Pilates,
    .contenedor-Masoterapia,
    .contenedor-ColoniaVerano,
    .contenedor-Buffet,
    .contenedor-Alianzas,
    .contenedor-Historia {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    /* Columnas internas */
    .col-textos-handball,
    .col-Letras-Natatorio,
    .col-Letras-Gimnasio,
    .col-Letras-Pilates {
        width: 100%;
        align-items: center;
    }

    .col-imagenes-handball,
    .col-Imagenes-Natatorio,
    .col-Imagenes-Gimnasio {
        width: 100%;
        justify-content: center;
    }

    /* Cards de novedades */
    .novedades-handball,
    .novedades-futbol,
    .novedades-voley,
    .novedades-patin,
    .novedades-Natatorio,
    .novedades-Gimnasio,
    .novedades-Pilates,
    .novedades-Masoterapia,
    .novedades-ColoniaVerano,
    .novedades-Buffet,
    .novedades-Alianzas,
    .novedades-Historia {
        width: 100%;
        margin: 0;
    }

    /* Imágenes */
    .ImagenHandball,
    .ImagenFutbol,
    .ImagenVoley,
    .ImagenPatin,
    .ImagenNatatorio,
    .ImagenGimnasio,
    .ImagenPilates,
    .ImagenMasoterapia,
    .ImagenBuffet,
    .ImagenAlianzas,
    .ImagenHistoria {
        margin: 20px 0;
        max-width: 220px;
    }

    .NatatorioImg,
    .GimnasioImg,
    .PilatesImg {
        max-width: 100%;
    }

    /* ===== TABLAS ===== */
    .tabla-handball {
        font-size: 13px;
        overflow-x: auto;
        display: block;
    }

    /* ===== FOOTER ===== */
    .footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================
   =============== RESPONSIVE GENERAL ========================
   ========================================================== */

@media (max-width: 1024px) {

    .top-bar {
        flex-direction: row;
        padding: 10px;
    }

    .top-bar .titulo-header {
        font-size: 22px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-header {
        width: 70px;
        height: 80px;
    }

    nav {
        gap: 10px;
        flex-wrap: wrap;
    }
}

/* ============================
     PARA CELULARES
   ============================ */
@media (max-width: 768px) {

    /* HEADER */
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .top-bar .titulo-header {
        position: static;
        transform: none;
        font-size: 20px;
        margin-top: 10px;
    }

    nav {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    nav a, .test {
        font-size: 15px;
    }

    /* GRID UBICACIÓN */
    .ubicacion-grid-left {
        grid-template-columns: 1fr;
    }

    .mapa {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 300px;
    }

    /* SECCIONES CON IMAGEN A LA DERECHA */
    .contenedor-handball,
    .contenedor-futbol,
    .contenedor-voley,
    .contenedor-patin,
    .contenedor-Natatorio,
    .contenedor-Gimnasio,
    .contenedor-Pilates,
    .contenedor-Masoterapia,
    .contenedor-ColoniaVerano,
    .contenedor-Buffet {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        margin-right: 0;
        gap: 20px;
    }

    .col-imagenes-handball,
    .ImagenFutbol,
    .ImagenVoley,
    .ImagenPatin,
    .ImagenNatatorio,
    .ImagenGimnasio,
    .ImagenPilates,
    .ImagenMasoterapia,
    .ImagenColoniaVerano {
        margin-right: 0;
        width: 100%;
        max-width: 300px;
    }

    .novedades-handball,
    .novedades-futbol,
    .novedades-voley,
    .novedades-patin,
    .novedades-Natatorio,
    .novedades-Gimnasio,
    .novedades-Pilates,
    .novedades-Masoterapia,
    .novedades-ColoniaVerano,
    .novedades-Buffet {
        width: 100%;
        margin-left: 0;
    }

    /* Tablas */
    .tabla-handball td {
        padding: 12px;
        font-size: 14px;
    }

    /* IMAGEN PRINCIPAL */
    .imagen-club img {
        width: 95%;
    }

    /* FOOTER */
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer .social {
        justify-content: center;
    }
}

/* ============================
     EXTRA pequeños (CEL 360px)
   ============================ */
@media (max-width: 450px) {

    .titulo-header {
        font-size: 18px;
    }

    nav a, .test {
        font-size: 14px;
    }

    .banner-central {
        padding: 20px;
    }

    .banner-central .logo-grande {
        width: 110px;
    }

}

