/* =============================================
   IMPORTACIÓN DE FUENTES
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* =============================================
   RESET Y ESTILOS GENERALES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Poppins", Arial , sans-serif;
    color: #111;
    background-color: #C9D7EB;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =============================================
   HEADER Y MENU PRINCIPAL
   ============================================= */
header {
    width: 100%;
    background-color: #003770;
    padding: 10px 0;
	z-index: 1000;
}

.menu-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
	z-index: 1001;
}

.menu-container .logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.menu-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-nav .nav-link {
    color: #ffffff;
    text-decoration: none !important;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    background-color: transparent;
    border-radius: 5px;
}

.menu-nav .nav-link:hover {
    background-color: #333333;
}

.menu-nav .nav-yellow {
    background: #FDC62F !important;
    font-weight: 600;
    color: #003770 !important;
}

.menu-nav .nav-blue {
    background: #003770 !important;
    font-weight: 600;
    color: #ffffff !important;
}

.menu-nav .nav-link:not(.nav-yellow):not(.nav-blue):hover::after,
.menu-nav .nav-link.active::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background-color: #ffb81c;
    margin: 8px auto 0;
    position: absolute;
    left: 0; right: 0; bottom: 0;
}

.menu-nav .nav-yellow:hover::after,
.menu-nav .nav-yellow.active::after {
    background-color: #003770;
}

.menu-nav .nav-blue:hover::after,
.menu-nav .nav-blue.active::after {
    background-color: #ffffff;
}

/* =============================================
   TEXTOS Y ETIQUETAS BASICAS
   ============================================= */
h1, h2, h3, h4, h5, h6, p, blockquote, pre, ul, ol, dl, figure, .highlight {
    margin-bottom: 10px;
}

