/* Barra del showroom: comparar diseños sin salir de la invitacion. */

.showroom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* Base propia, en px: liebe hereda el `html{font-size:10px}` de
       Bootstrap 3 y con `rem` esta barra salia al 62.5%. Lo de dentro va en
       `em` y cuelga de aqui. */
    font-size: 16px;
    color: var(--demo-text);
    background: linear-gradient(0deg, rgba(25, 14, 23, 0.98) 0%, rgba(47, 29, 40, 0.96) 100%);
    border-top: 1px solid var(--demo-border);
    box-shadow: 0 -18px 40px var(--demo-shadow), inset 0 1px 0 var(--demo-highlight);
}

/* El pie fijo tapaba el RSVP y el aviso de privacidad del template. */
body.has-showroom-bar {
    padding-bottom: 88px;
}

.showroom-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px clamp(12px, 3vw, 28px);
}

.showroom-bar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.showroom-bar__arrow,
.showroom-bar__current,
.showroom-bar__cta {
    font: inherit;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.showroom-bar__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: var(--demo-text);
    background: var(--demo-highlight);
    border: 1px solid var(--demo-border);
    font-size: 18px;
    line-height: 1;
}

.showroom-bar__current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 6px 16px;
    color: var(--demo-text);
    background: transparent;
    border: 1px solid var(--demo-border);
    cursor: pointer;
    text-align: left;
}

.showroom-bar__name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.showroom-bar__count {
    font-size: 12px;
    color: var(--demo-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showroom-bar__cta {
    flex: 0 0 auto;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--demo-ink);
    background: linear-gradient(135deg, var(--demo-gold), var(--demo-rose));
    border: 0;
}

.showroom-bar__arrow:hover,
.showroom-bar__current:hover {
    background: rgba(255, 255, 255, 0.14);
}

.showroom-bar__cta:hover {
    transform: translateY(-1px);
}

.showroom-bar__arrow:focus-visible,
.showroom-bar__current:focus-visible,
.showroom-bar__cta:focus-visible,
.showroom-sheet__item:focus-visible {
    outline: 2px solid var(--demo-gold);
    outline-offset: 2px;
}

/* Hoja de miniaturas */
.showroom-sheet {
    max-height: min(58vh, 420px);
    overflow-y: auto;
    padding: 4px clamp(12px, 3vw, 28px) 18px;
    border-top: 1px solid var(--demo-border);
    background: var(--demo-panel-soft);
}

.showroom-sheet__title {
    margin: 14px 0 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--demo-muted);
}

.showroom-sheet__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.showroom-sheet__item {
    display: block;
    padding: 8px;
    color: var(--demo-text);
    text-decoration: none;
    background: var(--demo-highlight);
    border: 1px solid transparent;
    border-radius: 12px;
}

.showroom-sheet__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.showroom-sheet__item span {
    display: block;
    font-size: 13px;
    text-align: center;
}

.showroom-sheet__item.is-current {
    border-color: var(--demo-gold);
}

.showroom-sheet__item:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
    .showroom-bar__inner {
        flex-wrap: wrap;
    }

    .showroom-bar__nav {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .showroom-bar__cta {
        flex: 1 1 100%;
        text-align: center;
    }

    body.has-showroom-bar {
        padding-bottom: 148px;
    }

    .showroom-bar__name {
        max-width: 46vw;
    }

    body.has-showroom-bar .analytics-consent__manage,
    body.has-showroom-bar .analytics-consent__dialog {
        bottom: calc(var(--showroom-bar-height, 148px) + 12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-bar__arrow,
    .showroom-bar__current,
    .showroom-bar__cta {
        transition: none;
    }

    .showroom-bar__cta:hover {
        transform: none;
    }
}

/* ════════════════════════════════════════════════════════════════════
   BARRA DEL SHOWROOM — REFINAMIENTO
   Mismo cristal y misma regla dorada que el banner superior: arriba y
   abajo tienen que leerse como un solo marco alrededor de la invitacion.
   ════════════════════════════════════════════════════════════════════ */

.showroom-bar {
    background: color-mix(in srgb, var(--demo-ink) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.25);
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    border-top: 0;
    box-shadow: none;
}

/* La regla dorada, arriba de la barra, espeja la del banner. */
.showroom-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--demo-rose) 70%, transparent),
        var(--demo-gold),
        color-mix(in srgb, var(--demo-gold) 35%, transparent));
}

.showroom-bar__inner { padding: 11px clamp(14px, 3vw, 28px); }

/* Flechas cuadradas con filete, como el boton de volver arriba. */
.showroom-bar__arrow {
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: none;
    border: 1px solid color-mix(in srgb, var(--demo-text) 24%, transparent);
    font-size: 16px;
}

.showroom-bar__arrow:hover,
.showroom-bar__arrow:focus-visible {
    background: color-mix(in srgb, var(--demo-text) 12%, transparent);
    border-color: var(--demo-gold);
    color: var(--demo-gold);
}

.showroom-bar__current {
    padding: 4px 18px;
    border: 0;
    border-left: 1px solid color-mix(in srgb, var(--demo-text) 18%, transparent);
    border-radius: 0;
    gap: 1px;
}

.showroom-bar__current:hover { background: none; }

/* El nombre del diseño con la serif de marca: es el dato protagonista. */
.showroom-bar__name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.18em;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.showroom-bar__count {
    font-size: 0.6em;
    letter-spacing: 0.24em;
    color: color-mix(in srgb, var(--demo-text) 62%, transparent);
}

.showroom-bar__cta {
    padding: 13px 26px;
    border-radius: 0;
    font-size: 0.68em;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--demo-ink-on-accent);
}

.showroom-bar__cta:hover { transform: none; filter: brightness(1.06); }

/* Hoja de diseños al mismo lenguaje. */
.showroom-sheet {
    background: color-mix(in srgb, var(--demo-ink) 92%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--demo-text) 14%, transparent);
}

.showroom-sheet__item {
    background: none;
    border: 1px solid transparent;
    border-radius: 0;
}

.showroom-sheet__item img { border-radius: 0; }

.showroom-sheet__item:hover {
    background: color-mix(in srgb, var(--demo-text) 10%, transparent);
    border-color: color-mix(in srgb, var(--demo-gold) 45%, transparent);
}

.showroom-sheet__item.is-current { border-color: var(--demo-gold); }

/* ── Sin choques con el aviso de privacidad ──
   El aviso vive en z-index 10001 y se comia el boton de la barra y el de
   volver arriba. Se le pide que respete el alto medido de la barra. */
body.has-showroom-bar .analytics-consent,
body.has-showroom-bar .analytics-consent__dialog {
    bottom: calc(16px + var(--showroom-bar-height, 0px));
}

@media (max-width: 640px) {
    .showroom-bar__name { font-size: 1.02em; }
    .showroom-bar__arrow { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .showroom-bar__arrow,
    .showroom-bar__current,
    .showroom-bar__cta { transition: none; }
}
