/**
 * Estilos del frontend para los bloques de ClubMoon
 */

/* Hero Slider */
.clubmoon-hero-slider,
.wp-block-clubmoon-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.clubmoon-hero-slider.hero-area,
.wp-block-clubmoon-hero-slider.hero-area {
  height: 100svh;
  min-height: 640px !important;
}

.clubmoon-hero-slider .hero-slider-inner,
.clubmoon-hero-slider .owl-stage-outer,
.clubmoon-hero-slider .owl-stage,
.clubmoon-hero-slider .owl-item,
.clubmoon-hero-slider .item,
.wp-block-clubmoon-hero-slider .hero-slider-inner,
.wp-block-clubmoon-hero-slider .owl-stage-outer,
.wp-block-clubmoon-hero-slider .owl-stage,
.wp-block-clubmoon-hero-slider .owl-item,
.wp-block-clubmoon-hero-slider .item {
  height: 100%;
}

.clubmoon-hero-slider .item,
.wp-block-clubmoon-hero-slider .item {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.clubmoon-hero-slider .item img,
.wp-block-clubmoon-hero-slider .item img {
  --clubmoon-zoom: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(var(--clubmoon-zoom)) !important;
}

.clubmoon-hero-slider .hero-slider-inner.owl-carousel .owl-item img,
.wp-block-clubmoon-hero-slider .hero-slider-inner.owl-carousel .owl-item img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--clubmoon-zoom)) !important;
}

@media (max-width: 991px) {
  .header-area,
  .nav-area,
  .mobile-menu-area,
  .mean-container .mean-bar,
  .mean-container .mean-nav {
    z-index: 20000 !important;
  }

  .clubmoon-hero-slider.hero-area,
  .wp-block-clubmoon-hero-slider.hero-area {
    height: 72svh;
    min-height: 420px !important;
  }

  .clubmoon-hero-slider .hero-caption-inner h1,
  .wp-block-clubmoon-hero-slider .hero-caption-inner h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .clubmoon-hero-slider .hero-caption-inner p,
  .wp-block-clubmoon-hero-slider .hero-caption-inner p {
    width: 90%;
    font-size: 16px;
    line-height: 1.5;
  }

  .logo-menu-wrap.menu-styele-2 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 !important;
    gap: 12px;
    position: relative;
    width: 100%;
  }

  .logo-menu-wrap.menu-styele-2 .logo {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .logo-menu-wrap.menu-styele-2 .logo img {
    max-width: 130px;
    height: auto;
  }

  .logo-menu-wrap.menu-styele-2 .mobile-menu-area {
    display: block;
    width: auto !important;
    margin: 0;
  }

  .logo-menu-wrap.menu-styele-2 .mobile-menu-area,
  .logo-menu-wrap.menu-styele-2 .mobile-menu,
  .logo-menu-wrap.menu-styele-2 .mean-container {
    position: static;
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle {
    width: 42px;
    height: 42px;
    padding: 8px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 2px solid #ffffff;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-left: auto;
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.55);
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .logo-menu-wrap.menu-styele-2 .clubmoon-mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .logo-menu-wrap.menu-styele-2 .mobile-menu-area .mean-container a.meanmenu-reveal {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .logo-menu-wrap.menu-styele-2 .mean-container .mean-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70svh;
    overflow-y: auto;
    background: rgba(19, 19, 19, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    z-index: 20002;
  }

  .logo-menu-wrap.menu-styele-2 .mean-container .mean-nav ul li a {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .logo-menu-wrap.menu-styele-2 .mean-container .mean-nav ul li a.mean-expand {
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    padding: 0;
  }

  .logo-menu-wrap.menu-styele-2 #mobile-menu-active.clubmoon-open {
    display: block !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(19, 19, 19, 0.98);
    z-index: 20002;
  }

  .logo-menu-wrap.menu-styele-2 #mobile-menu-active.clubmoon-open ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .logo-menu-wrap.menu-styele-2 #mobile-menu-active.clubmoon-open ul li a {
    display: block;
    color: #fff;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 575px) {
  .clubmoon-hero-slider.hero-area,
  .wp-block-clubmoon-hero-slider.hero-area {
    height: 65svh;
    min-height: 360px !important;
  }

  .clubmoon-hero-slider .hero-caption-inner,
  .wp-block-clubmoon-hero-slider .hero-caption-inner {
    padding-bottom: 70px;
  }

  .clubmoon-hero-slider .hero-caption-inner h1,
  .wp-block-clubmoon-hero-slider .hero-caption-inner h1 {
    font-size: 34px;
  }
}

/* Reduce dark layer from theme for this block only */
.clubmoon-hero-slider .item:after,
.wp-block-clubmoon-hero-slider .item:after {
  opacity: 0;
}

/* Hero controls visibility */
.clubmoon-hero-slider .hero-slider-inner .owl-nav,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav {
  z-index: 12;
}

.clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev,
.clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  font-size: 34px !important;
  transition: all 0.2s ease;
}

.clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev:hover,
.clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next:hover,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev:hover,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: #ffffff;
  color: #ffffff !important;
}

