/* ═══════════════════════════════════════════════════
   RutaSur Photo Carousel — Frontend CSS
   ═══════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────── */
.mc-carousel-wrap *,
.mc-carousel-wrap *::before,
.mc-carousel-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CONTENEDOR PRINCIPAL ────────────────────────── */
.mc-carousel-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  background: #0D1117;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── TRACK ───────────────────────────────────────── */
.mc-track {
  display: flex;
  height: 100%;
  will-change: transform;
  /* transition se aplica vía JS */
}

/* ── SLIDE BASE ──────────────────────────────────── */
.mc-slide {
  position: relative;
  flex-shrink: 0;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  /* width y transition se aplican vía JS */
}

/* ── IMAGEN DE FONDO ─────────────────────────────── */
.mc-slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  will-change: transform;
}
.mc-slide.mc-active .mc-slide-img {
  transform: scale(1);
}

/* ── OVERLAY ─────────────────────────────────────── */
.mc-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 17, 23, 0.88) 0%,
    rgba(13, 17, 23, 0.30) 50%,
    transparent 100%
  );
}
.mc-slide:not(.mc-active) .mc-slide-overlay {
  background: rgba(13, 17, 23, 0.55);
}

/* ── DESENFOQUE / SATURACIÓN slides inactivos ────── */
.mc-slide {
  filter: brightness(0.55) saturate(0.6);
}
.mc-slide.mc-active {
  filter: brightness(1) saturate(1);
}

/* ── NÚMERO del slide ────────────────────────────── */
.mc-slide-num {
  position: absolute;
  top: 36px;
  right: 36px;
  font-family: 'Bebas Neue', cursive;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(245, 239, 224, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
  pointer-events: none;
}
.mc-slide.mc-active .mc-slide-num {
  opacity: 1;
}

/* ── CONTENIDO del slide activo ──────────────────── */
.mc-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 64px 60px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
}
.mc-slide.mc-active .mc-slide-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── ETIQUETA país ───────────────────────────────── */
.mc-slide-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E8A835;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-slide-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #E8A835;
  flex-shrink: 0;
}

/* ── TÍTULO ──────────────────────────────────────── */
.mc-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1;
  color: #F5EFE0;
  margin-bottom: 18px;
}

/* ── SUBTÍTULO ───────────────────────────────────── */
.mc-slide-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #D4C5A9;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 460px;
}

/* ── META (días · tipo · cta) ────────────────────── */
.mc-slide-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.mc-slide-days {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #D4C5A9;
  letter-spacing: 0.1em;
}

.mc-slide-tipo {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 239, 224, 0.38);
}

/* ── CTA ─────────────────────────────────────────── */
.mc-slide-cta {
  display: inline-block;
  background: #C4501A;
  color: #F5EFE0;
  padding: 11px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1;
}
.mc-slide-cta.mc-cta-clip {
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
}
.mc-slide-cta:hover {
  background: #E8A835;
  color: #0D1117;
  text-decoration: none;
}

/* ── ETIQUETA lateral slides inactivos ───────────── */
.mc-slide-side-label {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  font-family: 'Bebas Neue', cursive;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: rgba(245, 239, 224, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
  white-space: nowrap;
  pointer-events: none;
}
.mc-slide:not(.mc-active) .mc-slide-side-label {
  opacity: 1;
}

/* ── FLECHAS ─────────────────────────────────────── */
.mc-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(245, 239, 224, 0.25);
  background: rgba(13, 17, 23, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5EFE0;
  font-size: 18px;
  line-height: 1;
  outline: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.mc-nav-btn:hover {
  border-color: #E8A835;
  background: rgba(232, 168, 53, 0.15);
}
.mc-nav-prev {
  left: 28px;
}
.mc-nav-next {
  right: 28px;
}
.mc-nav-prev:hover {
  transform: translateY(-50%) translateX(-2px);
}
.mc-nav-next:hover {
  transform: translateY(-50%) translateX(2px);
}

/* ── DOTS ────────────────────────────────────────── */
.mc-dots {
  position: absolute;
  bottom: 32px;
  right: 60px;
  display: flex;
  gap: 10px;
  z-index: 100;
  align-items: center;
}
.mc-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(245, 239, 224, 0.28);
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.3s, width 0.35s ease, border-radius 0.35s;
  padding: 0;
}
.mc-dot.mc-dot-active {
  background: #E8A835;
  width: 22px;
}

/* ── CONTADOR ────────────────────────────────────── */
.mc-counter {
  position: absolute;
  bottom: 34px;
  left: 60px;
  font-family: 'Bebas Neue', cursive;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: rgba(245, 239, 224, 0.4);
  z-index: 100;
  display: flex;
  align-items: baseline;
  gap: 4px;
  pointer-events: none;
}
.mc-counter-cur {
  font-size: 22px;
  color: #F5EFE0;
}
.mc-counter-sep {
  opacity: 0.3;
}

/* ── BARRA DE PROGRESO ───────────────────────────── */
.mc-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #E8A835;
  width: 0%;
  z-index: 200;
  pointer-events: none;
}

/* ── LÍNEA DECORATIVA IZQUIERDA ──────────────────── */
.mc-deco-line {
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(232, 168, 53, 0.25) 20%,
    rgba(232, 168, 53, 0.25) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 50;
}

/* ═══════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA del contenido
   ═══════════════════════════════════════════════════ */

.mc-slide-content,
.mc-slide-tag,
.mc-slide-title,
.mc-slide-subtitle,
.mc-slide-meta {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.mc-slide.mc-active .mc-slide-tag     { transition-delay: 0.18s; }
.mc-slide.mc-active .mc-slide-title   { transition-delay: 0.26s; }
.mc-slide.mc-active .mc-slide-subtitle{ transition-delay: 0.34s; }
.mc-slide.mc-active .mc-slide-meta    { transition-delay: 0.42s; }

/* En el editor de Elementor no queremos delays — los cambios se ven al instante */
.elementor-editor-active .mc-slide-content,
.elementor-editor-active .mc-slide-tag,
.elementor-editor-active .mc-slide-title,
.elementor-editor-active .mc-slide-subtitle,
.elementor-editor-active .mc-slide-meta {
  transition: none !important;
  transition-delay: 0s !important;
  opacity: 1 !important;
  transform: none !important;
}

.elementor-editor-active .mc-slide-img {
  transform: scale(1) !important;
  transition: none !important;
}

.elementor-editor-active .mc-slide-num {
  opacity: 1 !important;
  transition: none !important;
}

.elementor-editor-active .mc-slide-side-label {
  opacity: 0 !important;
}

.elementor-editor-active .mc-slide:not(.mc-active) .mc-slide-side-label {
  opacity: 1 !important;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media ( max-width: 1024px ) {
  .mc-carousel-wrap {
    min-height: 420px;
  }
  .mc-slide-content {
    padding: 0 40px 48px;
  }
  .mc-deco-line { left: 40px; }
  .mc-counter   { left: 40px; }
  .mc-dots      { right: 40px; }
}

@media ( max-width: 768px ) {
  .mc-carousel-wrap {
    height: 80vh;
    min-height: 380px;
  }
  .mc-slide-content {
    padding: 0 24px 40px;
  }
  .mc-slide-title {
    font-size: clamp(32px, 8vw, 52px);
  }
  .mc-slide-side-label { display: none; }
  .mc-deco-line        { display: none; }
  .mc-counter          { left: 24px; }
  .mc-dots             { right: 24px; }
  .mc-nav-prev         { left: 12px; }
  .mc-nav-next         { right: 12px; }
  .mc-nav-btn          { width: 44px; height: 44px; font-size: 15px; }
}
