/* ---------------------------   MAPA DE ASIENTOS   --------------------------- */

#plano_container,
#planoSVG {
  touch-action: manipulation; /* o 'none' si quieres control total (pero afecta scroll/pinch) */
  -webkit-tap-highlight-color: transparent;
}


#plano_container {
    position: relative;
    -webkit-box-shadow: inset 0px 0px 5px 2px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: inset 0px 0px 5px 2px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0px 0px 5px 2px rgba(0, 0, 0, 0.4);
    cursor: grab;
}

#zoomControls {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 40%;
    right: -2.5rem;
    z-index: 9;
    transition: all 0.3s ease-in-out;
}

.zoom-hint {
    position: absolute;
    font-size: 24px; /* Tamaño de la lupa */
    color: white; /* Color de la lupa */
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    padding: 10px;
    border-radius: 50%;
    display: none; /* Oculto por defecto */
    pointer-events: none; /* Evita que interfiera con los clics */
    transform: translate(-50%, -50%); /* Centrar la lupa */
    z-index: 1000; /* Asegurar que esté encima del SVG */
}

#zoomControls.show {
    right: 0.5rem;
}

#ESCENARIO,
#PISTA {
    fill: white;
}

#FILAS text {
    fill: gray;
}

#ESCENARIO text,
#PISTA text {
    fill: black;
    font-size: 2.5rem;
    letter-spacing: 0.7rem;
    font-weight: bold;
}

#backSections .back-section {
    fill: #f8f8f8;
    stroke: #e8e8e8;
    stroke-width: 0.25rem;
}

#zoomControls button {
    background-color: black;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.5) !important;
    color: white;
    transition: 0.2s ease-in-out all;
}

#zoomControls button:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}
#zoomControls button:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

#zoomControls button:hover {
    background-color: #32d769;
    color: white;
}

#plano_container #sectionsSVG {
    position: absolute;
    z-index: 1;
}

#plano_container .zone-vector {
    fill: #cccccc;
    stroke-width: 5px;
    stroke: black;
    transition: 0.2s ease-in-out all;
    cursor: pointer;
}

#plano_container .zone-vector:hover {
    fill: var(--color-primary);
}
#plano_container .zone .zone-vector:hover ~ text {
    fill: white;
}

#plano_container .zone text {
    cursor: pointer;
    font-size: 2.5rem;
    letter-spacing: 0.7rem;
}
#plano_container .zone tspan {
    letter-spacing: 0.15;
    font-size: 1.5rem;
}
#plano_container .zone .precio {
    cursor: pointer;
    font-size: 1.5rem;
}

#plano_container .zone polygon {
    cursor: pointer;
    transition: 0.2s ease-in-out all;
}

#plano_container .zone.hideSection {
    display: none;
}

.zone-seats.hideSeats {
    display: none;
}

.seat {
    r: 7; /* radio base */
    fill: #32d769;
    stroke: #23974a;
    stroke-width: 0.5px;
    cursor: pointer;
    transition: r 0.18s ease, stroke-width 0.18s ease, fill 0.18s ease,
        opacity 0.18s ease;
    vector-effect: non-scaling-stroke; /* el stroke no se deforma */
}




/* antes era :hover, ahora es una clase controlada */
.seat.is-hover:not(.sold) {
    r: 9px;
    fill: #553dee;
    stroke: #392a9f;
    stroke-width: 1px;
}


.seat.selected {
    r: 8;
    fill: #553dee;
    stroke: #392a9f;
    stroke-width: 1px;
}

.seat.sold {
    r: 5px;
    fill: #d9d9d9;
    stroke: #d9d9d9;
    stroke-width: 0;
    cursor: not-allowed;
    opacity: 0.6;
}




@media (min-width: 768px) {
    .seat {
        r: 6; /* radio base */
        fill: #32d769;
        stroke: #23974a;
        stroke-width: 1px;
        cursor: pointer;
        transition: r 0.18s ease, stroke-width 0.18s ease, fill 0.18s ease,
            opacity 0.18s ease;
        vector-effect: non-scaling-stroke; /* el stroke no se deforma */
    }
    .seat:hover:not(.sold) {
        r: 8px; /* “crece” sin moverse */
        fill: #553dee;
        stroke: #392a9f;
        stroke-width: 2px;
    }

    .seat.selected {
        r: 9px;
        fill: #553dee;
        stroke: #392a9f;
        stroke-width: 2px;
    }
}

