﻿html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    position: relative;
    background: #fff;
}

    /* Fondo general de toda la página */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-image: url("../img/TESTIMONIOS/Fondo16.jpg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        opacity: 0.1;
        pointer-events: none;
    }   


.contenedor {
    padding-bottom: 60px;
}

.titulo-testimonios {
    font-family: "Roboto", sans-serif;
    font-weight:1000;
}

/* =========== Inicio de Cargando =========== */

.formato {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    font-family: sans-serif;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    .formato.ocultar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.loader {
    width: 60px;
    height: 60px;
    margin: 0;
    position: relative;
}

    .loader::before,
    .loader::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        animation: pulsOut 1.8s ease-in-out infinite;
        filter: drop-shadow(0 0 1rem rgba(159, 20, 30, 0.75));
    }

    .loader::before {
        width: 100%;
        height: 100%;
        background-color: rgba(136, 14, 24, 0.15);
        animation-delay: 0.5s;
    }

    .loader::after {
        width: 75%;
        height: 75%;
        background-color: rgba(159, 20, 30, 0.5);
        top: 12.5%;
        left: 12.5%;
    }

@keyframes pulsOut {
    0%, 100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

.loaderText {
    color: #d61c24;
    margin-top: 20px 0 0 0;
    text-transform: uppercase;
    text-align: center;
}

.barraProgreso {
    width: 800px;
    max-width: 80%;
    height: 20px;
    background: #000;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

@media (max-width: 850px) {
    .barraProgreso {
        width: 80%;
    }
}

.progreso {
    height: 100%;
    background: #d61b24;
    width: 0%;
    transition: width 0.15s linear;
}

/* =========== Fin de Cargando =========== */

.grid-container {
    width: 100%;
    max-width: 1300px;
    margin: 50px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5em;
    position: relative;
}

    .grid-container.cargando {
        min-height: 500px;
    }

    .grid-container.cargando .card {
        opacity: 0;
        visibility: hidden;
    }

    .grid-container:not(.cargando) .card {
        visibility: visible;
    }

    .grid-container .card {
        text-align: center;
        display: flex;
        gap: 1em;
        position: relative;
        /*opacity: 0;*/
        /*transform: translateY(60px);
        transition: opacity 0.6s ease, transform 0.6s ease;*/

        animation: aparacerTarjeta 5s linear;
        animation-timeline: view();
        animation-range: entry 0 cover 40%;
    }

@keyframes aparacerTarjeta {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

        /*.grid-container .card.mostrar {
            opacity: 1;
            transform: translateY(0px);
        }

        .grid-container .card.desde-abajo {
            transform: translateY(60px);
        }

        .grid-container .card.desde-arriba {
            transform: translateY(-60px);
        }*/

    .grid-container .card img, .grid-container .card iframe {
        height: 234px;
        display: block;
        cursor: pointer;
    }

.card:hover {
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #8d0820;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* deja pasar el clic a la imagen de abajo */
}

    .play-icon i {
        color: #fff;
        font-size: 24px;
        margin-left: 3px;
    }

@media (max-width: 991px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.card-oculta {
    display: none !important;
    transition: 0.5s;
}

.verMasbtn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.btn-VerMas {
    display: none;
    background: #8d0820;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    transition: background 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
}

    .btn-VerMas:hover {
        background: #d5081d;
    }


/* =========== Inicio de CarruselImgWhats =========== */

.carouselWhats {
    margin: 100px auto;
    width: 90%;
    display: flex;
    overflow-x: hidden;
}

    .carouselWhats::-webkit-scrollbar {
        display: none;
    }

.groupTracker {
    display: flex;
    width: max-content;
    animation: moverCarruselInfinito 20s linear infinite;
}

.groupTracker:hover {
    animation-play-state: paused;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-shrink: 0;
    padding-right: 1em;
    padding-bottom: 2em;
    padding-top: 2em;
    /*animation: spin 10s infinite linear;*/
    /*animation: move 20s linear infinite;*/
}

/*.group:hover {
        animation-play-state: paused;
    }*/

.cardWhats {
    position: relative;
    overflow: hidden;
    flex: 0 0 8em;
    height: 8em;
    background: cornflowerblue;
    font-size: 3rem;
    border-radius: .6em;
    text-align: center;
    align-content: center;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
    cursor: default;
    transition: all 400ms ease;
}

    .cardWhats:hover {
        box-shadow: 7px 7px 7px rgba(0,0,0,0.4);
    }

    .cardWhats img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.verCursobtn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #8d0820;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap; /* Evita que el texto del botón se rompa en varias líneas */
    z-index: 2; /* Asegura que esté por encima de la imagen */
    text-decoration: none;
    width: 200px;
    height: 50px;
}

@keyframes moverCarruselInfinito {
        0% {
            transform: translateX(0%);
        }

        100% {
            transform: translateX(-50%);
        }
    }
    
/*@keyframes spin {
    from {translate: 0;}
    to {translate: -100%;}
}*/

/* =========== Fin de CarruselImgWhats =========== */


/*.background::before {
    content: '';
    background-image: url("../img/TESTIMONIOS/Fondo16.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0.1;
}*/

.footer-area {
    background: #fff;
}

