/* Contenedor principal */
.tiendas-page {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: sans-serif;
}

/* Título */
.tiendas-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
    color: #222;
    font-family: 'Montserrat', sans-serif;
    padding-top: 120px;
}

/* CONTENEDOR */
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: auto;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: none;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 5; /* 🔥 importante: sobre los slides */
}

.carousel button:hover {
    background: #333;
    transform: scale(1.1);
}

/* Flecha derecha */
.next {
    right: 10px;
}

/* Flecha izquierda */
.prev {
    left: 10px;
}

.prev {
    display: none;
}

/* TRACK */
.carousel-track {

    position: relative;
    min-height: 800px;
}

/* CADA SLIDE */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    transition: opacity 0.3s ease;

    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
/* IMPORTANTE: tamaño de tus cards reducido */
.tienda-card {
    background: #f5f5f5;
    padding: 30px;       /* menos padding */
    width: calc(45% - 50px);  /* 3 por fila */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-slide:nth-child(3) {
    max-height: 350px;
    align-items: center;
}

/* TITULOS */
.tienda-card p {
    font-size: 15px;    /* más pequeño */
    color: #555;
    margin-bottom: 5px;
}

.tienda-card h2 {
    font-size: 24px;    /* más pequeño */
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* BOTONES DENTRO DEL BOX */
.tienda-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* BOTONES */
.btn {
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    color: #fff;
    transition: 0.3s;
    margin-top: 10px;
}

.btn i, .btn svg {
    font-size: 16px; /* o 18px según convenga */
    vertical-align: middle;
    vertical-align: text-top;
}

/*RESPONSIVE*/
/* ── Tablet: hasta 1024px ── */
@media (max-width: 1024px) {
  .tienda-card        { width: calc(45% - 25px); padding: 24px; }
  .tiendas-title      { font-size: 28px; }
  .carousel-track     { min-height: 750px; }
}

/* ── Móvil: hasta 767px ── */
@media (max-width: 767px) {
  .tiendas-title      { font-size: 22px; margin-bottom: 24px;padding-top: 50px; }

  /* El track ya no necesita altura fija: el slide activo empuja el alto */
  .carousel-track     { min-height: auto; padding-bottom: 60px; }

  /* Los slides pasan de absolute a flujo normal */
  .carousel-slide {
    position: relative;
    opacity: 1;
    display: none;
    flex-direction: column;
    gap: 16px;
  }
  .carousel-slide.active { display: flex; }

  /* Cards a ancho completo */
  .tienda-card        { width: 100%; padding: 20px; box-sizing: border-box; }
  .tienda-card h2     { font-size: 18px; margin-bottom: 12px; }
  .tienda-card p      { font-size: 14px; }

  /* Flechas bajan al pie del carousel */
  .carousel button    { top: auto; bottom: 8px; transform: none; padding: 10px 13px; font-size: 10px; width: 30px; height: 32px; }
  .next               { right: 12px; }
  .prev               { left: 12px; display: block; } /* se muestra siempre, JS la oculta si es slide 0 */

  /* Anula el max-height del slide 3 */
  .carousel-slide:nth-child(3) { max-height: none; }
}

/* ── Móvil pequeño: hasta 480px ── */
@media (max-width: 480px) {
  .tiendas-page       { padding: 0 12px; }
  .tiendas-title      { font-size: 18px; letter-spacing: 0; }
  .tienda-card        { padding: 16px; }
  .btn                { font-size: 13px; padding: 8px 12px; }
}