
/* ==========================*/
/* BOTON QR */
/* ==========================*/
.qr-widget {
    position: absolute;
    bottom: 3em;
    right:2em;
    width: 320px;              /* ← ancho único, fuente de verdad para ambos */
    font-family: 'gottamMedium', sans-serif;
    z-index: 900;
}

.qr-boton {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;                /* ← ahora hereda los 320px del padre */
    padding: 14px 0px;
    border-radius: 15px;
    background: var(--granBotonQR);
    color: #fff;
    font-size: .9em;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}
.qr-boton img{
    margin-left: .5em;
}
.qr-boton  svg{
    margin-right: 1em;
}
.qr-boton img, .info-head-cerrar img {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.info-head-cerrar span{
    font-family: 'gottamMedium', sans-serif;
    font-size: .9em;

}

.qr-boton span {
    text-align: left;
    flex: 1;
}

.qr-flecha {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.qr-panel {
    position: absolute;
    left: 0;
    right: 0;                   /* ← con left:0 + right:0 ya toma el ancho del padre, sin necesitar width */
    bottom: 100%;
    background: var(--fondpanel);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
    pointer-events: none;
    z-index: 2;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-bottom 0.35s ease, padding 0.35s ease;
}

.body-qr{
    padding: 1em 1.5em;
}

.body-qr h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--title);
    font-family: 'gottamBold', sans-serif;
}

.body-qr p {
    font-size: .8em;
    line-height: 1.5;
    margin: 0;
    color: var(--text);
}

.head-cerrar-qr{
    background: var(--granBotonQR);
    padding: 20px 10px;
}
.head-cerrar-qr{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-head-cerrar span{
    color: var(--white);
}

.qr-cerrar {
    cursor: pointer;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    background-color: transparent;
}

.qr-cerrar svg {
    transform: rotate(180deg);
}

.qr-imagen {
    margin: 15px 0px;
}

.qr-imagen img {
    margin: 0 auto;
    width: 8em;
    display: block;
}

.qr-sistemas {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: .8em;
}

.qr-chip {
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--fond2);
    color: var(--text2);
    font-size: .9em;
    border: none;
    font-weight: 700;
    font-family: 'gottamBlack', sans-serif;
}
.qr-chip.activo{
    background: var(--granBotonQR);
    color: var(--white);
    font-weight: 700;
}

.qr-imagen img{ transition: opacity .2s; }
a.qr-abrir-enlace {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    background: var(--granBotonQR);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    margin: .8em 0em 1.3em 0em;
}
a.qr-abrir-enlace:hover{
    color: #fff;

}

/* --- Estado abierto --- */
.qr-widget.abierto .qr-panel {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: -5em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    /* ya no necesita width: 320px, lo hereda del padre */
}

.qr-widget.abierto .qr-flecha {
    transform: rotate(180deg);
}

/**CARTEL**/
.bot-cartel{
    position: absolute;
    bottom: 3em;
    left:2em;
    font-family: 'gottamMedium', sans-serif;
    color: var(--fond2);
    color: var(--white);
    padding: 14px 20px;
    font-size: .9em;
    border: 1.8px solid var(--fond2);
    width: 20%;
    border-radius: 100px;
    cursor: pointer;
    font-size: .8em;
}

.bot-cartel p{
    text-align: center;
    margin: 0;
}
.vista-cartel-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 1, 25, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vista-cartel-modal.oculto {
    display: none;
}
.cont-cartel{
    position: relative;
    width: 70%;
    margin: 0 auto;
}
.cartel-descargar{
    display: flex;
    justify-content: center;
    align-items: center;

}
.cerrar-cartel {
    display: flex;
    cursor: pointer;
    color: var(--white);
    gap: 8px;
    font-family: 'gottamMedium', sans-serif;
}

.cerrar-cartel img {
    width: 40px;
    height: 40px;
}

.cerrar-cartel p {
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: left;
}

.cartel-img {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.cartel-img img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
    border-radius: 8px;
}

.cartel-descargar {
    margin-top: 20px;
}

.btn-descargar-cartel {
    display: inline-block;
    padding: 10px 24px;
    background: var(--granBotonQR);
    color: var(--white);
    text-decoration: none;
    border-radius: 100px;
    font-size: .8em;
    font-family: 'gottamMedium', sans-serif;
}

.btn-descargar-cartel:hover {
    color: var(--white);
    opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
    .qr-panel,
    .qr-flecha {
        transition: none;
    }
}

@media (max-width: 767px){
    .qr-widget{
         width: 230px;


    }
    .qr-widget.abierto .qr-panel{
        max-height: 400px;
    }
   
    .qr-boton{
        font-size: .7em;
    }
    .body-qr{
        padding: 1em .8em;
    }
    .body-qr h3{
        font-size: .8em;
    }
    .body-qr p{
        font-size: .7em;
    }
    .qr-imagen img{
        width: 5em;
    }
    .qr-chip{
        padding: 6px 14px;

    }
    a.qr-abrir-enlace{
        padding: 8px 12px;
         font-size: 12px;
    }
    .bot-cartel{
        font-size: .6em;
        right: .5em;
        padding: 14px 5px;
        width: 17%;
        border-radius: 10px;
        bottom: 5em;
    }
    
  
}