


html > body > main {
  width: 100%;
  margin-top: 0 !important;
  
}

.calendar-header {
  position: relative;
  width: 100%;
  margin-top: 40px;
  background-image: url(/img/calendar/calendario-bg.webp);
  background-size: cover;
  background-position: bottom;
  aspect-ratio: 1586 / 992;
  max-height:600px;
}

.cal-header-logo, .cal-header-characters  {
  position: absolute;
  width:100%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 300px;
}

.cal-header-characters {
  max-width: 500px;
  top: unset;
  bottom: 0;
}


.calendar-data {
  position: relative;
  overflow: hidden;
}

.calendar-data::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/img/banners/calendario-verano-second-part.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  z-index: 0;
}

.calendar-data > * {
  position: relative;
  z-index: 1;
}

.cal-flickity {
    position: relative;
    max-width: 1060px;
    overflow: hidden;
    padding-bottom: 60px;
    margin:0 auto;
    padding-top:60px;
}

.cal-cell {
  width: 200px;
  aspect-ratio: 240 / 240;
  margin-right: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.cal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cal-cell.today img {
  animation: shake 3s ease-in-out infinite;
}
.cal-cell.past {
  opacity: 0.5;
}
.cal-cell.today {
  cursor: pointer;
   animation: glow 1s ease-in-out infinite;

}
.cal-cell.today:hover{
  box-shadow: 0px -1px 10px 2px #888888;
}
.cal-cell.locked img {
  filter: blur(10px);
}
.cal-cell.past::before,
.cal-cell.locked::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  padding: 8px;
  z-index: 1;
}

.cal-cell.today::before {
  content: "Juega Ahora";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0005f;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: center;
  z-index:1;
}

.cal-cell.past::before {
  background-image: url('/img/Icons/check-white.svg');
  background-color: #00900b;
}

.cal-cell.locked::before {
  background-image: url('/img/Icons/lock-white.svg');
  background-color: #666666;
}
.cal-cell-day{
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 11px;
    background-color: red;
    font-size: .8rem;
    font-weight: bold;
    padding: .2em .3em 0.1em;
    transform: skewX(-10deg);
}


/* MODAL OVERLAY */
.cal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

/* MODAL */
.cal-modal {
  display: none;
  position: fixed;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  background: #1a1a1a;
  border-radius: 16px;
  max-width: 400px;
  overflow-y: auto;
  max-height: 90vh;
  animation: fadeIn 0.3s ease;
  background: linear-gradient(135deg, #50b4ff 0%, 
  #ff77a8 35%, 
  #ff9e3b 70%, 
  #ffe17d 100%);
  background-attachment: fixed;
  background-size: cover;
}

/* estados activos */
.cal-modal-overlay.active,
.cal-modal.active {
  display: block;
}

/* close btn */
.cal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
}
.cal-modal-img{
    width: 60%;
    margin: 0 auto;
    overflow: hidden;
}
/* imagen */
.cal-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border: 5px solid black;
  border-radius: 6px;
  margin-top: 15px;
}

/* body */
.cal-modal-body {
  padding: 20px;
}

/* titulo */
.cal-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px;
  text-align: center;
  color: #373636;
}

/* tiers */
.cal-modal-tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-modal-tiers li {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px 0 13px 5px;
  font-size: 0.9rem;
  color: #fff;
}
.cal-modal-tiers li:hover {
   box-shadow: 1px -1px 20px whitesmoke;
}
/* cta */
.cal-modal-cta {
  text-align: center;
}

/* Calendar SEO content */
.calendar-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #363636;
  border-radius: var(--lumo-border-radius-xl);
  color: #fff;
}

.calendar-content h2 {
  font-size: 1.1rem;
  text-align: left;
  margin: 1.5rem 0 0.75rem;
  color: #fff;
}

.calendar-content h2:first-of-type {
  margin-top: 0;
}

.calendar-content p {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  line-height: 1.6;
  font-size: 1rem;
}

.calendar-content a {
  color: #ed2828;
  text-decoration: none;
  background-color: #1f1f1f94;
  padding: .3em;
  border-radius: 4px;
}

.calendar-content a:hover {
  text-decoration: underline;
}

.calendar-content ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calendar-content li {
  line-height: 1.6;
  font-size: 1rem;
}



/******  MEDIA QUERIES    ********/

@media (width <= 1280px) {

 .cal-header-characters {
     max-width: 350px;
 }
 .cal-header-logo {
    top: 25%; 
 }
   
}
@media (width <= 920px) {
    .cal-header-logo {
        top: 10%;
    }
}

@media (width <= 768px) {

 .cal-modal {
    width: 96%;
    top: 50%;
    max-height: 85vh;
  }
  .cal-modal-body {
    padding: 20px 5px;
  }
  .cal-flickity {
    max-width: 320px;
    margin: 0 auto;
    margin-top:20px;
    padding-bottom: 60px;
  }

  .cal-cell {
    width: 140px;
    height: 140px;
  }
  

}

@media (width <= 480px) {
    .calendar-header{
        height:60vh;
    }
    .cal-header-characters {
     max-width: 300px;
   }
}
@media (width <= 360px) {
   .cal-header-characters {
     max-width: 200px;
   }
    .cal-header-logo {
        width: 200px;
    }
}
/***** ANIMATIONS *****/
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0px -1px 5px 1px #88888844; }
  50%       { box-shadow: 0px -1px 10px 2px #888888; }
}

@keyframes shake {
  0%, 85%, 100% { transform: translateX(0); }
  88%           { transform: translateX(-3px); }
  91%           { transform: translateX(3px); }
  94%           { transform: translateX(-2px); }
  97%           { transform: translateX(2px); }
}