/* ================================
   CONTENEDOR GENERAL
================================ */

.qsb-galeria-wrap {
    text-align: center;
}


/* ================================
   BOTÓN HACER FOTO
================================ */

.qsb-camera-button {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px auto -25px auto;
	position: relative;
	padding: 25px 50px;
	background-color: #a3014d;
}

.qsb-camera-button strong {
    display: block;
    margin-top: 30px;
}
span.qsb-boda-nombre {
    font-size: 25px;
    font-weight: 200;
	padding-bottom: 15px;
}
/* ================================
   CÁMARA FIJA EN PANTALLA
================================ */

.qsb-camera-button {
    position: fixed !important;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    margin: 0 !important;
    padding: 0 !important;
	width: 100%;
}

/* Deja espacio arriba para que la galería no quede tapada */
.qsb-galeria-grid {
    margin-top: 320px !important;
}
/* ================================
   ESQUINAS VISOR CÁMARA
================================ */

.qsb-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 2;
    pointer-events: none;
}

.qsb-corner::before,
.qsb-corner::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,.9);
}

.qsb-corner::before {
    width: 20px;
    height: 1px;
}

.qsb-corner::after {
    width: 1px;
    height: 20px;
}

.qsb-corner-tl {
    top: -56px;
    left: 10px;
}

.qsb-corner-tr {
    top: -60px;
    right: 15px;
    transform: rotate(90deg);
}

.qsb-corner-bl {
    bottom: 8px;
    left: 15px;
    transform: rotate(-90deg);
}

.qsb-corner-br {
    bottom: 14px;
    right: 10px;
    transform: rotate(180deg);
}
/* ================================
   MARCAS EXTERIORES VISOR
================================ */

.qsb-camera-mark {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.qsb-camera-mark::before {
    content: "";
    display: block;
    background: rgba(255,255,255,.9);
    border-radius: 999px;
}

/* Marca superior */
.qsb-camera-mark-top {
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
}

.qsb-camera-mark-top::before {
    width: 1px;
    height: 10px;
}

/* Marca inferior */
.qsb-camera-mark-bottom {
    bottom: 83px;
    left: 50%;
    transform: translateX(-50%);
}

.qsb-camera-mark-bottom::before {
    width: 1px;
    height: 10px;
}

/* Marca izquierda */
.qsb-camera-mark-left {
    top: 30%;
    left: 82px;
    transform: translateY(-50%);
}

.qsb-camera-mark-left::before {
    width: 10px;
    height: 1px;
}

/* Marca derecha */
.qsb-camera-mark-right {
    top: 30%;
    right: 82px;
    transform: translateY(-50%);
}

.qsb-camera-mark-right::before {
    width: 10px;
    height: 1px;
}

/* ================================
   ICONO CÁMARA PERSONALIZADO
================================ */

.qsb-camera-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 18px rgba(255,255,255,.08),
        0 0 0 36px rgba(255,255,255,.045);
}

.qsb-camera-symbol {
    position: relative;
    display: block;
    width: 78px;
    height: 54px;
    background: #c1005a;
    border-radius: 8px;
}

.qsb-camera-symbol::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 18px;
    width: 42px;
    height: 16px;
    background: #c1005a;
    border-radius: 10px 10px 0 0;
}

.qsb-camera-symbol::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 25px;
    width: 28px;
    height: 28px;
    border: 7px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
}


/* ================================
   INPUT DE CÁMARA
================================ */

.qsb-file-input {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}


/* ================================
   ESTADO DE SUBIDA
================================ */

.qsb-upload-status {
    color: #fff;
    margin: 15px 0;
    font-size: 15px;
    text-align: center;
}


/* ================================
   GRID GALERÍA
================================ */

.qsb-galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 25px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

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

@media (min-width: 1200px) {
    .qsb-galeria-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.qsb-galeria-grid a {
    display: block;
    overflow: hidden;
    position: relative;
}

.qsb-galeria-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.qsb-galeria-empty {
    grid-column: 1 / -1;
    color: #fff;
    text-align: center;
}

.qsb-photo-item {
    position: relative;
    overflow: hidden;
}


/* ================================
   BOTÓN BORRAR FOTO
================================ */

.qsb-delete-photo {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 26px;
    font-weight: 300;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    transition: .2s;
    backdrop-filter: blur(4px);
}

.qsb-delete-photo:hover {
    background: rgba(180,0,0,.85);
    transform: scale(1.08);
}


/* ================================
   LIGHTBOX
================================ */

.qsb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    touch-action: pan-y pinch-zoom;
}

.qsb-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y pinch-zoom;
}

.qsb-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    line-height: 1;
}

.qsb-lightbox-prev,
.qsb-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    cursor: pointer;
    user-select: none;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.qsb-lightbox-prev {
    left: 15px;
}

.qsb-lightbox-next {
    right: 15px;
}

/* ================================
   BOTÓN INSTALACIÓN
================================ */

#qsb-install-app {
    position: fixed;
    right: 0px;
    bottom: 20px;
    z-index: 999999;
    border: none;
    border-radius: 14px;
    background: #c1005a;
    color: #fff;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
    display: none;
    align-items: center;
    justify-content: center;
}
.qsb-install-success {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
}
.qsb-install-success {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}
.qsb-ios-install-help {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.qsb-ios-install-help p {
    margin: 8px 0 0;
}
/* ========================================
   PANTALLA INSTALACIÓN APP
======================================== */

.qsb-install-body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top, #d4006a 0%, #7a003c 100%);
    min-height: 100vh;
    font-family: sans-serif;
    color: #fff;
}

.qsb-install-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.qsb-install-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.qsb-install-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 35px auto;
    border-radius: 50%;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 72px;

    box-shadow:
        0 0 0 18px rgba(255,255,255,.08),
        0 0 0 36px rgba(255,255,255,.04);
}

.qsb-install-card h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
}

.qsb-install-boda {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 600;
    opacity: .95;
}

.qsb-install-text {
    margin: 30px auto;
    max-width: 320px;
    line-height: 1.6;
    font-size: 16px;
    opacity: .9;
}

.qsb-install-button {
    width: 100%;
    border: none;
    border-radius: 18px;

    background: #fff;
    color: #b00048;

    height: 62px;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.qsb-install-button:hover {
    transform: translateY(-2px);
}

.qsb-install-continue {
    display: inline-block;
    margin-top: 24px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 15px;
}

.qsb-install-continue:hover {
    color: #fff;
}