html {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.calendario-header {
  text-align: center;
  padding: 60px 20px 20px;
  background-color: #f5f7fa;
}

.calendario-header h2 {
  font-size: 2.5rem;
  color: #0b1c3d;
  margin-bottom: 10px;
}

.calendario-header p {
  color: #4b5563;
  font-size: 1.1rem;
}

.calendario-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 1800px;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Loader para Iframe --- */
.loader-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(50vh - 60px);
  background-color: #0b1c3d;
  /* Azul oscuro del club */
  background-image: url('../img/FOTO INICIO.png'), url('../img/FOTO INICIOCAMPO.JPG');
  background-size: 100% 100vh, 100% calc(100% - 100vh);
  background-position: top center, bottom center;
  background-repeat: no-repeat, no-repeat;
  z-index: 20;
  transition: opacity 0.5s ease;
}

.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.loading-text {
  color: white;
  font-size: 14pt;
  font-weight: 600;
  margin-left: 10px;
}

.dot {
  margin-left: 3px;
  animation: blink 1.5s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.3s;
}

.dot:nth-child(3) {
  animation-delay: 0.6s;
}

.loading-bar-background {
  --height: 30px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 5px;
  width: 200px;
  height: var(--height);
  background-color: #212121;
  box-shadow: #0c0c0c -2px 2px 4px 0px inset;
  border-radius: calc(var(--height) / 2);
}

.loading-bar {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  --height: 20px;
  width: 0%;
  height: var(--height);
  overflow: hidden;
  background: rgb(222, 74, 15);
  background: linear-gradient(0deg,
      rgba(222, 74, 15, 1) 0%,
      rgba(249, 199, 79, 1) 100%);
  border-radius: calc(var(--height) / 2);
  animation: loading 4s ease-out infinite;
}

.white-bars-container {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 18px;
}

.white-bar {
  background: rgb(255, 255, 255);
  background: linear-gradient(-45deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 70%);
  width: 10px;
  height: 45px;
  opacity: 0.3;
  rotate: 45deg;
}

@keyframes loading {
  0% {
    width: 0;
  }

  80% {
    width: 100%;
  }

  100% {
    width: 100%;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Mobile en horizontal (Landscape) */
@media (max-height: 600px) and (orientation: landscape) {
  .calendario-header {
    padding: 30px 20px 10px;
  }

  .calendario-header h2 {
    font-size: 1.8rem;
  }
}
