/* ==============================> TESTIMONIOS DE CLIENTES */

/* -> Wrapper y carrusel */
.ct-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.ct-swiper {
    overflow: hidden;
}

.ct-swiper .swiper-wrapper {
	padding: 24px;
}

/* -> Flechas */
.ct-nav {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1.5px solid #dde1e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: opacity 0.3s ease, background 0.25s ease, border-color 0.25s ease;
    transition: opacity 0.3s ease, background 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ct-nav svg {
    width: 18px;
    height: 18px;
    color: #555;
    -webkit-transition: color 0.25s ease;
    transition: color 0.25s ease;
}

.ct-nav--prev { left: 0; }
.ct-nav--next { right: 0; }

.ct-wrapper:hover .ct-nav {
    opacity: 1;
    pointer-events: auto;
}

.ct-nav:hover {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}

.ct-nav:hover svg {
    color: #fff;
}

/* -> Tarjeta */
.ct-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0px 6px rgba(0,0,0,0.06);
    padding: 32px;
    position: relative;
    overflow: hidden;
    -webkit-transition: box-shadow 0.35s ease, -webkit-transform 0.35s ease;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ct-card:hover {
    box-shadow: 0 0px 12px rgba(0,0,0,0.12);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

/* -> Badge años como cliente */
.ct-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #3b6e42;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.01em;
	z-index: 200;
}

.ct-badge__check {
    width: 17px;
    height: 17px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* -> Body de la tarjeta */
.ct-card__body {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

/* -> Columna de información */
.ct-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
	justify-content: center;
    gap: 12px;
    min-width: 0;
}

/* -> Columna de foto */
.ct-card--con-foto .ct-card__foto {
    width: 255px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    align-self: stretch;
}

.ct-card--con-foto .ct-card__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    -webkit-transition: -webkit-transform 0.45s ease;
    transition: transform 0.45s ease;
}

.ct-card:hover .ct-card__foto img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

/* -> Logo */
.ct-logo {
    display: flex;
    align-items: center;
}

.ct-logo img {
    max-width: 200px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* -> Estrellas */
.ct-estrellas {
    display: flex;
    gap: 2px;
}

.ct-estrella {
    font-size: 22px;
    color: #dde1e7;
    line-height: 1;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.ct-estrella--llena {
    color: #f5a623;
}

/* -> Texto del testimonio */
.ct-texto {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    padding: 0;
    border: none;
}

.ct-comilla {
 	display: inline;
}

.ct-comilla img {
	width: 20px;
}

.ct-comilla.ct-comilla--open:before {

}

.ct-comilla.ct-comilla--close img {
	transform: rotate(180deg);
}

.ct-comilla--open { margin-right: 3px; }
.ct-comilla--close { margin-left: 3px; }

/* -> Autor */
.ct-autor {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ct-autor__nombre {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.ct-autor__empresa {
    font-size: 13px;
    color: #888;
    display: block;
}

/* -> Cliente verificado */
.ct-verificado {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #3b6e42;
    font-weight: 500;
}

.ct-verificado__icono {
    width: 18px;
    height: 18px;
    background: #3b6e42;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==============================> RESPONSIVE */

/* -> Tablet */
@media (max-width: 1024px) {
    .ct-card--con-foto .ct-card__foto {
        width: 210px;
    }
}

/* -> Móvil */
@media (max-width: 768px) {
    .ct-wrapper {
        padding: 0;
    }
	
	.ct-swiper .swiper-wrapper {
		padding: 0;
	}

    .ct-card {
        padding: 24px;
    }

    .ct-card__body {
        flex-direction: column-reverse;
        gap: 18px;
    }

    .ct-card--con-foto .ct-card__foto {
        width: 100%;
        height: 210px;
        border-radius: 10px;
        align-self: auto;
    }

    .ct-badge {
        font-size: 11px;
        padding: 5px 11px;
        top: 14px;
        right: 14px;
    }

    .ct-texto {
        font-size: 14px;
    }

    .ct-nav {
        width: 36px;
        height: 36px;
    }

    .ct-nav svg {
        width: 15px;
        height: 15px;
    }

    /* Flechas siempre visibles en móvil */
    .ct-nav {
        opacity: 1;
        pointer-events: auto;
    }
}

/* -> Fix iOS: aceleración y transiciones */
@supports (-webkit-touch-callout: none) {
    .ct-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .ct-card__foto img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}