/* NC Testimonials Carousel v1.0.0 */

/* ── Contenedor principal ── */
.nc-tc-wrap {
    position: relative;
    width: 100%;
}

/* ── Diapositiva (página de tarjetas) ──
   column-count y column-gap los inyecta Elementor según los controles del widget.
   Aquí solo establecemos el modo de visualización y la animación.
*/
.nc-tc-slide {
    display: none;
}

.nc-tc-slide.active {
    display: block;
    animation: nc-tc-in 0.35s ease both;
}

@keyframes nc-tc-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Tarjeta individual ──
   break-inside: avoid  → impide que una tarjeta se parta entre dos columnas.
   display: inline-block + width: 100% → compatibilidad con CSS multi-column en todos los navegadores.
*/
.nc-tc-card {
    display: block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    box-sizing: border-box;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background-color: #f5f0e8;
    background-size: cover;
    background-position: center center;
    min-height: 230px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    margin-bottom: 18px; /* valor por defecto, sobreescrito por Elementor */
}

/* Overlay semitransparente */
.nc-tc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
}

/* ── Contenido interno ── */
.nc-tc-inner {
    position: relative;
    z-index: 1;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    min-height: inherit;
    justify-content: flex-end;
}

/* ── Nombre del autor ── */
.nc-tc-author {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* ── Texto del testimonio ── */
.nc-tc-text {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px;
    flex-grow: 1;
}

/* ── Estrellas ── */
.nc-tc-stars {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    font-size: 1.15rem;
    line-height: 1;
    margin-top: auto;
}

.nc-tc-stars .filled { color: #D4AF37; }
.nc-tc-stars .empty  { color: #ddd; }

/* ── Etiqueta "Nuevo" ── */
.nc-tc-badge-nuevo {
    position: absolute;
    z-index: 2;
    background-color: #D4AF37;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
}

.nc-tc-badge-nuevo.pos-top-right    { top: 12px;    right: 12px;  }
.nc-tc-badge-nuevo.pos-top-left     { top: 12px;    left: 12px;   }
.nc-tc-badge-nuevo.pos-bottom-right { bottom: 12px; right: 12px;  }
.nc-tc-badge-nuevo.pos-bottom-left  { bottom: 12px; left: 12px;   }

/* ── Puntos de paginación ── */
.nc-tc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.nc-tc-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    outline: none;
    flex-shrink: 0;
}

.nc-tc-dot:hover         { background: #b8912a; transform: scale(1.25); }
.nc-tc-dot.active        { background: #D4AF37; transform: scale(1.25); }
.nc-tc-dot:focus-visible { outline: 2px solid #D4AF37; outline-offset: 3px; }
