:root{
    --pub-fondo: #ffffff;
    --pub-gris: #424f54;
    --pub-gris-claro: #e6e6e6;
}

html,body{
    background-color: var(--pub-fondo);
    background-image: unset;
}

.contenedor-buscar{
    position: relative;
    width: 100%;
    margin-top: 35px;
    margin-bottom: 20px;
    .form-control{
        padding-left: 45px;
        padding-right: 90px;
        height: 48px;
        border-radius: 25px;
    }
    .icono-buscar{
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: #6c757d;
        pointer-events: none;
        z-index: 2;
        line-height: 1;
    }
    .estrella-buscar{
        position: absolute;
        right: 15px;
        bottom: 0;
        height: 75px;
        width: auto;
        cursor: pointer;
        z-index: 2;
        transition: transform 0.25s ease;
        &:hover{
            transform: translateY(-15px);
        }
    }
}

.nav-paginacion{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    .pagination{
        margin-bottom: 0;
        .page-link{
            color: var(--pub-gris);
            border-radius: 8px;
            margin: 0 2px;
        }
        .page-item.active .page-link{
            background-color: var(--bs-primary);
            border-color: var(--bs-primary);
            color: #ffffff;
        }
    }
}

.btn-volver{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    .material-symbols-outlined{
        font-size: 20px;
        line-height: 1;
    }
    &:hover{
        transform: translateX(-4px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
}

#div-testimonios,
.c2{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 10px 0 50px;
    align-items: start;

    @media (max-width: 992px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    @media (max-width: 576px) {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 360px;
        margin: 0 auto;
    }

    #loading-testimonios:not(.visually-hidden){
        grid-column: 1 / -1;
        margin: 50px auto;
        display: block;
        color: var(--bs-primary);
        width: 3rem;
        height: 3rem;
        border-width: 0.25em;
    }
    #loading-testimonios.visually-hidden{
        display: none !important;
    }
    .card-testimonio,
    .card-c2{
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);

        &:hover{
            transform: translateY(-8px);
            .testimonio-video-box{
                box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
            }
        }
        &.card-activo,
        &.reproduciendo{
            transform: translateY(-8px);
            .testimonio-video-box{
                border-color: var(--bs-primary);
                box-shadow: 0 18px 38px rgba(255, 132, 2, 0.38);
            }
            .testimonio-badge-play{
                background-color: var(--bs-primary);
                transform: scale(1.1);
            }
            .testimonio-info,
            .c7-card-pill{
                background-color: var(--bs-primary);
            }
        }
        &.pausado{
            .testimonio-badge-play{
                background-color: rgba(0, 0, 0, 0.55);
                transform: scale(1);
            }
        }
        .testimonio-video-box{
            position: relative;
            width: 100%;
            aspect-ratio: 9 / 16;
            min-height: 420px;
            background-color: #0b0d0e;
            border-radius: 28px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
            border: 3px solid transparent;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;

            @media (max-width: 576px) {
                min-height: 360px;
            }

            .smartphone-notch{
                position: absolute;
                top: 10px;
                left: 50%;
                transform: translateX(-50%);
                width: 55px;
                height: 5px;
                background-color: rgba(255, 255, 255, 0.28);
                border-radius: 10px;
                z-index: 3;
                pointer-events: none;
            }

            .loading{
                position: absolute;
                color: var(--bs-primary);
                z-index: 2;
                width: 2.2rem;
                height: 2.2rem;
                border-width: 0.22em;
            }

            video.testimonio-video,
            video.c2-video{
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: opacity 0.35s ease;
                &.cargando{
                    opacity: 0;
                }
            }

            .testimonio-badge-play{
                position: absolute;
                bottom: 14px;
                right: 14px;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: rgba(0, 0, 0, 0.55);
                backdrop-filter: blur(4px);
                display: flex;
                align-items: center;
                justify-content: center;
                color: #ffffff;
                z-index: 3;
                transition: all 0.25s ease;
                pointer-events: auto;
                cursor: pointer;
                &:hover{
                    transform: scale(1.15);
                    background-color: rgba(0, 0, 0, 0.85);
                }
                .material-symbols-outlined{
                    font-size: 24px;
                    line-height: 1;
                }
            }
        }

        .testimonio-info,
        .c7-card-pill{
            width: 100%;
            height: clamp(52px, 5vw, 64px);
            margin-top: 14px;
            background-color: #2e3539;
            border-radius: 14px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 15px;
            color: #ffffff;
            font-weight: 700;
            font-size: clamp(0.9rem, 1.1vw, 1.1rem);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
            transition: background-color 0.3s ease;

            span{
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                max-width: 100%;
            }

            .testimonio-nombre{
                font-size: clamp(0.85rem, 1vw, 1.05rem);
                font-weight: 700;
                color: #ffffff;
                margin: 0;
                line-height: 1.2;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                max-width: 100%;
                width: 100%;
            }

            .testimonio-fecha{
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                font-size: 0.72rem;
                color: rgba(255, 255, 255, 0.85);
                margin: 2px 0 0 0;
                font-weight: 500;
                text-transform: none;
                letter-spacing: normal;
                line-height: 1;

                .material-symbols-outlined,
                .icono-calendario{
                    font-size: 13px;
                    line-height: 1;
                    color: rgba(255, 255, 255, 0.85);
                }
            }
        }
    }
}
