* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ===== CONTENEDOR ===== */
.mi-seccion {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ===== CAROUSEL ===== */
.editorial-carousel {
  width: 100%;
  padding: clamp(50px, 8vw, 100px) 0;
}

/* ===== TRACK ===== */
.carousel-track {
  position: relative;
  width: min(1200px, 92vw);
  height: clamp(420px, 70vh, 620px);
  margin: 0 auto;
  overflow: hidden;
}

/* ===== SLIDES ===== */
.slide {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 70px);

  opacity: 0;
  transform: scale(1.03);
  filter: blur(12px) brightness(0.8);

  transition: opacity 1.6s ease, transform 2.2s ease, filter 1.6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1);
  z-index: 1;
}

/* ===== IMAGE ===== */
.slide-image {
  width: min(420px, 42vw);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.75);
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTENT ===== */
.slide-content {
  width: 54%;
  padding: 20px;
}

.category {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #D4AF37;
  margin-bottom: 18px;
}

.title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 46px);
  margin-bottom: 18px;
}

.desc {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #D4AF37;
  color: #D4AF37;
  text-decoration: none;
  font-size: 12px;
  transition: 0.3s;
}

.btn:hover {
  background: #D4AF37;
  color: #000;
}

/* ===== NAV ===== */
.nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.arrow {
  pointer-events: all;
  cursor: pointer;
  font-size: 26px;
  color: #D4AF37;
  opacity: 0.6;
}

.arrow:hover {
  opacity: 1;
}

/* ===== DOTS ===== */
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.dot.active {
  background: #D4AF37;
}

/* =========================
   🔥 MOBILE FINAL FIX (9:16 IMAGE)
   ========================= */
@media (max-width: 900px) {

  /* 🔥 BLOQUEO GLOBAL ANTI DESBORDE */
  html, body {
    overflow-x: hidden;
  }

  .mi-seccion,
  .carousel-track {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* 🔥 TRACK MÁS CONTROLADO (EVITA DESPLAZAMIENTO LATERAL OCULTO) */
  .carousel-track {
    height: 100vh;
    min-height: 780px;
    display: flex;
  }

  /* 🔥 SLIDE PERFECTAMENTE CONTENIDO */
  .slide {
    flex: 0 0 100%;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: flex-start;

    padding: 20px 12px; /* 🔥 reducido para evitar overflow */
    box-sizing: border-box;

    text-align: center;

    overflow-x: hidden;
  }

  /* 🔥 IMAGEN TIPO REEL SIN SALIRSE */
  .slide-image {
    width: 100%;
    max-width: 360px;

    height: 65vh; /* 🔥 más estable en pantallas pequeñas */

    aspect-ratio: 9 / 16;

    border-radius: 22px;
    overflow: hidden;

    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  }

  .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 🔥 TEXTO 100% SEGURO */
  .slide-content {
    width: 100%;
    max-width: 100%;

    padding: 0 10px;
    box-sizing: border-box;

    overflow-wrap: break-word;
    word-break: break-word;
  }

  .title,
  .desc {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* 🔥 NAV SEGURA */
  .nav {
    width: 100%;
    display: flex;
    justify-content: space-between;

    padding: 0 10px;
    box-sizing: border-box;
  }

  .arrow {
    font-size: 22px;
  }
}