 @media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown-menu {
    position: absolute;
    left: auto;
  }
}
     
 .tablaInscritos td{
                text-transform:capitalize !important;
     text-align: left !important;
            }



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        @media (min-width: 992px) {
  .rounded-lg-3 { border-radius: .3rem; }
}


        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
            margin: 10px !important;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: white;
            padding: 1rem 0;
            position: sticky;
            top: 15px;
            z-index: 100;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            width: auto;
            box-shadow: 0 0 20px 10px rgb(35 106 248 / 5%);
            padding: 11px 20px 11px 60px;
            margin-bottom: 15px;
            margin-left: 5px;
            margin-right: 5px;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: #ffffff;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
            margin-bottom: 0;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #fbbf24;
        }

        /* Hero Section */
        .hero {
            /*! background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23059669" width="1200" height="600"/><circle fill="%23047857" cx="200" cy="150" r="80"/><circle fill="%23047857" cx="1000" cy="450" r="100"/><polygon fill="%23065f46" points="600,100 700,200 500,200"/></svg>') center/cover; */
            color: #000;
            text-align: center;
            padding: 4rem 0;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        /* News Section */
        .news-section {
            padding: 4rem 0;
            background: #3C5DA5;
            border-radius: 40px;
        }

        .section-title {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            color: #D53120;
        }
        .section-title-news {
            font-size: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            color: #FFF;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .news-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .news-card {
            max-width: 600px;    /* o el valor que prefieras */
            margin: 0 auto;      /* centra la tarjeta dentro del grid */
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .news-image {
            height: 200px;
            background: linear-gradient(45deg, #059669, #047857);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
            font-weight: bold;
        }

        .news-content {
            padding: 1.5rem;
        }

        .news-tag {
            background: #fbbf24;
            color: #92400e;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        .news-date {
            color: #6b7280;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .news-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #1f2937;
        }

        .news-excerpt {
            color: #6b7280;
            font-size: 0.9rem;
        }

        /* Tournament Section */
        .tournaments-section {
            padding: 4rem 0;
            background: #f8f9fa;
        }

        /*.tournament-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }*/

.tournament-grid {
    display: grid;
    justify-content: center; /* centra las columnas */
    grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
    gap: 2rem;
}

        .tournament-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

        .tournament-card:hover {
            transform: translateY(-3px);
        }

       .tournament-image {
    width: 250px;         /* o el ancho que prefieras para la tarjeta */
    height: 320px;        /* alto mayor para formato vertical */
    overflow: hidden;     /* recorta lo que se salga */
    margin: 0 auto;       /* centra la imagen dentro de la tarjeta */
    border-radius: 12px;  /* opcional: esquinas redondeadas */
}

/* La imagen se ajusta sin deformarse */
.tournament-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* recorta lo que sobre manteniendo proporción */
    object-position: center; /* centra el recorte */
    display: block;
}
        

        .tournament-content {
            padding: 1.5rem;
        }

        .tournament-location {
            font-size: 1.2rem;
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 0.5rem;
        }

        .tournament-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #374151;
        }

        .tournament-date {
            color: #6b7280;
            font-size: 0.9rem;
        }

        .status-finished {
            color: #dc2626;
            font-weight: bold;
        }

        .status-upcoming {
            color: #059669;
            font-weight: bold;
        }

        /* Circuit Section */
        .circuit-section {
            padding: 4rem 0;
            background: linear-gradient(135deg, #1e3a8a, #3b82f6);
            color: white;
            text-align: center;
        }

        .circuit-content h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .circuit-content p {
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Social Section */
        .social-section {
            padding: 4rem 0;
            background: #D53120;
            text-align: center;
            border-radius: 40px;
        }

        .social-content h2 {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #fff;
        }

        .instagram-button {
            /*! background: linear-gradient(45deg, #e91e63, #f06292); */
            color: #3C5DA5;
            padding: 1rem 2rem;
            border: none;
            border-radius: 30px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: transform 0.3s;
            margin: 10px;
        }

        .instagram-button:hover {
            transform: scale(1.05);
        }

        /* Sponsors Section */
        .sponsors-section {
            padding: 4rem 0;
            background: white;
            text-align: center;
        }

        .sponsors-content h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            color: #1e3a8a;
        }

        .sponsors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            align-items: center;
        }

        .sponsor-category {
            padding: 1rem;
        }

        .sponsor-category h3 {
            margin-bottom: 1rem;
            color: #374151;
        }

        .sponsor-placeholder {
            height: 80px;
            background: linear-gradient(45deg, #e5e7eb, #d1d5db);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6b7280;
            font-weight: bold;
        }

        /* Footer */
        footer {
            background: #2B2E3B;
            color: white;
            padding: 2rem 0;
            text-align: center;
            border-radius: 30px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .news-grid {
                grid-template-columns: 1fr;
            }

            .tournament-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in { 
			animation: fadeInUp 0.8s ease-out forwards; 
			opacity:0; 
		}
		
		
		.img-responsive {
            display: block;     /* elimina el espacio extra de las imágenes inline */
            max-width: 100%;    /* nunca excede el ancho del contenedor/pantalla */
            height: auto;       /* ajusta la altura automáticamente */
            margin: 0 auto;
        }
        
        .patro-section {
            background: #3C5DA5;
            border-radius: 40px;
            text-align:center;
            padding: 4rem 0;
        }
        
        .patro-section h2.linea {
          position: relative;
          z-index: 1;
        }

        .patro-section h2.linea:before {
          border-top: 1px solid #d2d1cf;
          content: "";
          margin: 0 auto;
          position: absolute;
          top: 50%;
          left: 0;
          right: 0;
          bottom: 0;
          width: 95%;
          z-index: -1;
        }

        .patro-section h2.linea span {
         background: #3c5da5;
          padding: 0 15px;
          font-size: 1.5rem;
        }
        
        .patro-section .PatrocinadoresFooter img {
          max-width: 250px;
        }
        
        .patro-section  .ColaboradoresFooter img {
            max-width: 150px;
        }
        
        
        section.hero,
section.news-section,
section.tournaments-section,
section.social-section,
section.patro-section, .footer-setcion, .section-tournament {
    border-radius: 20px;   /* mismo radio en todos */
    overflow: hidden;      /* asegura que el contenido respete el borde */
    margin: 1rem auto;     /* separación uniforme */
    padding: 2rem;
}

header{
    border-radius: 20px;   /* mismo radio en todos */
    margin: 1rem auto;     /* separación uniforme */
    padding: 1rem;
}

/* Si quieres un efecto aún más consistente */
section.hero .container,
section.news-section .container,
section.tournaments-section .container,
section.social-section .container,
section.patro-section .container, footer .container, header .container, .section-tournament .container{
    border-radius: 20px;
}

/* Ajustes menú responsive */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
}
.navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
}
.dropdown-menu {
    background-color: #1e3a8a;
    border: none;
}
.dropdown-menu .dropdown-item {
    color: #fff;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #3b82f6;
    color: #fbbf24;
}

/* Estilos para submenús */
.dropdown-menu {
    background-color: #1e3a8a !important;  /* azul a juego con el header */
    border: none;
    min-width: 180px;  /* ancho mínimo */
    padding: 0;
}

.dropdown-menu .dropdown-item {
    color: #fff !important;
    padding: 10px 15px;
    font-weight: 500;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #3b82f6 !important;
    color: #fbbf24 !important;
}

/* Estilos menú escritorio */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
}
.navbar-nav .nav-link:hover {
    color: #fbbf24 !important;
}
.dropdown-menu {
    background-color: #1e3a8a !important;
    border: none;
}
.dropdown-menu .dropdown-item {
    color: #fff !important;
}
.dropdown-menu .dropdown-item:hover {
    background-color: #3b82f6 !important;
    color: #fbbf24 !important;
}

