/* =========================
   CONTENEDOR CARRUSEL
========================= */
.novedad-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.novedad-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 20%);
}

/* =========================
   TRACK
========================= */
.novedad-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0,0,0);
}

/* =========================
   TARJETAS
========================= */
.novedad-card {
    flex: 0 0 25%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    transform: translateZ(0);
}

/* Wrapper interno para evitar subpíxeles en Chrome */
.novedad-card-inner {
    width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 5px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.novedad-card-inner:hover {
    transform: translate3d(0,-10px,0) scale(1.02);
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
    cursor: pointer;
}

/* =========================
   IMÁGENES
========================= */
.novedad-img-wrapper{
    width: 100%;
    max-width: 300px;
    height: 300px;
    min-height: 300px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    border-radius: 6px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.novedad-card img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    margin-bottom: 5px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* =========================
   TEXTO
========================= */
.novedad-title {
    font-weight: 700;
    font-size: 16px;
    min-height: 40px;
    width: 95%;
}

.novedad-price {
    color: #f1832e;
    font-weight: 300;
    font-size: 30px;
}

/* =========================
   FLECHAS
========================= */
.carousel-container {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(241,131,46,0.9);
    color: #fff;
    border: none;
    z-index: 2000;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #f1832e;
    transform: translateY(-50%) scale(1.1);
}

.carousel-next { right: 10px; }
.carousel-prev { left: 10px; }

/* =========================
   DOTS
========================= */
.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: #f1832e;
    transform: scale(1.3);
}

/* =========================
   BOTONES
========================= */
.addCart, .consultarBtn {
    display: inline-block;
    margin: 10px auto 0 auto;
    width: 60%;
    padding: 0.7em 1em;
    text-align: center;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 979px) {
    .novedad-card { flex: 0 0 33.333%; }
}

@media (max-width: 768px) {
    .novedad-card { flex: 0 0 50%; }
}

@media (max-width: 479px) {
    .novedad-card { flex: 0 0 100%; }
}