h3 {
    color: #003770;
    font-size: 16px;
    text-align: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

a {
    color: #444;
    text-decoration: none;
}
a:visited {
  color: rgb(23, 86, 169);
}
a:hover {
    color: #111;
}

/* =============================================
   BOTONES
   ============================================= */
.btn-mio, input[type="submit"] {
    background-color: #003770;
    color: white;
    border: 0;
    padding: 8px 30px;
    cursor: pointer;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
}
.btn-mio:hover, input[type="submit"]:hover {
    background-color: #0050a0;
    opacity: 0.9;
}

.button {
    color: white;
    padding: 16px 48px;
    background: #003770;
    font-size: 18px;
    line-height: 24px;
    display: inline-block;
    border: 0;
    text-decoration: none;
}
.button:hover {
    opacity: 0.9;
    color: white;
}

.button-sec {
    background: white;
    padding: 16px 48px;
    color: #0073CF;
    line-height: 24px;
    display: inline-block;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
}
.button-sec:hover {
    color: #0073CF;
}

.button-style3 {
    background: #DC2A20;
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}
.button-style3:hover {
    opacity: 0.9;
}

.button-style4 {
    font-size: 24px;
    font-weight: bold;
    background: white;
    color: #0073CF;
    padding: 24px 56px;
    border-radius: 3px;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}
.button-style4:hover {
    opacity: 0.9;
}

.button-red {
    color: white;
    padding: 27px 48px;
    background: #D54444;
    line-height: 24px;
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    width: 100%;
    text-align: center;
    text-decoration: none;
}
.button-red:hover {
    background: #b83737;
}

.button-blue {
    color: white;
    padding: 27px 48px;
    background: #0073CF;
    line-height: 24px;
    display: inline-block;
    font-weight: 700;
    font-size: 20px;
    width: 100%;
    text-align: center;
    text-decoration: none;
}
.button-blue:hover {
    background: #005bb5;
}

/* =============================================
   FORMULARIOS
   ============================================= */
form {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =============================================
   TABLAS
   ============================================= */

/* 🟢 TABLA PRINCIPAL (IZQUIERDA) - MAS ALTO */
table {
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
	font-size: 13px;
    color: black;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
}

table th {
    padding: 6px 6px !important; /* Aumentado */
    background-color: rgb(240, 240, 240);
    border: 1px solid rgb(222, 222, 222);
    line-height: 18px !important;
}

table td {
    padding: 6px 6px !important; /* Aumentado */
    border: 1px solid #e8e8e8;
    line-height: 18px !important; /* Mas alto */
}

/* 🔴 TABLAS DERECHA - MUY PEQUEÑAS */
.tabla-estilo, .tabla-menor, .tabla-naranja, .tabla-naranja_m {
    margin-bottom: 5px !important;
    font-size: 12px !important;
}

.tabla-menor th, .tabla-naranja th, .tabla-naranja_m th {
    padding: 4px 4px !important;
    height: 16px !important;
    line-height: 14px !important;
}

.tabla-menor td, .tabla-naranja td, .tabla-naranja_m td {
    padding: 4px 4px !important;
    height: 16px !important;
    line-height: 14px !important;
}

/* Colores alternos */
.tabla-estilo tr:nth-child(odd)  { background-color: #FFFFFF; }
.tabla-estilo tr:nth-child(even) { background-color: #B0C4DE; }

.tabla-menor tr:nth-child(odd)   { background-color: #FFFFFF; }
.tabla-menor tr:nth-child(even)  { background-color: #00FFFF; }

.tabla-naranja tr:nth-child(odd)  { background-color: #FFFFFF; }
.tabla-naranja tr:nth-child(even) { background-color: #FFCC00; }

.tabla-naranja_m tr:nth-child(odd) { background-color: #FFFFFF; }
.tabla-naranja_m tr:nth-child(even){ background-color: #FFCC00; }

/* =============================================
   ESTILOS PARA CAPTIONS (TITULOS)
   ============================================= */

.tabla-naranja caption, 
.tabla-naranja_m caption {
    background-color: #003770 !important;
    height: 18px !important;
    font-size: 12px !important;
    font-weight: 700;
	color: white !important;
    padding: 2px !important;
}

.tabla-menor caption { 
    background-color: #003770 !important;
    height: 18px !important;
    font-size: 12px !important;
    color: white !important;
    padding: 2px !important;
}

.tabla-sin-borde {
  margin-bottom: 0px;
  width: 100%;
  text-align: left;
  background:#003770;
  border: none;
  border-collapse: collapse;
}

.tabla-sin-borde, .tabla-sin-borde tr, .tabla-sin-borde td {
    border: none !important;
    background: #003770;
    color: white;
}

/* =============================================
   LAYOUT Y CONTENEDORES
   ============================================= */
.wrapper, .wrapper-flex {
    box-sizing: border-box;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 5px;
    padding-left: 5px;
}

.destacado {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    background-color: #f5f5f5;
    flex-wrap: wrap;
    gap: 10px;
}

.destacadoPub {
    display: flex;
	flex-wrap :wrap;
    justify-content: space-between;
    align-items: flex-start;
	width : 100%;
    background-color: #f5f5f5;
    gap: 0px;
}

/* =============================================
   IMAGENES Y MEDIAS
   ============================================= */
img {
    vertical-align: middle;
}
iframe {
    max-width: 100%;
}

/* =============================================
   COLORES UTILES
   ============================================= */
.color-secondary { color: #ffb81c; }
.color-lightblue { color: #0073CF; }
.color-blue { color: #0073CF; }
.color-cyan { color: #FF3686; }
.color-brown { color: #7C584A; }
.color-green { color: #1B7B21; }
.color-yellow { color: #C38601; }
.blanco { color: white; }
.rojo { color: red; }
.verde { color: green; }
.negro { color: black; }
.negrita { font-weight: bold; }
.centrar { text-align: center; }
.derecha { text-align: right; }
.invisible { visibility: hidden; }
.par { background-color: #FFFCCC; text-align: center; }

.bg-blue { background-color: #013773; }
.bg-light { background: #FAFAFA; }
.bg-white { background: #fff; }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: #003770;
    color: #fff;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: 500;
}
.footer .wrapper-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.footer a { color: white; }
.footer h4 {
    margin-bottom: 8px;
    color: #ffb81c;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
  .footer .wrapper-flex {
    flex-direction: column;
    text-align: left;
    gap: 15px;
    padding: 0 10px;
  }
  footer {
    padding: 15px !important;
  }
}

/* =============================================
   COMPONENTES ESPECIALES
   ============================================= */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 400px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -200px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: hidden;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 19, 29, 0.84);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-content {
    background-color: #fff;
    padding: 50px 80px;
    border-radius: 8px;
    max-width: 690px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
}
.close-btn {
    position: absolute;
    top: 50px;
    right: 40px;
    cursor: pointer;
    background: none;
    border: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 24px 56px;
}
.card {
    border-radius: 8px;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    padding: 40px;
    background: white;
}

/* =============================================
   MEDIA QUERIES
   ============================================= */
@media screen and (max-width: 1000px) {
    .wrapper, .wrapper-flex { padding: 0 25px; }
    header.site-header { padding-top: 68px; }
    .site-header .style2 .trigger { justify-content: flex-start; }
    .site-header .style2 .css-slider {
        overflow-x: scroll;
        scrollbar-width: none;
        gap: 20px;
        flex-wrap: nowrap;
    }
}

@media screen and (max-width: 820px) {
    .videos { flex-direction: column; }
    .videos .sidebar {
        padding: 0;
        max-width: 100%;
        border-right: 0;
        border-bottom: 1px solid #cbcbcc;
    }
    .cards-grid { padding: 0 !important; grid-template-columns: 1fr; }
}

@media screen and (max-width: 600px) {
    .footer-col { width: 100%; }
    .site-header .style1 .trigger { gap: 5px; }
    .site-header .style1 .nav-link { padding: 8px 10px; font-size: 13px;}
}

/* =============================================
   BANNER HERO
   ============================================= */
.destacadoHero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  background-color: #f5f5f5;
  flex-wrap: wrap;
  gap: 10px;
  padding :20px;
  margin-top: 20px;
  padding-bottom: 20px;
}

.destacadoRep {
  display: flex;
  justify-content:space-between;
  align-items:flex-start;
  width : 100%;
  background-color: #f5f5f5;
  gap: 0px;
  margin-top: 0px !important;
  padding-top: 10px !important;
}

.banner-hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 45%;
  position: relative;
  color: #003770;
  padding: 10px;
  box-sizing: border-box;
  gap: 20px;
  background-color: #C9D7EB;
  border: 1px solid #0073CF;
  border-style: dashed;
  border-radius: 10px;
  min-height: 250px;
  align-self: flex-start;
  margin-top: 0px !important;
  vertical-align: top;
}

.banner-hero .container-left {
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}

.banner-hero .container-right img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
}

@media screen and (max-width: 768px) {
  .banner-hero {
    flex-direction: column;
    text-align: center;
  }
  .banner-hero .container-left {
    padding-bottom: 15px;
  }
}

.banner-hero1 {
  position: relative;
  color: #003770;
  padding:10px;
  box-sizing: border-box;
  gap: 10px;
  background-color:#C9D7EB;
  border: 1px solid #0073CF;
  border-style: dashed;
  border-radius: 10px;
  align-self: flex-start;
  margin-top: 0px !important;
  vertical-align: top;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: 0.3s;
}

@media screen and (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .menu-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #003770;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
    gap: 0;
	z-index:999;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .menu-nav.active {
    display: flex;
  }

  .menu-nav .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #0050a0;
  }

  .menu-container {
    position: relative;
  }
}

/* =============================================
   FORMULARIO
   ============================================= */
.filtros {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.fila-campos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: bold;
}

.campo label {
    font-size: 13px;
    color: #333;
}

.campo input, .campo select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    width: 160px;
}

.campo textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

/* =============================================
   BOTONES
   ============================================= */
.botones-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.botones-container button,
.botones-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.botones-container button:hover,
.botones-container a:hover {
    opacity: 0.9;
}

.botones-container button:active,
.botones-container a:active {
    transform: scale(0.98);
}

.botones-container button img,
.botones-container a img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-buscar { background-color: #003370; }
.btn-buscar:hover { background-color: #006699; }

.btn-limpiar { background-color: #a84500; }
.btn-limpiar:hover { background-color: #cc5500; }

.btn-nuevo { background-color: #155c26; }
.btn-nuevo:hover { background-color: #1e7e34; }

.btn-modificar { background-color: #006699; }
.btn-modificar:hover { background-color: #0088cc; }

.btn-guardar { background-color: #003370; }
.btn-guardar:hover { background-color: #006699; }

.btn-cancelar { background-color: #a84500; }
.btn-cancelar:hover { background-color: #cc5500; }

/* =============================================
   ESTILO PARA LA PÁGINA DE TORNEOS
   ============================================= */
.bloque-torneo {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.titulo-seccion {
    background-color: #FDC62F;
    color: #000;
    font-weight: bold;
    padding: 10px 15px;
    font-size: 16px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.contenido-torneo {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background-color: #f5f5f5;
}

.columna-logo {
    flex: 0 0 200px;
    text-align: center;
}

.columna-logo img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.columna-tabla {
    flex: 1;
}

@media screen and (max-width: 768px) {
    .contenido-torneo {
        flex-direction: column;
    }
    .columna-logo {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* =============================================
   HEADER TORNEO
   ============================================= */
.header-torneo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #003770;
    padding: 10px 20px;
    border-bottom: 2px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.columna-izquierda {
    width: 20%;
}

.columna-centro {
    width: 60%;
    text-align: center;
}

.columna-derecha {
    width: 20%;
    text-align: right;
}

.logo-principal {
    width: 70px;
    height: auto;
}

.titulo-grande {
    font-size: 16px;
    color: #ffb81c;
    margin: 0;
}

.subtitulo {
    font-size: 14px;
    color: #f0f0f0;
    margin: 5px 0 0 0;
}

.subtitulo2 {
    font-size: 12px;
    color: #f0f0f0;
    margin: 5px 0 0 0;
}

.subtitulo3 {
    font-size: 10px;
    color: #f0f0f0;
    margin: 5px 0 0 0;
}

.subtitulo4 {
    font-size: 12px;
    color: black;
    margin: 5px 0 0 0;
}

.subtitulo5 {
    font-size: 12px;
    color: white !important;
    margin: 5px 0 0 0;
    background-color: #003770 !important;
    padding: 4px;
}

.fecha, .hora {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin: 3px 0;
}

.tabla-completa {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse;
}

/* =============================================
   CONTENEDOR PRINCIPAL
   ============================================= */
.contenedor-principal {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    align-items: flex-start;
}

.columna-izquierda-grande {
    width: 60%;
    box-sizing: border-box;
}

.columna-derecha-pequena {
    width: 40%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .contenedor-principal {
        flex-direction: column;
    }
    .columna-izquierda-grande,
    .columna-derecha-pequena {
        width: 100% !important;
    }
}

/****/
/* Gallero del Mes            */
/****/
.bloque-gallero {
    margin: 20px auto;
    width: 95%;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.contenido-gallero {
    display: flex;
    padding: 20px;
    background-color: #fff;
    align-items: flex-start;
}

.columna-texto {
    flex: 3;
    padding-right: 20px;
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
}

.columna-foto {
    flex: 1;
    text-align: center;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.columna-foto img {
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.bloque-tabla {
    width: 95%;
    margin: 20px auto;
}

.tabla-estilo {
    width: 100%;
    border-collapse: collapse;
}

.tabla-estilo th {
    background-color: #FFD700;
    color: #000;
    padding: 8px;
}

.tabla-estilo td {
    padding: 6px 8px;
}

.centrar {
    text-align: center;
}

.bloque-torneos {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

/***/
/* BLOQUE POR MES */
/***/
.bloque-mes {
    margin: 10px auto;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.titulo-mes {
    background-color: #FFC107;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    font-size: 14px;
    text-transform: uppercase;
}

.contenido-mes {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    background-color: #fff;
    align-items: flex-start;
}

.columna-foto {
    flex: 1 1 250px;
    text-align: center;
    padding: 10px;
}

.columna-foto img {
    width: 100% !important;
    max-width: 400px !important;
    height: auto !important;
    border-radius: 5px;
}

.columna-contenido {
    flex: 2 1 400px;
    padding: 5px;
}

.premiacion, .torneos {
    margin: 15px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
	font-size: 13px;
}

@media (max-width: 768px) {
    .contenido-mes {
        flex-direction: column;
    }
    .columna-foto {
        order: 1;
    }
    .columna-contenido {
        order: 2;
    }
    .tabla-estilo {
        font-size: 12px;
    }
    .tabla-estilo th, .tabla-estilo td {
        padding: 4px 2px;
    }
}

@media (max-width: 768px) {
    .columna-foto img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
	} 
}