/* --------------------------------- 
        INICIO EXPO VIRTUAL
---------------------------------- */
.pleca-container {
    background-image: url('../../images/inicio/expo_virtual/fondo_titulo.webp'); /* Ajusta ruta */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 1.5rem 0 0.8rem 0;
    padding: 10px;
}

.pleca-text {
    font-size: clamp(30px, 8vw, 45px);
    color: white;
    font-weight: bold;
    margin: 0 0 5px 10px;
    text-align: center;
}

#top h2,
#texto-edicion {
    color: var(--azul-marino-medex);
    font-family: Avenir roman;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#top h2 {
    font-size: 26px;
}

#texto-edicion {
    font-weight: 700;
}

.input-icon {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 30px;
    background: #d9d9d9;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    gap: 10px;
    transition: box-shadow 0.3s;
    height: 38px;
    max-width: 530px;
}

.input-icon:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Input sin bordes ni fondo */
.input-busqueda {
    border: none;
    background-color: transparent;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: var(--gris-oscuro);
}

.input-busqueda::placeholder {
    color: #777;
    font-weight: 500;
}

/* Botoncitos edición */
.btn-edicion {
    padding: 7px 25px;
    border-radius: 30px;
    background: var(--azul-marino-medex);
    transition: box-shadow 0.3s;
    height: 38px;
    border-color: transparent;
    color: #fff;
    margin-right: 10px;
}

.btn-edicion.activo {
    background-color: #006a71;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25) inset;
}

@media (max-width: 476px) {
    .btn-edicion {
        margin-right: 5px;
        padding-inline: 14px;
    }
}

/* --------------------------------- 
        PARTIAL LIST CARDS
---------------------------------- */
/* Cards */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
    justify-items: center;
    padding: 20px;
    justify-items: center;
}

.video-card {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.youtube-lazy {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    /* border-radius: 6px; */
}

iframe {
    aspect-ratio: 16 / 9;
}

/* Miniatura */
.youtube-thumb {
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-thumb img,
.video-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Boton en miniatura */
.youtube-play-button {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.youtube-play-button::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 15px;
    border-style: solid;
    border-width: 20px 0 20px 28px;
    border-color: transparent transparent transparent white;
}

/* Titulo y texto card */
.video-texto {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.video-texto h4 {
    color: var(--turquesa-medex);
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin: 0 0 8px;
}

.video-texto p {
    color: var(--azul-marino-medex);
    text-align: justify;
    line-height: normal;
    font-size: 14px;
}

/* Responsive */

@media (max-width: 576px) {
    .video-card {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Paginacion */
.paginacion,
.enlace-youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.paginacion p,
.enlace-youtube p {
    color: var(--azul-marino-medex);
    font-size: 18px;
    font-weight: 500;
}

.enlace-youtube p {
    font-weight: 700;
}

.enlace-youtube a,
.enlace-youtube a:hover {
    text-decoration: none;
    color: var(--turquesa-medex);
}

.page-item .page-link {
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #006a71;
    font-weight: bold;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.page-item .page-link:hover {
    background-color: #e0f7f6;
}

/* Página actual activa */
.page-item.active .page-link {
    background-color: #009688;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

/* Ocultar flechas prev/next si no las quieres */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    display: none;
}

.no-encontrados {
    font-weight: 22px;
    color: var(--gris-oscuro);
}