.fila,
.reja {
    fill: silver;
}

/* ---------------------------   HUD   --------------------------- */



#seatHUD {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    min-width: 220px;
    max-width: 320px;
    /* Solo transform (suave y sin reflow) */
    transform: translate3d(0, 0, 0);
    transition: transform 80ms linear, opacity 120ms ease;
    will-change: transform, opacity;
    opacity: 1;
}




/* Oculto sin quitar del flujo de medición */
#seatHUD.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Tu layout interno (mantengo tu estilo) */
#seatHUD .logo {
    background-color: black;
    text-align: center;
    border-radius: 16px 16px 0 0;
}
#seatHUD .logo img {
    max-height: 20px;
}

#seatHUD .hdr {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 0;
}

#seatHUD .hdr .head {
    width: 100%;
    text-align: center;
    border-left: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 3px 4px;
    background: rgba(0, 0, 0, 0.03);
}

#seatHUD .hdr .head .headTitle {
    font-size: 8px;
    letter-spacing: 0.05rem;
    line-height: 1rem;
    margin: 0;
    color: #666;
    text-transform: uppercase;
}

#seatHUD .hdr .valor {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.06rem;
    line-height: 1rem;
}

#seatHUD .ftr {
    margin-top: 6px;
    background-color: #392a9f;
    color: #fff;
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    border-radius: 0 0 16px 16px;
    padding: 4px 0px;
}

/* Si alguien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    #seatHUD {
        transition: none;
    }
}


@media (max-width: 768px) {
  #seatHUD {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;        /* deja de “perseguir” */
    width: 100%;
    max-width: 100%;
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
    z-index: 9999;
    border-radius: 0;
  }

  /* por si quieres que no tape todo */
  #seatHUD .logo {
    display: none;
  }
  #seatHUD .hdr {
    display: none;
  }

  /* opcional: que el mapa no quede tapado por la tarjeta */
  body { padding-bottom: 170px; } /* ajusta a la altura real del HUD */
}





/* ---------------------------   PROGRAMA   --------------------------- */

/* ---------------------------   Asientos Seleccionados   --------------------------- */
/* Tarjeta individual (por boleto) */
.selected-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.selected-item + .selected-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.selected-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71; /* puedes cambiarlo según la zona desde JS si quieres */
    flex-shrink: 0;
}

.selected-body {
    flex: 1;
}
.selected-title {
    font-weight: 700;
    line-height: 1.1;
}
.selected-sub {
    font-size: 12px;
    color: #6c757d;
}

.selected-price {
    min-width: 120px;
    text-align: right;
    font-weight: 700;
}
.selected-actions {
    margin-left: 8px;
}
.selected-actions .remove-seat {
    border: 0;
    background: #f4f6f8;
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
}
.selected-actions .remove-seat:hover {
    background: #e9ecef;
}

/* Barra inferior (pegada al final del contenedor) */
.reserve-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.03);
}
.reserve-bar-left {
    display: flex;
    flex-direction: column;
}
.reserve-bar-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.reserve-bar-total {
    font-size: 20px;
    font-weight: 800;
}

/* ----- Lista con scroll ----- */

/* Ajustes finos por breakpoint */
@media (min-width: 992px) {
    #selected-list {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        max-height: clamp(200px, 36vh, 420px); /* desktop/tablet por defecto */
    }
}

/* ----- Barra inferior (total + CTA) ----- */
.reserve-bar {
    position: sticky; /* desktop: queda pegada al final del layout */
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.03);
}

/* Mobile: completamente fija al viewport */
@media (max-width: 576px) {
    .reserve-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
    }
    /* deja espacio para que el contenido no quede tapado por la barra */
    body {
        padding-bottom: 84px;
    } /* ajusta si tu barra es más alta */
}

/* Pequeño pulido visual del scroll */
#selected-list::-webkit-scrollbar {
    width: 8px;
}
#selected-list::-webkit-scrollbar-thumb {
    background: #e2e6ea;
    border-radius: 8px;
}


#btnReserve{
  background: var(--color-secondary);
  border: 0;
  color: #fff;
  font-size: 16px;
  padding: .5rem 2rem;             /* aire interno */
  border-radius: .5rem;
  box-shadow:
    0 8px 20px rgba(0,0,0,.08),
    0 4px 8px rgba(0,0,0,.06) !important;
  cursor: pointer;
}

#btnReserve:hover{
  background: black;
}
#btnReserve.disabled{
    background: gray
}





