/* ============================================================
   KREA SERVICIOSIT – CSS DEL CARRUSEL
   Este archivo contiene SOLO estilos estáticos.
   Los colores dinámicos vienen del PHP mediante variables CSS.
============================================================ */

/* ============================
   TARJETAS DEL CARRUSEL
============================ */

.krea-product-card {
    background: var(--krea-card-bg);
    color: var(--krea-text-color);
    border: 1px solid var(--krea-button-border);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.krea-product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.krea-product-card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.krea-product-card h3 {
    color: var(--krea-text-color);
    font-size: 1.1em;
    margin: 10px 0;
}

.krea-price {
    color: var(--krea-price-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 12px;
}

/* ============================
   BOTÓN DE AÑADIR AL CARRITO
============================ */

.krea-product-card a.button {
    background: var(--krea-button-bg);
    color: var(--krea-button-text);
    border: 1px solid var(--krea-button-border);
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.krea-product-card a.button:hover {
    background: var(--krea-button-bg-hover);
    color: var(--krea-button-text-hover);
    border: 1px solid var(--krea-button-border-hover);
}

/* ============================
   ESCALAS DEL CARRUSEL
============================ 

.swiper-slide {
    transition: transform 0.3s ease;
}

/* Slide central 
.swiper-slide-active {
    transform: scale(1);
    z-index: 3;
}

/* Slides adyacentes 
.swiper-slide-prev,
.swiper-slide-next {
    transform: scale(1);
    z-index: 2;
}

/* Slides extremos 
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    transform: scale(1);
    z-index: 1;
} */

/* ============================
   SWIPER CONTROLS
============================ */

.swiper-button-prev,
.swiper-button-next {
    color: var(--krea-text-color);
    transition: opacity 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.7;
}

.swiper-pagination-bullet {
    background: var(--krea-text-color);
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}


