:root {
  --primary: #495057;
  --primary-dark: #495057;
  --secondary: #1a1a1a;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --transition: all 0.3s ease;
}

body {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #f8f9fa;
  color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

/* todos los botones */
.btn-custom.selected {
  color: #fff;
  background-color: #011226;
  border: none;
  border-bottom: 3px solid #c00411;
}

.btn-custom:hover {
  background: var(--primary);
  font-size: 15px;
  transition: background 0.2s;
  border-bottom: 5px solid #ff2713;
}

.btn-custom {
  background: #f8f9fa;
  color: var(--primary);
  font-size: 15px;
  transition: background 0.2s;
  margin: 0;
  border-radius: 0;
  font-size: 13px;
}

.btn-custom.active {
  background: var(--primary);
  font-size: 15px;
  transition: background 0.2s;
  border-bottom: 5px solid #ff2713;
  color: #fff;
}

.btn-custom.active::after {
  content: '';
  display: block;
  background: var(--primary);
  margin-top: 0px;
}

.btn-group {
  border-bottom: 1px solid #808080;
  margin: 0;
  border-radius: 0;
}

th, td {
  white-space: nowrap;
}

th:nth-child(1), td:nth-child(1) {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 2;
}

th:nth-child(1) {
  background-color: #dc3545;
}

@media only screen and (max-width: 600px) {
  .table td,
  .table th {
    font-size: 10px;
    padding: 0.3rem;
  }
  th:nth-child(1) {
    background-image: url(../../logo2/horizontals.png);
    background-repeat: no-repeat;
    background-size: 32px 22px;
  }
}

.btn-group .btn-custom.disabled {
  color: #808080;
  border: none;
  border-bottom: 3px solid #011226;
}

.btn:disabled {
  opacity: .65;
  box-shadow: none;
  color: #808080;
  border: none;
  border-bottom: 3px solid #808080;
}

.table-bordered thead th {
  background-color: #c4c7caff;
}

@media only screen and (max-width: 600px) {
  .logo {
    width: 80px;
    height: 50px;
  }
  .nombre-com {
    white-space: normal;
    font-size: 12px;
  }
  .btn-group-toggle a {
    font-size: 10px;
  }
  .button-group .btn,
  .content-select select {
    font-size: 10px;
  }
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem #011226 !important;
}

.card {
  box-shadow: 0 0 1px #011226, 0 1px 3px #011226;
  margin-bottom: 1rem;
}

/* Scroll táctil */
.menu-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  background: #fff;
  scrollbar-width: none;
}
.menu-scroll::-webkit-scrollbar { display: none; }

/* Menú */
.menu-50px {
  display: flex;
  width: 100%;
  min-width: fit-content;
  background: #fff;
  position: relative;
}

/* Botón base */
.menu-btn {
  flex: 1;
  min-width: 90px;
  height: 60px;
  padding: 0 12px;
  background: #f8f9fa;
  color: var(--primary);
  font-size: 15px;
  transition: background 0.2s;
  border-bottom: 2px solid #ff2713;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.menu-btn i {
  font-size: 1.3em;
  margin-right: 5px;
  flex-shrink: 0;
}

.menu-btn span {
  font-size: 0.68em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.menu-btn + .menu-btn {
  margin-left: -1px;
}

.menu-btn:hover,
.menu-btn.active {
  background: var(--primary);
  border-bottom: 7px solid #ff2713;
  z-index: 3;
  color: #fff;
}

@media (max-width: 768px) {
  .menu-scroll {
    overflow-x: visible;
    padding: 12px 16px;
  }

  .menu-50px {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 12px;
    min-width: 100%;
    padding: 0;
    justify-content: center;
  }

  .menu-50px {
    grid-auto-rows: auto;
    max-height: none;
  }

  .menu-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0px 0px 0px;
    width: 100%;
    box-sizing: border-box;
  }

  .menu-scroll::-webkit-scrollbar {
    display: none;
    height: 0;
    background: transparent;
  }

  .menu-50px {
    min-width: fit-content;
    gap: 0;
  }

  .menu-btn {
    min-width: 40px;
    height: 60px;
    border: 1px solid #ddd;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    scroll-snap-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 2px solid #ff2713;
  }

  .menu-btn i {
    font-size: 1.25em;
    margin-right: 4px;
    flex-shrink: 0;
  }

  .menu-btn span {
    font-size: 0.65em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
  }

  .menu-btn span {
    white-space: normal;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .menu-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .menu-btn i {
    margin-bottom: 6px !important;
  }

  .logo-organizador {
    max-width: 80px !important;
    height: 40px !important;
    opacity: 0.7;
    transition: var(--transition);
  }
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 60px 0 20px;
}

.footer h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer .contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer .contact-info i {
  color: var(--primary);
  margin-right: 10px;
  width: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
}

.custom-select-dark::after {
  filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(7460%) hue-rotate(357deg) brightness(105%) contrast(119%);
  transform: scale(5);
}

.border-por-correr {
  border-bottom: 3px solid #6c757d;
}

.border-en-curso {
  position: relative;
  padding-bottom: 12px;
}

.border-en-curso::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #198754, #60c496ff, #198754);
  background-size: 200% 100%;
  animation: loadingBar 1.5s linear infinite;
}

.liveOn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #198754, #60c496ff, #198754);
  background-size: 200% 100%;
  animation: loadingBar 1.5s linear infinite;
}

@keyframes loadingBar {
  0%   { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

.border-cancelada {
  border-bottom: 3px solid #dc3545;
}

.border-interrumpido {
  border-bottom: 3px solid #fd7e14;
}

.border-completado {
  border-bottom: 3px solid var(--primary);
}

.content-select {
  position: relative;
  border-bottom: 5px solid #ff2713;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #ff2713;
}

.content-select select {
  background-color: var(--primary);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 35px;
  border-radius: 0px;
  color: white;
}

.logos-organizadores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

.logo-organizador {
  max-width: 150px;
  height: 80px;
  transition: var(--transition);
}

.logo-organizador:hover {
  filter: grayscale(0);
  transform: translateY(-5px);
}