/* ===================================================================
   index.css - TiendApp
   Carrusel de promociones (2/3 de la pantalla) + tiendas horizontales
   =================================================================== */

/* ============================
   Carrusel de promociones
   ============================ */
.carrusel-promos {
    position: relative;
    width: 100%;
    height: 66vh; /* ocupa 2/3 de la pantalla, como se pidió */
    min-height: 320px;
    max-height: 620px;
    overflow: hidden;
    background-color: var(--color-oscuro);
}

.carrusel-pista {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carrusel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: block;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carrusel-slide-titulo {
    position: absolute;
    left: 40px;
    bottom: 40px;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 60%;
}

.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 27, 11, 0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.carrusel-flecha:hover {
    background: rgba(28, 27, 11, 0.75);
}

.carrusel-flecha-izq { left: 20px; }
.carrusel-flecha-der { right: 20px; }

.carrusel-puntos {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carrusel-punto {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
}

.carrusel-punto.activo {
    background: var(--color-amarillo);
    width: 22px;
    border-radius: 5px;
    transition: width 0.2s;
}

/* ============================
   Sección de tiendas horizontales — ocupa aprox. la mitad de la pantalla
   ============================ */
.seccion-tiendas-inicio {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 45vh;
}

.carrusel-tiendas-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrusel-tiendas {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 4px 16px;
    flex: 1;
    /* Ocultamos la barra de scroll fea mientras dejamos el scroll funcional */
    scrollbar-width: thin;
}

.card-tienda-inicio {
    flex: 0 0 auto;
    width: 150px;
    background: var(--fondo-tarjeta);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(28, 27, 11, 0.08);
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-tienda-inicio:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(28, 27, 11, 0.18);
}

.card-tienda-inicio img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-crema);
    margin-bottom: 10px;
}

.card-tienda-inicio span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--texto-principal);
}

.carrusel-flecha-tiendas {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-naranja);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.carrusel-flecha-tiendas:hover {
    background: #e0500f;
}

/* ============================
   Responsivo
   ============================ */
@media (max-width: 600px) {
    .carrusel-promos { height: 45vh; min-height: 260px; }
    .carrusel-slide-titulo { font-size: 18px; left: 20px; bottom: 20px; max-width: 80%; }
    .card-tienda-inicio { width: 120px; }
}
