/* =====================================================
   Muro de Fotos de Invitados  Estilos Base
   Variables --muro-* con fallbacks. Cada plantilla define
   sus propios valores en su CSS individual.
   ===================================================== */

/* --- FAB (Floating Action Button) --- */
.muro-fab {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muro-accent, #c8a45a);
    color: var(--muro-fab-text, #fff);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.muro-fab:active {
    transform: scale(0.92);
}

.muro-fab svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* --- Modal Overlay --- */
.muro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: muroFadeIn 0.2s ease;
}

@keyframes muroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Modal --- */
.muro-modal {
    background: var(--muro-card-bg, #fff);
    border-radius: var(--muro-radius, 16px) var(--muro-radius, 16px) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    animation: muroSlideUp 0.25s ease;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
}

@keyframes muroSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (min-width: 600px) {
    .muro-modal-overlay {
        align-items: center;
    }
    .muro-modal {
        border-radius: var(--muro-radius, 16px);
        max-height: 85vh;
    }
}

.muro-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.muro-modal__title {
    font-family: var(--muro-font-title, inherit);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muro-text-color, #222);
    margin: 0;
}

.muro-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--muro-text-color, #666);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.muro-modal__close:active {
    background: rgba(0, 0, 0, 0.08);
}

.muro-modal__body {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* --- Botones de accin (Cmara, Galera, Video) --- */
.muro-modal__acciones {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.muro-modal__accion-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.25rem;
    border-radius: var(--muro-radius, 12px);
    background: var(--muro-bg, #f5f5f5);
    color: var(--muro-text-color, #333);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 90px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.muro-modal__accion-btn:active {
    transform: scale(0.95);
    background: var(--muro-accent, #c8a45a);
    color: var(--muro-fab-text, #fff);
}

.muro-modal__accion-btn svg {
    width: 28px;
    height: 28px;
}

.muro-modal__accion-texto {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.2;
}

.muro-modal__accion-titulo {
    font-weight: 600;
}

.muro-modal__accion-sub {
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.85;
    max-width: 110px;
}

.muro-modal__video-hint {
    font-size: 0.72rem;
    color: var(--muro-text-muted, #888);
    margin: 0.75rem 0 0;
    line-height: 1.35;
}

.muro-modal__input-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Preview de archivos seleccionados --- */
.muro-modal__preview-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: flex-start;
}

.muro-modal__preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 140px;
    max-width: 100%;
}

.muro-modal__preview-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--muro-bg, #eee);
}

.muro-modal__preview-thumb img,
.muro-modal__preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-orientation: from-image;
}

.muro-modal__preview-comentario {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.72rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--muro-bg, #ddd);
    border-radius: 6px;
    resize: vertical;
    min-height: 2.6em;
    font-family: inherit;
}

.muro-modal__preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

/* --- Cropper --- */
.muro-modal__cropper-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

.muro-modal__cropper-wrap img {
    max-width: 100%;
    max-height: 45vh;
    display: block;
    flex-shrink: 1;
    min-height: 0;
}

.cropper-container {
    max-height: 45vh !important;
}

.muro-modal__cropper-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    flex-shrink: 0;
    padding: 0.5rem 0 0.25rem;
    background: var(--muro-card-bg, #fff);
    position: sticky;
    bottom: -1.25rem;
    z-index: 10;
}

/* --- Video duration bar --- */
.muro-modal__video-info {
    margin-top: 1rem;
    text-align: center;
}

.muro-modal__video-bar-wrap {
    height: 8px;
    background: var(--muro-bg, #e5e5e5);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.muro-modal__video-bar {
    height: 100%;
    background: var(--muro-accent, #c8a45a);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.muro-modal__video-bar--over {
    background: #e74c3c;
}

.muro-modal__video-duracion {
    font-size: 0.8rem;
    color: var(--muro-text-muted, #888);
}

.muro-modal__video-trim {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--muro-radius, 10px);
    background: var(--muro-bg, #f5f5f5);
}

.muro-modal__video-trim-texto {
    font-size: 0.8rem;
    color: var(--muro-text-color, #333);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.muro-modal__video-trim-preview {
    width: 100%;
    max-height: 40vh;
    border-radius: 8px;
    background: #000;
    display: block;
    margin-bottom: 0.75rem;
}

.muro-modal__video-trim-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muro-text-muted, #666);
    margin-bottom: 0.25rem;
}

.muro-modal__video-trim-range {
    width: 100%;
    margin-bottom: 0.75rem;
}

.muro-modal__video-trim-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* --- Progress bar --- */
.muro-modal__progress {
    margin-top: 1rem;
    position: relative;
    height: 8px;
    background: var(--muro-bg, #e5e5e5);
    border-radius: 4px;
    overflow: hidden;
}

.muro-modal__progress-bar {
    height: 100%;
    background: var(--muro-accent, #c8a45a);
    border-radius: 4px;
    transition: width 0.15s ease;
    width: 0%;
}

.muro-modal__progress-text {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muro-text-muted, #888);
    margin-top: 0.3rem;
}

/* --- Resultado xito --- */
.muro-modal__resultado {
    text-align: center;
    padding: 1rem 0;
}

.muro-modal__resultado-icono {
    color: #27ae60;
    margin-bottom: 0.75rem;
}

.muro-modal__resultado-msg {
    font-size: 0.95rem;
    color: var(--muro-text-color, #333);
    margin: 0 0 1rem;
}

.muro-modal__resultado-acciones {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Botones genricos --- */
.muro-modal__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.muro-modal__btn--primary {
    background: var(--muro-accent, #c8a45a);
    color: var(--muro-fab-text, #fff);
}

.muro-modal__btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.muro-modal__btn--primary:not(:disabled):active {
    transform: scale(0.96);
}

.muro-modal__btn--secondary {
    background: var(--muro-bg, #f0f0f0);
    color: var(--muro-text-color, #333);
}

.muro-modal__btn--secondary:active {
    transform: scale(0.96);
}

.muro-modal__btn--subir {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 1rem;
}

/* --- Footer del modal --- */
.muro-modal__footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

/* --- Lmites del plan --- */
.muro-modal__limites {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--muro-text-muted, #999);
}

/* --- Campo nombre para QR --- */
.muro-modal__nombre-qr {
    margin-top: 1rem;
}

.muro-modal__nombre-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muro-text-muted, #888);
    margin-bottom: 0.3rem;
}

.muro-modal__nombre-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--muro-bg, #fafafa);
    color: var(--muro-text-color, #333);
    outline: none;
    transition: border-color 0.15s;
}

.muro-modal__nombre-input:focus {
    border-color: var(--muro-accent, #c8a45a);
}

/* =====================================================
   Seccin Muro en la Landing  Carrusel + Muro expandible
   ===================================================== */

.muro-fotos-seccion {
    padding: 3rem 0;
    background: #f0f2f5;
    color: #1f2937;
}

.muro-fotos-seccion__titulo {
    text-align: center;
    font-family: var(--muro-font-title, inherit);
    font-size: 1.6rem;
    color: var(--muro-text-color, #1f2937);
    margin-bottom: 0.25rem;
}

.muro-fotos-seccion__subtitulo {
    text-align: center;
    color: #65676b;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Empty state */
.muro-fotos-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muro-text-muted, #888);
    border: 2px dashed color-mix(in srgb, var(--muro-accent, #c8a45a) 40%, transparent);
    border-radius: var(--muro-radius, 12px);
    background: color-mix(in srgb, var(--muro-card-bg, #fff) 85%, transparent);
}

.muro-fotos-empty[hidden] {
    display: none;
}

.muro-fotos-empty__icono {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    color: var(--muro-accent, #c8a45a);
}

.muro-fotos-empty__icono svg {
    width: 100%;
    height: 100%;
}

.muro-fotos-empty__texto {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muro-text-color, #222);
    margin: 0 0 0.25rem;
}

.muro-fotos-empty__hint {
    font-size: 0.88rem;
    margin: 0;
    opacity: 0.85;
}

/* Carrusel y botón "Ver todas": eliminados de la UI del muro. */

/* --- Muro expandible (tarjetas tipo Facebook) ---
   Los estilos del CARD son fijos (blanco/dark/gray) para garantizar
   legibilidad en todas las plantillas. Solo usamos las variables de
   plantilla en elementos de acento (avatar, enlaces, etc.). */
.muro-wall {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Aislamos la tipografía: las plantillas usan fuentes decorativas
       que rompen el look tipo Facebook. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
}

.muro-wall--hidden {
    display: none;
}

.muro-wall__card {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.muro-wall__card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
}

.muro-wall__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e6eb;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: inherit;
}

.muro-wall__nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: #050505;
    font-family: inherit;
    line-height: 1.3;
}

.muro-wall__fecha {
    font-size: 0.8rem;
    color: #65676b;
    font-family: inherit;
    line-height: 1.3;
}

/* --- Grid adaptativo de fotos (tipo Facebook) --- */
.muro-wall__grid {
    display: grid;
    gap: 2px;
}

.muro-wall__grid--1 {
    grid-template-columns: 1fr;
}

.muro-wall__grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* 3 fotos: 1 grande arriba (full) + 2 abajo */
.muro-wall__grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.muro-wall__grid--3 .muro-wall__media:first-child {
    grid-column: 1 / -1;
}

/* 4 fotos: 1 grande arriba (full) + 3 columnas abajo */
.muro-wall__grid--4 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
}

.muro-wall__grid--4 .muro-wall__media:first-child {
    grid-column: 1 / -1;
}

/* 5+ fotos: 2 arriba + 3 abajo */
.muro-wall__grid--5 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
}

.muro-wall__grid--5 .muro-wall__media:nth-child(1),
.muro-wall__grid--5 .muro-wall__media:nth-child(2) {
    grid-column: span 3;
}

.muro-wall__grid--5 .muro-wall__media:nth-child(n+3) {
    grid-column: span 2;
}

.muro-wall__media {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--muro-bg, #eee);
}

.muro-wall__media::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.muro-wall__media img,
.muro-wall__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-orientation: from-image;
}

.muro-wall__media--badge::after {
    content: attr(data-badge);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.muro-wall__video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.muro-wall__video-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    margin-left: 3px;
}

.muro-wall__ver-mas {
    display: none;
}

.muro-wall__ver-mas-btn {
    background: none;
    border: none;
    color: var(--muro-accent, #c8a45a);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem;
}

/* --- Lightbox --- */
.muro-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: muroFadeIn 0.2s ease;
}

.muro-lightbox__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    max-height: 92vh;
}

.muro-lightbox__content {
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.muro-lightbox__comentario {
    margin: 0.75rem 1rem 0;
    max-width: 90vw;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
}

.muro-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Loader para carga de muro --- */
.muro-loader {
    text-align: center;
    padding: 2rem;
    color: var(--muro-text-muted, #aaa);
    font-size: 0.85rem;
}

/* --- Empty state --- */
.muro-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muro-text-muted, #aaa);
}

.muro-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

/* =====================================================
   ACCESO AL MURO  CTA principal y modal con 3 opciones
   Antes viva en muro_fotos_acceso.css
   ===================================================== */

/* --- CTA visible en la seccin muro-fotos --- */
.muro-fotos-seccion__cta-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0 26px;
}

.muro-fotos-seccion__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    background: var(--muro-accent, #c8a45a);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--muro-accent, #c8a45a) 28%, transparent),
                0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.18s ease;
    min-width: 260px;
    max-width: 100%;
}

.muro-fotos-seccion__cta:hover,
.muro-fotos-seccion__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--muro-accent, #c8a45a) 38%, transparent),
                0 4px 10px rgba(0, 0, 0, 0.1);
    outline: none;
    background: color-mix(in srgb, var(--muro-accent, #c8a45a) 90%, #000000);
}

.muro-fotos-seccion__cta:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--muro-accent, #c8a45a) 55%, #ffffff);
    outline-offset: 3px;
}

.muro-fotos-seccion__cta:active {
    transform: translateY(0);
}

.muro-fotos-seccion__cta-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.muro-fotos-seccion__cta-icono svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.muro-fotos-seccion__cta-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.muro-fotos-seccion__cta-titulo {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.muro-fotos-seccion__cta-sub {
    font-size: 0.8rem;
    opacity: 0.92;
    font-weight: 400;
}

@media (max-width: 480px) {
    .muro-fotos-seccion__cta {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        gap: 12px;
    }

    .muro-fotos-seccion__cta-icono {
        width: 38px;
        height: 38px;
    }

    .muro-fotos-seccion__cta-titulo {
        font-size: 0.96rem;
    }

    .muro-fotos-seccion__cta-sub {
        font-size: 0.75rem;
    }
}

/* --- Modal de acceso (overlay) --- */
.muro-acceso-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100150;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: muroAccesoFadeIn 0.22s ease-out;
}

.muro-acceso-overlay[style*="flex"] {
    display: flex !important;
}

@keyframes muroAccesoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.muro-acceso {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: muroAccesoSlideUp 0.26s cubic-bezier(0.2, 0.8, 0.25, 1);
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes muroAccesoSlideUp {
    from { transform: translateY(24px); opacity: 0.8; }
    to   { transform: translateY(0);     opacity: 1; }
}

@media (min-width: 640px) {
    .muro-acceso-overlay {
        align-items: center;
        padding: 24px;
    }
    .muro-acceso {
        border-radius: 20px;
        max-height: 86vh;
    }
}

/* Header */
.muro-acceso__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.muro-acceso__titulo {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.muro-acceso__close {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

.muro-acceso__close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Body */
.muro-acceso__body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 24px;
}

.muro-acceso__intro {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 0.95rem;
    text-align: center;
}

/* Opciones (tarjetas) */
.muro-acceso__opciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.muro-acceso__opcion {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease, box-shadow 0.22s ease;
}

.muro-acceso__opcion:hover,
.muro-acceso__opcion:focus-visible {
    border-color: var(--muro-accent, #c8a45a);
    background: color-mix(in srgb, var(--muro-accent, #c8a45a) 5%, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--muro-accent, #c8a45a) 14%, transparent);
    outline: none;
}

.muro-acceso__opcion[hidden] {
    display: none;
}

.muro-acceso__opcion-icono {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--muro-accent, #c8a45a) 14%, #ffffff);
    color: var(--muro-accent, #c8a45a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.muro-acceso__opcion-icono svg {
    width: 22px;
    height: 22px;
}

.muro-acceso__opcion-texto {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.muro-acceso__opcion-titulo {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.muro-acceso__opcion-sub {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.3;
}

.muro-acceso__opcion-flecha {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.muro-acceso__opcion-flecha svg {
    width: 18px;
    height: 18px;
}

.muro-acceso__ayuda {
    margin: 20px 0 0;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    color: #6b7280;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1.4;
}

/* Panel volver */
.muro-acceso__volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 6px 10px 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: background 0.18s ease, color 0.18s ease;
}

.muro-acceso__volver:hover {
    background: #f3f4f6;
    color: #111827;
}

.muro-acceso__panel-titulo {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.muro-acceso__panel-sub {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0 0 16px;
}

/* Scanner QR */
.muro-acceso__scanner-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
}

.muro-acceso__scanner {
    width: 100%;
    height: 100%;
}

.muro-acceso__scanner video,
.muro-acceso__scanner canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.muro-acceso__scanner-marco {
    position: absolute;
    inset: 14%;
    border-radius: 18px;
    box-shadow: 0 0 0 3000px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.95);
    pointer-events: none;
}

.muro-acceso__scanner-marco::before,
.muro-acceso__scanner-marco::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 4px solid var(--muro-accent, #c8a45a);
    border-radius: 6px;
}

.muro-acceso__scanner-marco::before {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
}

.muro-acceso__scanner-marco::after {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
}

.muro-acceso__scanner-estado {
    text-align: center;
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: #4b5563;
    min-height: 1.4em;
}

.muro-acceso__scanner-estado--error {
    color: #b91c1c;
}

.muro-acceso__scanner-estado--ok {
    color: #047857;
}

/* Form de cdigo */
.muro-acceso__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.muro-acceso__label {
    font-size: 0.86rem;
    color: #374151;
    font-weight: 500;
}

.muro-acceso__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #1f2937;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    letter-spacing: 0.05em;
    font-family: 'Courier New', monospace;
}

.muro-acceso__input:focus {
    outline: none;
    border-color: var(--muro-accent, #c8a45a);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--muro-accent, #c8a45a) 20%, transparent);
}

.muro-acceso__form-error {
    color: #b91c1c;
    font-size: 0.84rem;
    min-height: 1.2em;
    margin: 0;
}

.muro-acceso__submit {
    margin-top: 6px;
    padding: 13px 18px;
    background: var(--muro-accent, #c8a45a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}

.muro-acceso__submit:hover:not(:disabled),
.muro-acceso__submit:focus-visible:not(:disabled) {
    background: color-mix(in srgb, var(--muro-accent, #c8a45a) 88%, #000000);
    outline: none;
}

.muro-acceso__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.muro-acceso__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loader */
.muro-acceso__panel--loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 18px;
}

.muro-acceso__loader-spinner {
    width: 42px;
    height: 42px;
    border: 3.5px solid #e5e7eb;
    border-top-color: var(--muro-accent, #c8a45a);
    border-radius: 50%;
    animation: muroAccesoSpin 0.9s linear infinite;
}

@keyframes muroAccesoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.muro-acceso__loader-msg {
    color: #4b5563;
    font-size: 0.92rem;
    margin: 0;
}

/* xito */
.muro-acceso__panel--exito {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    gap: 14px;
    text-align: center;
}

.muro-acceso__exito-icono {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: color-mix(in srgb, #10b981 14%, #ffffff);
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: muroAccesoPulse 0.5s ease-out;
}

.muro-acceso__exito-icono svg {
    width: 38px;
    height: 38px;
}

@keyframes muroAccesoPulse {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.muro-acceso__exito-titulo {
    font-size: 1.18rem;
    font-weight: 700;
    color: #065f46;
    margin: 0;
}

.muro-acceso__exito-sub {
    color: #4b5563;
    font-size: 0.92rem;
    margin: 0;
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .muro-acceso-overlay,
    .muro-acceso,
    .muro-acceso__exito-icono,
    .muro-acceso__loader-spinner {
        animation: none !important;
    }
}

/* =========================================================
   QR visible en la pgina pblica (seccin Fotos del evento)
   Se muestra solo si el dueo activ 'Mostrar QR en la pgina'.
   ========================================================= */
.muro-fotos-qr {
    margin: 1.5rem auto 1rem;
    max-width: 260px;
    text-align: center;
}

.muro-fotos-qr__frame {
    display: inline-block;
    padding: 10px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.muro-fotos-qr__img {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 60vw;
    max-height: 60vw;
    object-fit: contain;
}

.muro-fotos-qr__hint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--muro-texto-secundario, #6b6783);
    line-height: 1.4;
}

@media (max-width: 480px) {
    .muro-fotos-qr__img {
        width: 180px;
        height: 180px;
    }
}

/* ============================================================
   Álbum por usuario — modal con todas las fotos/videos
   ============================================================ */
.muro-album-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    animation: muroFadeIn 0.2s ease;
}

.muro-album {
    background: var(--muro-card-bg, #fff);
    color: var(--muro-text-color, #222);
    border-radius: var(--muro-radius, 12px);
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.muro-album__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.muro-album__avatar {
    flex-shrink: 0;
}

.muro-album__info {
    flex: 1;
    min-width: 0;
}

.muro-album__nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muro-text-color, #222);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.muro-album__conteo {
    font-size: 0.8rem;
    color: var(--muro-text-muted, #999);
}

.muro-album__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--muro-text-color, #222);
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.muro-album__close:hover {
    background: rgba(0, 0, 0, 0.08);
}

.muro-album__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    overflow-y: auto;
    flex: 1;
}

@media (min-width: 720px) {
    .muro-album__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.muro-album__grid .muro-wall__media {
    border-radius: 4px;
}

/* =====================================================
   CTA del muro en la página principal de la plantilla.
   Aparece cuando $GLOBALS['muro_fotos_modo'] === 'cta'.
   ===================================================== */
.muro-fotos-cta {
    padding: 3rem 0;
    background: #f0f2f5;
    color: #1f2937;
    text-align: center;
}

.muro-fotos-cta__titulo {
    font-family: var(--muro-font-title, inherit);
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c1e21;
    margin: 0 0 0.4rem;
}

.muro-fotos-cta__subtitulo {
    color: #65676b;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.muro-fotos-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: var(--muro-accent, #c8a45a);
    color: var(--muro-fab-text, #fff);
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--muro-accent, #c8a45a) 32%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.muro-fotos-cta__btn:hover,
.muro-fotos-cta__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--muro-accent, #c8a45a) 42%, transparent);
    color: var(--muro-fab-text, #fff);
    text-decoration: none;
}

.muro-fotos-cta__btn:active {
    transform: translateY(0);
}

.muro-fotos-cta__btn svg {
    flex-shrink: 0;
}

/* =====================================================
   Botón "Ver álbum completo de X" dentro de la tarjeta
   del feed (muro-wall__card).
   ===================================================== */
.muro-wall__btn-album {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f7f7f8;
    color: #050505;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.muro-wall__btn-album:hover,
.muro-wall__btn-album:focus-visible {
    background: #ececef;
    color: #050505;
    text-decoration: none;
}

.muro-wall__btn-album svg {
    flex-shrink: 0;
    color: var(--muro-accent, #c8a45a);
}

.muro-wall__info-extra {
    margin: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f7f7f8;
    color: #65676b;
    font-size: 0.85rem;
    text-align: center;
}

/* =====================================================
   Subpágina del álbum individual (?pagina=muro&u=CODIGO).
   ===================================================== */
.muro-fotos-seccion--album .muro-fotos-seccion__subtitulo {
    margin-bottom: 1rem;
}

.muro-fotos-album__volver {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: background 0.15s ease, transform 0.15s ease;
}

.muro-fotos-album__volver:hover,
.muro-fotos-album__volver:focus-visible {
    background: #f0f2f5;
    color: #1f2937;
    text-decoration: none;
    transform: translateX(-2px);
}

.muro-fotos-album__volver svg {
    color: var(--muro-accent, #c8a45a);
}

.muro-album-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.muro-album-page__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (min-width: 540px) {
    .muro-album-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .muro-album-page__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.muro-album-page__grid .muro-wall__media {
    border-radius: 0;
    background: #eaeaea;
}

.muro-album-page__vacio {
    text-align: center;
    color: #65676b;
    padding: 2rem 1rem;
    margin: 0;
}