.clubmoon-hero-slider .hero-slider-inner .owl-dots,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-dots {
  z-index: 12;
}

.clubmoon-hero-slider .hero-slider-inner .owl-dot span,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-dot span {
  background: rgba(255, 255, 255, 0.55) !important;
}

.clubmoon-hero-slider .hero-slider-inner .owl-dot.active span,
.wp-block-clubmoon-hero-slider .hero-slider-inner .owl-dot.active span {
  background: #d32d0b !important;
}

@media (max-width: 767px) {
  .clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev,
  .clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next,
  .wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-prev,
  .wp-block-clubmoon-hero-slider .hero-slider-inner .owl-nav .owl-next {
    width: 46px;
    height: 46px;
    line-height: 46px;
    font-size: 30px !important;
  }
}

/* RI Grid Hero */
.wp-block-clubmoon-ri-grid-hero .ri-grid ul li img {
  width: 600px;
  height: auto;
  max-width: none;
}

/* Videos Gallery */
.videos-gallery .video-tab {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.videos-gallery .video-tab img,
.videos-gallery .videos-gallery-no-image {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.videos-gallery .videos-gallery-no-image {
  background: #1e1e1e;
  color: #ddd;
  text-align: center;
  line-height: 220px;
}

.videos-gallery .video-tab .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Area - fixed 6-tile shape */
.gallery-area .gallery-layout-fixed.gallery-shape-fixed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: row dense;
  gap: 0;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  overflow: hidden;
  position: relative !important;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item .caption {
  position: absolute;
  inset: 0;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 85;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 35;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(3) {
  grid-column: 2;
  grid-row: 36 / span 50;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(4) {
  grid-column: 3;
  grid-row: 1 / span 46;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(5) {
  grid-column: 3;
  grid-row: 47 / span 39;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(6) {
  grid-column: 4;
  grid-row: 1 / span 85;
}

.gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item:nth-child(n + 7) {
  grid-column: auto;
  grid-row: span 43;
}

/* Fallback when there are less than 6 images */
.gallery-area .gallery-layout-fixed.gallery-shape-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.gallery-area .gallery-layout-fixed.gallery-shape-flow .gallery-item {
  float: none !important;
  width: auto !important;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-area .gallery-layout-fixed.gallery-shape-flow .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991px) {
  .gallery-area .gallery-layout-fixed.gallery-shape-fixed,
  .gallery-area .gallery-layout-fixed.gallery-shape-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 0;
  }

  .gallery-area .gallery-layout-fixed.gallery-shape-fixed .gallery-item,
  .gallery-area .gallery-layout-fixed.gallery-shape-flow .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .gallery-area .gallery-layout-fixed.gallery-shape-fixed,
  .gallery-area .gallery-layout-fixed.gallery-shape-flow {
    grid-template-columns: 1fr;
  }
}

/* Event Area - CPT eventos */
.clubmoon-event-area .event-feature img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.clubmoon-event-area .event-fee {
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
}

.clubmoon-event-area .event-slider-row {
  margin-top: 32px;
}

.clubmoon-event-area .event-card-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.clubmoon-event-area .event-card-excerpt {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.clubmoon-event-area .event-caption-countdown {
  margin-bottom: 16px;
}

.clubmoon-event-area .event-caption-countdown .cdown {
  width: 56px;
  margin: 0 4px 8px;
  padding: 6px 0;
}

.clubmoon-event-area .event-caption-countdown .cdown .time-count {
  font-size: 16px;
  line-height: 1;
}

.clubmoon-event-area .event-caption-countdown .cdown p {
  font-size: 10px;
  line-height: 1;
  margin-bottom: 0;
}

.clubmoon-event-area .event-card-btn {
  min-width: 120px;
}

.clubmoon-event-area .event-card-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