/* Menú lateral (offcanvas) */
.offcanvas {
    width: 250px; /* ancho del menú lateral */
}
.offcanvas .nav-link {
    color: #fff !important;
    font-size: 1.1rem;
    padding: 10px 0;
}
.offcanvas .nav-link:hover {
    color: #fbbf24 !important;
}

.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem 1rem;
}

/* Tarjetas de noticias */
.noticia-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* asegura que todas las tarjetas llenen la columna */
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.noticia-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* recorta sin deformar */
    display: block;
}

.noticia-body {
    padding: 1rem;
    flex: 1; /* hace que el texto crezca y empuje hacia abajo */
    display: flex;
    flex-direction: column;
}

.noticia-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.noticia-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1f2937;
    text-decoration: none;
}

.noticia-title:hover {
    color: #3b82f6;
}

.noticia-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* máx 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-img {
        height: 150px;
    }
}


.noticia-detalle {
    padding: 3rem 0;
}

.noticia-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.noticia-detalle-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.noticia-detalle-body {
    padding: 2rem;
}

.noticia-detalle-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #1e3a8a;
}

.noticia-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.noticia-detalle-text {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-detalle-img {
        height: 200px;
    }
    .noticia-detalle-title {
        font-size: 1.5rem;
    }
}


/* Detalle de noticia tipo artículo */
.noticia-detalle {
    padding: 3rem 0;
}

.noticia-detalle-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.noticia-detalle-body {
    /*max-width: 900px;*/   /* no ocupa toda la pantalla en escritorio */
    margin: 0 auto;
    padding: 0 1rem;
}

.noticia-detalle-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 1rem 0 1.5rem;
    color: #1e3a8a;
}

.noticia-date {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.noticia-detalle-text {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-detalle-img {
        height: 220px;
    }
    .noticia-detalle-title {
        font-size: 1.6rem;
    }
}

/* Link de la noticia */
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.news-link:hover .news-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}