/* Truncamiento de texto en dos líneas */
.cegg-text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Truncamiento de texto en una línea por defecto, pero en dos líneas en pantallas más grandes */
.cegg-text-truncate,
.cegg-text-truncate-responsive {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cegg-text-truncate-responsive {
        -webkit-line-clamp: 2;
    }
}

/* Estilos para los badges */
.cegg-badge-left,
.cegg-badge-right {
    position: absolute;
    top: 16px;
    display: inline-block;
    color: #fff;
    z-index: 500;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 700;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, .14);
}

.cegg-badge-left {
    left: calc(-10px - var(--border, 0px));
}

.cegg-badge-left::after,
.cegg-badge-right::before {
    content: " ";
    display: block;
    position: absolute;
    bottom: -7px;
    border-width: 0 10px 7px;
    filter: brightness(50%);
}

.cegg-badge-left::after {
    left: -10px;
    border-color: transparent var(--cegg-primary) transparent transparent;
    border-style: inset solid inset inset;
}

.cegg-badge-right {
    right: calc(-10px - var(--border, 0px));
}

.cegg-badge-right::before {
    right: -10px;
    border-color: transparent transparent transparent var(--cegg-primary);
    border-style: inset inset inset solid;
}

.cegg-badge-sm {
    top: .5rem;
    padding: .35em .65em;
    font-size: .75em;
}

.cegg-badge-secondary::after {
    border-color: transparent var(--cegg-secondary) transparent transparent;
}

.cegg-badge-success::after {
    border-color: transparent var(--cegg-success) transparent transparent;
}

.cegg-badge-danger::after {
    border-color: transparent var(--cegg-danger) transparent transparent;
}

.cegg-badge-warning::after {
    border-color: transparent var(--cegg-warning) transparent transparent;
}

.cegg-badge-info::after {
    border-color: transparent var(--cegg-info) transparent transparent;
}

.cegg-badge-light::after {
    border-color: transparent var(--cegg-light) transparent transparent;
}

.cegg-badge-dark::after {
    border-color: transparent var(--cegg-dark) transparent transparent;
}

/* Estilos para las tarjetas de la cuadrícula */
.cegg-grid-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cegg-grid-card:hover {
    transform: translateY(-10px);
}

.cegg-grid-card:hover,
.cegg-list-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}

.cegg-grid-card:hover .card-title,
.cegg-list-card:hover .card-title {
    text-decoration: underline;
    text-underline-offset: .25em;
    text-decoration-color: rgba(var(--cegg-secondary-rgb), .5);
}

.cegg-grid-card img,
.cegg-list-card img {
    transition: transform .3s ease;
}

.cegg-grid-card:hover img,
.cegg-list-card:hover img {
    transform: scale(1.05);
}

/* Estilos para listas descriptivas pequeñas */
.cegg-desc-small ol,
.cegg-desc-small ul {
    padding: 0;
    margin: 0 0 0 1em;
}

/* Estilos para las estrellas de calificación */
.cegg-rating-stars {
    --rating: 3.5;
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    line-height: 1;
    font-size: inherit;
}

.cegg-rating-stars::before {
    content: "★★★★★";
    font-family: Times;
    letter-spacing: 1px;
    background: linear-gradient(90deg, gold var(--percent), #bdbdbd var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cegg-rating-value {
    font-size: .7em;
}

/* Estilos para círculos */
.cegg-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid;
    border-radius: 50%;
    font-size: 1rem;
}
/* Truncamiento de texto en dos líneas */
.cegg-text-truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Truncamiento de texto en una línea por defecto, pero en dos líneas en pantallas más grandes */
.cegg-text-truncate,
.cegg-text-truncate-responsive {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cegg-text-truncate-responsive {
        -webkit-line-clamp: 2;
    }
}

/* Estilos para los badges */
.cegg-badge-left,
.cegg-badge-right {
    position: absolute;
    top: 16px;
    display: inline-block;
    color: #fff;
    z-index: 500;
    padding: 10px 15px;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 700;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, .14);
}

.cegg-badge-left {
    left: calc(-10px - var(--border, 0px));
}

.cegg-badge-left::after,
.cegg-badge-right::before {
    content: " ";
    display: block;
    position: absolute;
    bottom: -7px;
    border-width: 0 10px 7px;
    filter: brightness(50%);
}

.cegg-badge-left::after {
    left: -10px;
    border-color: transparent var(--cegg-primary) transparent transparent;
    border-style: inset solid inset inset;
}

.cegg-badge-right {
    right: calc(-10px - var(--border, 0px));
}

.cegg-badge-right::before {
    right: -10px;
    border-color: transparent transparent transparent var(--cegg-primary);
    border-style: inset inset inset solid;
}

.cegg-badge-sm {
    top: .5rem;
    padding: .35em .65em;
    font-size: .75em;
}

.cegg-badge-secondary::after {
    border-color: transparent var(--cegg-secondary) transparent transparent;
}

.cegg-badge-success::after {
    border-color: transparent var(--cegg-success) transparent transparent;
}

.cegg-badge-danger::after {
    border-color: transparent var(--cegg-danger) transparent transparent;
}

.cegg-badge-warning::after {
    border-color: transparent var(--cegg-warning) transparent transparent;
}

.cegg-badge-info::after {
    border-color: transparent var(--cegg-info) transparent transparent;
}

.cegg-badge-light::after {
    border-color: transparent var(--cegg-light) transparent transparent;
}

.cegg-badge-dark::after {
    border-color: transparent var(--cegg-dark) transparent transparent;
}

/* Estilos para las tarjetas de la cuadrícula */
.cegg-grid-card {
    transition: transform .3s ease, box-shadow .3s ease;
}

.cegg-grid-card:hover {
    transform: translateY(-10px);
}

.cegg-grid-card:hover,
.cegg-list-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
}

.cegg-grid-card:hover .card-title,
.cegg-list-card:hover .card-title {
    text-decoration: underline;
    text-underline-offset: .25em;
    text-decoration-color: rgba(var(--cegg-secondary-rgb), .5);
}

.cegg-grid-card img,
.cegg-list-card img {
    transition: transform .3s ease;
}

.cegg-grid-card:hover img,
.cegg-list-card:hover img {
    transform: scale(1.05);
}

/* Estilos para listas descriptivas pequeñas */
.cegg-desc-small ol,
.cegg-desc-small ul {
    padding: 0;
    margin: 0 0 0 1em;
}

/* Estilos para las estrellas de calificación */
.cegg-rating-stars {
    --rating: 3.5;
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    line-height: 1;
    font-size: inherit;
}

.cegg-rating-stars::before {
    content: "★★★★★";
    font-family: Times;
    letter-spacing: 1px;
    background: linear-gradient(90deg, gold var(--percent), #bdbdbd var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cegg-rating-value {
    font-size: .7em;
}

/* Estilos para círculos */
.cegg-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid;
    border-radius: 50%;
    font-size: 1rem;
}