.ti-wrapper {
    max-width: 900px;
    margin: auto;
    font-family: system-ui, sans-serif;
}

.ti-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.ti-logo {
    height: 30px;
}

.ti-header > div {
    text-align: center;
}

.ti-score {
    font-size: 22px;
    font-weight: 700;
}

.ti-based {
    font-size: 14px;
    color: #666;
}

/* viewport */
.ti-viewport {
    overflow: hidden;
    width: 100%;
}

/* slider */
.ti-slider {
    display: flex;
    transition: transform 0.4s ease;
}

/* slides */
.ti-slide {
    flex: 0 0 33.3333%;
    padding: 10px;
    box-sizing: border-box;
    height: 300px; /* ALTURA FIJA COMO PEDISTE */
}

/* tablet */
@media (max-width: 980px) {
    .ti-slide {
        flex: 0 0 50%;
        height: 300px;
    }
}

/* mobile */
@media (max-width: 600px) {
    .ti-slide {
        flex: 0 0 100%;
        height: 300px;
    }
}

.ti-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    height: 100%; /* Ocupa toda la altura del slide */
    box-sizing: border-box;
    overflow: hidden; /* OCULTA LO QUE SOBREPASE */
    display: flex;
    flex-direction: column;
}

.ti-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0; /* No se encoge */
}

.ti-avatar {
    width: 42px;
    height: 42px;
    background: #003580;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.ti-name {
    font-weight: 600;
}

.ti-date {
    font-size: 13px;
    color: #777;
}

.ti-stars {
    color: #febb02;
    font-size: 18px;
    margin-bottom: 8px;
    flex-shrink: 0; /* No se encoge */
}

/* TEXTO CON LÍMITE DE ALTURA */
.ti-text {
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden; /* OCULTA EL EXCESO */
    flex: 1; /* Ocupa el espacio restante */
    /* Opcional: efecto fade out al final */
    position: relative;
}

/* Efecto degradado al final del texto (opcional, quítalo si no te gusta) */
.ti-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

.ti-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.ti-nav button {
    background: #003580;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}