html, body {
  font-family: 'Poppins', sans-serif !important;
}

html, body {
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-lego.png");
  background-repeat: repeat;
  background-size: 512px 512px; /* tamaño REAL del patrón */
  opacity: 0.10; /* controla la transparencia */
  pointer-events: none;
  z-index: 0;
}

.eventos {
  padding-top: 60px;
  background-color: #4ebb83 !important; /* fondo naranja */
  padding-bottom: 60px;
}

/* Encabezado */
.titulo-box {
    position: relative;
    display: grid;
    border: 2px solid #000;
    padding: 20px 120px;
    border-radius: 5px;
    width: 65%;
}

.titulo-texto {
    font-weight: 800;
    font-size: 2.3rem;
    margin: 0;
    color: #000;
}

.titulo-icon {
    width: 59px;
    position: absolute;
    left: -35px;
    top: 11px;
}

.amarillo {
  background-color: #ffe413;
}

/* Encabezado */
.eventos-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ffeb3b;
  color: #000;
  font-weight: 800;
  font-size: 1.8rem;
  padding: 12px 30px;
  width: fit-content;
  margin: 0 auto 60px;
  border-radius: 8px;
  box-shadow: 0 4px 0 #000;
}

.eventos-header .icon {
  width: 28px;
  height: 28px;
  background: #e11d48;
  border-radius: 6px;
  position: relative;
}

.eventos-header .icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 3px;
  transform: translate(-50%, -50%);
}

/* Tabla */
/* Tabla */
.tabla-eventos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 1000px;
  margin: 0 auto 40px;
  text-align: center;
  grid-auto-rows: 100px; /* 👈 define altura uniforme */
}

.celda {
  background-color: #fffde7;
  border: 2px solid #000;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  display: flex;              /* 👇 centra texto vertical y horizontalmente */
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Mantener los colores y estilos */
.celda.dia {
  background-color: #60a5fa;
  font-weight: 700;
  color: #fff;
}

.celda.hora {
  background-color: #f97316;
  color: #fff;
  font-weight: 700;
}

.celda.recauda {
  background-color: #ef4444;
  color: #fff;
}

.celda.deportivo {
  background-color: #1e3a8a;
  color: #fff;
}

/* Leyenda */
.leyenda {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  color:#fff;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.color {
  width: 35px;
  height: 35px;
  border-radius: 4px;
  display: inline-block;
}

.color.deportivo {
  background-color: #1e3a8a;
}

.color.recauda {
  background-color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .tabla-eventos {
    grid-template-columns: repeat(2, 1fr);
  }
  .eventos-header {
    font-size: 1.4rem;
  }
}

/* ============================================
   📱 CALENDARIO COMPLETO EN MÓVIL (SIN SCROLL)
   ============================================ */
@media (max-width: 768px) {

  .tabla-eventos {
    grid-template-columns: repeat(6, 1fr); /* mantiene el calendario completo */
    gap: 3px;                 /* menos separación */
    max-width: 90%;          /* ajusta al ancho del móvil */
    width: 100%;
    grid-auto-rows: 55px;     /* altura de cada celda ↓ más pequeña */
  }

  .celda {
    font-size: 0.70rem;       /* texto más compacto */
    padding: 0px;             /* elimina márgenes internos grandes */
    border-radius: 3px;
    line-height: 1.1;         /* compacta el texto */
  }

  .celda.dia {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px;
  }

  .celda.hora {
    font-size: 0.75rem;
    padding: 2px;
  }

  /* Encabezado del calendario */
  .titulo-box {
    width: 90%;
    padding: 15px 40px;
  }

  .titulo-texto {
    font-size: 1.7rem;
  }

  .titulo-icon {
    width: 38px;
    top: 10px;
    left: -20px;
  }

  /* Leyenda */
  .leyenda {
    flex-direction: column;
    font-size: 0.85rem;
    gap: 5px;
    margin-left: 20px;
  }

  .color {
    width: 18px;
    height: 18px;
  }
}

