/*
 * Piezas comunes de las portadas rediseñadas (public/includes/vista.php).
 * Solo forma básica: cada tema pone colores y acomodo en su theme.css.
 */

.vista-flecha {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.vista-flecha:hover { background: rgba(0, 0, 0, 0.8); }
.vista-flecha:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vista-flecha-prev { left: 10px; }
.vista-flecha-next { right: 10px; }

.vista-contador {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.vista-sin-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    font-size: 3rem;
    opacity: 0.4;
}

.vista-avance {
    height: 8px;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.22);
    overflow: hidden;
}
.vista-avance > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.vista-vacio { text-align: center; opacity: 0.75; padding: 1.5rem; }

#faqs .faq-question { cursor: pointer; }
#faqs .faq-question i { transition: transform 0.3s ease; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Imagen principal del admin, arriba de cada portada */
.vista-imagen-principal { max-width: 1200px; margin: 0 auto 2rem; padding: 0 1rem; }
.vista-imagen-principal img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Título de redes en los pies de página */
.vista-redes-titulo { display: block; width: 100%; margin-bottom: 0.2rem; font-weight: 700; opacity: 0.85; }
