
/* ===== FUENTES ===== */
body, button, input {
  font-family: 'Baloo 2', 'Comic Neue', sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== GENERAL ===== */
body {
  background-color: #5e0600;
  color: #fff;
  overflow-x: hidden;
}

::selection {
  background-color: #612020;
  color: #ffffff;
}

::-moz-selection {
  background-color: #612020;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5e0600;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.logo-container img {
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.menu-hamburger img,
.search-icon img {
  height: 30px;
  cursor: pointer;
}

/* ===== SIDE MENU ===== */
#side-menu {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #400d0a;
  transition: left 0.3s ease;
  overflow-y: auto;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

#side-menu.open {
  left: 0;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.side-header img {
  height: 50px;
}

#close-menu img {
  height: 25px;
  cursor: pointer;
}

.menu-list {
  list-style: none;
  padding: 0 10px;
}

.menu-list li {
  padding: 10px 5px;
  cursor: pointer;
  position: relative;
}

.menu-list li a {
  display: block;
  padding: 8px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.menu-list li a:hover {
  background-color: #612020;
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 10px;
}

.has-submenu.open .submenu {
  max-height: 500px;
}

/* ===== SEARCH ===== */
#search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#search-overlay:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

#search-box {
  background-color: #400d0a;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 80%;
  max-width: 600px;
}

#search-box input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}

#search-box button {
  background-color: #612020;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#search-box button:hover {
  background-color: #7a2a2a;
}

#search-results {
  margin-top: 20px;
  width: 80%;
  max-width: 600px;
}

/* ===== MAIN NEWS ===== */
#main-news,
#more-news,
#juveniles-news,
#institutional-news {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 120px 20px 20px 20px;
  box-sizing: border-box;
}

.card {
  background-color: #400d0a;
  border-radius: 10px;
  overflow: hidden;
  width: 300px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100%;
  display: block;
}

.card-content {
  padding: 10px;
}

/* ===== TABLE ===== */
#table-section {
  padding: 20px;
  text-align: center;
}

#table-container table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  overflow: hidden;
}

#table-container th, #table-container td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

#zone-buttons {
  margin-bottom: 10px;
}

#zone-buttons button {
  background-color: #612020;
  border: none;
  color: #fff;
  padding: 8px 15px;
  margin: 0 5px 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#zone-buttons button:hover {
  background-color: #7a2a2a;
}

/* ===== CAROUSEL ===== */
.carousel {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.carousel img {
  width: 300px;
  border-radius: 10px;
  margin: 0 5px;
}

/* ===== CLUB LOGOS ===== */
#club-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

#club-logos img {
  height: 50px;
}

/* ===== SPONSORS ===== */
#sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

#sponsors img {
  height: 50px;
}

/* ===== FOOTER ===== */
#footer {
  background-color: #400d0a;
  padding: 20px;
  text-align: center;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card {
    width: 90%;
  }
  #table-container table {
    font-size: 12px;
  }
}