/* ====== UI Refresh 2026 (override seguro) ====== */
:root{
  --ui-bg:#eef2f7;
  --ui-card:#ffffff;
  --ui-ink:#0f172a;
  --ui-muted:#64748b;
  --ui-line:#dbe4ee;
  --ui-accent:#22c55e;
}
body{
  background: radial-gradient(900px 520px at 15% -10%, #dfe9f7 0%, var(--ui-bg) 44%, #e8edf5 100%) !important;
  padding: 12px !important;
}
.container{
  max-width: 500px !important;
  border-radius: 20px !important;
  border: 1px solid #dfe6f1;
  box-shadow: 0 22px 46px rgba(15,23,42,.12) !important;
  background: rgba(255,255,255,.94) !important;
}
#envoltorio-dinamico{
  padding: 24px 16px 20px !important;
}
#contenedor-imagen{
  height: 240px !important; /* Más altura para que el medio sea real */
}
.titulo-base{
  color:#e2e8f0 !important;
  text-shadow: 0 1px 8px rgba(15,23,42,.45);
  font-size:.72rem !important;
  letter-spacing:.08em !important;
}
.titulo-obra{
  font-size:2rem !important;
  color:#ffffff !important;
  text-shadow: 0 3px 20px rgba(0,0,0,.55) !important;
}
.selector-label,.form-label{
  font-size: .78rem !important;
  color: var(--ui-muted) !important;
  margin-bottom: .38rem !important;
  font-weight: 700 !important;
}
.selector,.form-input{
  border: 1px solid var(--ui-line) !important;
  border-radius: 10px !important;
  padding: .76rem .78rem !important;
  font-size: .9rem !important;
  background: #fbfdff !important;
}
.selector:focus,.form-input:focus{
  border-color:#86a6ff !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
}
.precios-compactos{
  gap:8px !important;
  margin-bottom: 1rem !important;
}
.precio-compacto{
  min-height: 94px !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  box-shadow:none !important;
  border-width:1px !important;
}
.precio-tipo{ font-size:.95rem !important; }
.precio-valor{ font-size:1.95rem !important; letter-spacing:0 !important; }
.badge-cantidad{
  width:34px !important;height:34px !important;top:-10px !important;right:-10px !important;
  font-size:1rem !important;
}
.status-section{ margin: 1rem 0 .85rem !important; padding:0 4px !important; }
#visorTotal{
  border:1px solid var(--ui-line) !important;
  border-radius: 10px !important;
  background:#f8fbff !important;
  padding:8px 10px !important;
}
.mapa-card{
  border: 1px solid var(--ui-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 12px 10px !important;
  margin-top: 10px !important;
}
.mapa-titulo{ font-size:.86rem !important; margin-bottom:8px !important; }
.marco-panzoom{ border-radius:8px !important; }
.mapa-ayuda{ font-size:.66rem !important; margin-top:8px !important; margin-bottom: 0 !important; }
.botones-accion{ margin-top: .9rem !important; }
.btn-accion{
  border-radius: 10px !important;
  padding: .84rem .7rem !important;
  font-size:.8rem !important;
  letter-spacing:.01em !important;
  box-shadow: none !important;
}
.btn-pagar-ahora{ background:#22c55e !important; }
.btn-pagar-ahora:not(:disabled):hover{ transform:translateY(-1px) !important; box-shadow:0 8px 18px rgba(34,197,94,.25) !important; }
.btn-reservar{ background:#3b82f6 !important; }
.btn-reservar:not(:disabled):hover{ transform:translateY(-1px) !important; box-shadow:0 8px 18px rgba(59,130,246,.25) !important; }

@media (max-width: 430px){
  .titulo-obra{ font-size: 1.78rem !important; }
  #contenedor-imagen{ height: 180px !important; } 
  .precio-compacto{ min-height: 88px !important; }
}

/* Capa 2: Ticketera */
.container{
  overflow: visible !important;
}
#envoltorio-dinamico{
  padding-bottom: 10px !important; /* Eliminamos el espacio muerto al final */
}
#visorTotal{
  position: relative;
  bottom: auto;
  z-index: 35;
}
.botones-accion{
  position: sticky;
  bottom: 10px;
  z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
/* Modal */
.modal-overlay{
  background: rgba(15,23,42,.62) !important;
  backdrop-filter: blur(7px);
}
.modal-contenido{
  border:1px solid #dbe4ee !important;
  border-radius: 16px !important;
  box-shadow: 0 30px 60px rgba(15,23,42,.25) !important;
  padding: 1rem !important;
}
#datosResumenPago{
  background:#f8fafc;
  border:1px solid #dbe4ee;
  border-radius: 10px;
  padding:10px 12px;
}
#datosResumenPago p{ margin-bottom:.35rem; font-size:.9rem; color:#0f172a; }
#datosResumenPago p strong{ color:#334155; }
#wallet_container{
  border-radius: 12px;
}
#btnEnviarComprobante{
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(37,211,102,.26);
}
#btnAccionModal{
  border-radius: 10px !important;
}

/* Capa 3: composición */
.section-card{
  background: rgba(255,255,255,.78);
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px; /* Menos espacio entre tarjetas */
}
.section-card#formReserva{
  padding: 12px 12px 4px;
}
.status-section.section-card{
  border: 1px solid #cfd9ea !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(59,130,246,.08);
  padding: 12px 12px 10px !important;
}
.status-section #cupoTexto{
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: 0 !important;
}
.barra-fondo{
  margin-top: 8px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: #e9eff8 !important;
  border: 1px solid #d7e1ef !important;
}
#barraProgreso{
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 10px rgba(16,185,129,.35) !important;
}
.block-fecha{
  width: 100%;
  padding: 4px 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin-bottom: 10px !important;
}
body:not(.sin-cabecera-evento) .block-fecha{
  margin-top: 6px !important;
}
.block-fecha .selector-label{
  display: block;
  margin: 0 0 10px 4px !important;
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
}
.block-fecha .selector{
  display: none !important;
}
.selector-fecha-fija{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  display: flex;
  align-items: center;
  font-weight: 700;
  line-height: 1.1 !important;
  color: #0f172a;
  background: #f8fbff;
  border: 1px solid #d4dfed !important;
  border-radius: 12px !important;
  cursor: default;
  box-sizing: border-box !important;
  overflow: hidden;
  box-shadow: none !important;
}
.selector-fecha-fija .selector-fecha-estado{
  margin-left: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.selector-fecha-fija .selector-fecha-estado.estado-agotado{
  color: #dc2626;
}
.selector-fecha-fija .selector-fecha-estado.estado-pausado{
  color: #f59e0b;
}
.selector-fecha-fija .selector-fecha-estado.estado-cerrado{
  color: #64748b;
}
.block-fecha.una-fecha .selector{
  display: none !important;
}
.block-fecha.una-fecha .selector-fecha-fija{
  display: flex !important;
}
.block-fecha.varias-fechas .selector-fecha-fija{
  display: none !important;
}
.selector-fecha-custom{
  position: relative;
  width: 100%;
}
.selector-fecha-trigger{
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #d4dfed;
  border-radius: 12px;
  background: #f8fbff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.selector-fecha-trigger:disabled{
  opacity: .7;
  cursor: not-allowed;
}
.selector-fecha-custom.is-open .selector-fecha-trigger{
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: #ffffff;
}
.selector-fecha-flecha{
  flex: 0 0 auto;
  font-size: .82rem;
  color: #334155;
  transition: transform .18s ease;
}
.selector-fecha-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d4dfed;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
}
.selector-fecha-custom.is-open .selector-fecha-dropdown{
  display: block;
}
.selector-fecha-custom.is-open .selector-fecha-flecha{
  transform: rotate(180deg);
}
.selector-fecha-opcion{
  width: 100%;
  display: block;
  padding: 12px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  font-size: .98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.selector-fecha-opcion:hover{
  background: #eef5ff;
}
.selector-fecha-opcion.is-selected{
  background: #2563eb;
  color: #ffffff;
}
.selector-fecha-opcion.is-disabled{
  color: #94a3b8;
}
#visorTotal{
  border:1px solid #c7d7f0 !important;
  box-shadow: 0 6px 18px rgba(59,130,246,.11);
}
#montoTotalVisor{
  letter-spacing: 0 !important;
}
#formReserva .form-grupo{
  margin-bottom: 9px !important;
}
#formReserva .form-grupo:last-child{
  margin-bottom: 4px !important;
}
.mapa-card{
  margin-top: 2px !important;
}
.mapa-titulo{
  margin-bottom: 6px !important;
}
.mapa-aviso-limite{
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.mapa-aviso-limite.is-visible{
  display: block;
}
.botones-accion{
  gap: 10px !important;
}
/* Capa 4: estructura */
#envoltorio-dinamico{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.block-fecha{
  order: 1;
}
.aviso-evento-bloqueado{
  order: 2;
}
.status-section{
  order: 3;
}
.pricing-card{
  order: 4;
}
.block-datos{
  order: 5;
}
.block-mapa{
  order: 6;
}
.block-total{
  order: 7;
}
.botones-accion{
  order: 8;
}

.aviso-evento-bloqueado{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:13px 15px;
  border:1px solid #f2cf73;
  border-radius:12px;
  background:#fff9e8;
  color:#713f12;
  line-height:1.35;
}
.aviso-evento-bloqueado[hidden]{
  display:none;
}
.aviso-evento-bloqueado strong{
  font-size:.94rem;
  font-weight:800;
}
.aviso-evento-bloqueado span{
  font-size:.84rem;
  font-weight:600;
}
.evento-solo-lectura .pricing-card,
.evento-solo-lectura .block-datos,
.evento-solo-lectura .botones-accion{
  opacity:.58;
  pointer-events:none;
}
.evento-solo-lectura .precio-agregar,
.evento-solo-lectura .cantidad-stepper{
  visibility:hidden;
}
.evento-solo-lectura #tiempoRestante{
  display:none;
}

.section-card{
  background: #ffffff !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(15,23,42,.06) !important;
}


.block-datos{
  padding: 0 !important;
}
.block-datos .form-input{
  min-height: 42px !important;
  box-sizing: border-box;
}

.block-mapa .mapa-card{
  border:none !important;
  box-shadow:none !important;
  padding: 6px 4px 0 !important; /* Quitamos todo el aire inferior */
}
.block-mapa .marco-panzoom{
  min-height: 180px; /* Reducimos el piso minimo para mapas chicos */
}
.block-mapa,
.block-mapa .mapa-card,
.block-mapa .marco-panzoom,
#lienzo-konva{
  position: relative;
  z-index: 24;
}

.block-total{
  background: linear-gradient(180deg,#f7fbff 0%,#eef5ff 100%) !important;
  border-color: #bfd2ef !important;
  position: relative;
  z-index: 8;
}

.botones-accion{
  position: relative;
  bottom: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 1;
}
.btn-accion{
  border-radius: 10px !important;
  min-height: 48px !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
}

/* Capa 5: estilo */
.container{
  background: #f8fbff !important;
  border: 1px solid #cfd9ea !important;
}
#contenedor-imagen{
  border-radius: 18px 18px 0 0 !important;
}
.titulo-obra{
  font-family: 'Montserrat', 'Inter', sans-serif !important;
  font-size: 2.05rem !important;
}
.titulo-base{
  font-size: .68rem !important;
  letter-spacing: .1em !important;
}

body.sin-cabecera-evento #envoltorio-dinamico{
  margin-top: 0 !important;
  padding-top: 18px !important;
}
body.sin-cabecera-evento .titulo-base{
  color: #475569 !important;
  text-shadow: none !important;
}
body.sin-cabecera-evento .titulo-obra{
  color: #0f172a !important;
  text-shadow: none !important;
}

/* Bloque de disponibilidad */
.status-section.section-card{
  background: linear-gradient(180deg,#ffffff 0%,#f2f7ff 100%) !important;
  border: 1px solid #bfd0ea !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 18px rgba(30,64,175,.08) !important;
  padding: 10px 10px 9px !important;
  grid-template-areas:
    "cupo cupo"
    "bar bar"
    "chip chip"
    "time time" !important;
  row-gap: 9px !important;
}
.status-section #cupoTexto{
  font-size: 1.05rem !important;
  font-weight: 780 !important;
  color: #0b1328 !important;
}
.status-section .barra-fondo{
  height: 8px !important;
  border: 0 !important;
  background: #d8e3f2 !important;
  border-radius: 999px !important;
}
#barraProgreso{
  background: linear-gradient(90deg,#10b981 0%, #22c55e 70%, #34d399 100%) !important;
  box-shadow: 0 2px 10px rgba(16,185,129,.42) !important;
}
#statusTextoDinamico{
  justify-self: center;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: #e9fff4 !important;
  border: 1px solid #9ce8c4 !important;
  color: #047857 !important;
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tiempoRestante{
  margin-top: 0 !important;
  font-size: .82rem !important;
  color: #607089 !important;
}
#tiempoValor{
  font-size: 1.48rem !important;
  color: #1e293b !important;
}

/* Inputs pro */
#formReserva .form-input{
  background: #ffffff !important;
  border: 1px solid #cdd9ea !important;
  border-radius: 10px !important;
}
#formReserva .form-input::placeholder{
  color: #8ca0b8 !important;
}

/* CTA */
.botones-accion{
  border-radius: 16px !important;
  padding: 10px !important;
  box-shadow: 0 16px 30px rgba(15,23,42,.16) !important;
}
.btn-accion{
  min-height: 44px !important;
  font-size: .86rem !important;
}
.btn-pagar-ahora{
  background: linear-gradient(135deg,#16a34a 0%,#22c55e 100%) !important;
  border: 1px solid #0f9f42 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px rgba(22,163,74,.28) !important;
}
.btn-accion:disabled{
  background: #d8e1ee !important;
  color: #8ea1b9 !important;
  border: 1px solid #c6d3e4 !important;
}

.status-gauge{
  width:82px !important;
  height:82px !important;
}
.status-gauge-inner{
  width:62px !important;
  height:62px !important;
  font-size:1.02rem !important;
}
@media (max-width: 430px){
  .status-gauge{
    width:70px !important;
    height:70px !important;
  }
  .status-gauge-inner{
    width:52px !important;
    height:52px !important;
    font-size:.9rem !important;
  }
}

/* Capa 6: compactación */
.mensaje{
  display:none;
  position: relative;
  text-align:left !important;
  padding: .78rem .92rem .78rem 2.55rem !important;
  border-radius: 12px !important;
  border:1px solid transparent !important;
  font-size:.92rem !important;
  line-height:1.4 !important;
  font-weight:700 !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.05);
}
.mensaje::before{
  content:"!";
  width:20px;
  height:20px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:900;
  flex-shrink:0;
}
.mensaje-error{
  background:#fff5f5 !important;
  color:#9b1c1c !important;
  border-color:#fecaca !important;
}
.mensaje-error::before{
  background:#ef4444;
  color:#fff;
}
.mensaje-exito{
  background:#effaf4 !important;
  color:#065f46 !important;
  border-color:#a7f3d0 !important;
}
.mensaje-exito::before{
  content:"✓";
  background:#10b981;
  color:#fff;
}
.mensaje-contenido{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mensaje-texto{
  display: block;
}
.mensaje-acciones{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mensaje-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(155,28,28,.16);
  color: inherit;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}
.mensaje-link:hover{
  background: rgba(255,255,255,.92);
}
.mensaje-detalle{
  font-size: .78rem;
  font-weight: 700;
  opacity: .8;
}

.pricing-card{
  padding: 8px !important;
}
.pricing-card .precio-compacto{
  min-height: 108px !important;
  padding: 32px 10px 14px !important;
  border-radius: 12px !important;
  overflow: visible !important;
}
.pricing-card .precio-tipo{
  font-size: .82rem !important;
  margin-bottom: 2px !important;
}
.pricing-card .precio-valor{
  font-size: 2rem !important;
  line-height: 1 !important;
}
.pricing-card .precio-compacto > div[style*="+ Agregar"]{
  font-size:.72rem !important;
  margin-top:4px !important;
  letter-spacing:.01em;
}
.pricing-card .precio-compacto .badge-cantidad{
  min-width: 50px !important;
  width: auto !important;
  height: 32px !important;
  top: 6px !important;
  right: 10px !important;
  border-radius: 999px !important;
  padding: 0 9px 0 22px !important;
  font-size: .88rem !important;
  font-weight: 900 !important;
  border: 1.5px solid #fff !important;
  line-height: 1 !important;
  gap: 3px !important;
  justify-content: flex-end !important;
  background: #0f172a !important;
  box-shadow: 0 5px 12px rgba(15,23,42,.14) !important;
}
.pricing-card .precio-compacto .badge-cantidad::before{
  width: 20px !important;
  height: 20px !important;
  left: 3px !important;
  bottom: 6px !important;
  font-size: 13px !important;
}

@media (max-width: 430px){
  .pricing-card{
    padding: 7px !important;
  }
  .pricing-card .precio-compacto{
    min-height: 108px !important;
    padding: 32px 10px 14px !important;
  }
  .pricing-card .precio-tipo{
    font-size: .78rem !important;
  }
  .pricing-card .precio-valor{
    font-size: 1.8rem !important;
  }
  .pricing-card .precio-compacto > div[style*="+ Agregar"]{
    font-size:.68rem !important;
  }
  .pricing-card .precio-compacto .badge-cantidad{
    min-width: 50px !important;
    height: 32px !important;
    top: 6px !important;
    right: 10px !important;
    padding: 0 9px 0 22px !important;
    font-size: .88rem !important;
  }
  .pricing-card .precio-compacto .badge-cantidad::before{
    width: 20px !important;
    height: 20px !important;
    left: 3px !important;
    bottom: 6px !important;
    font-size: 13px !important;
  }
}

/* Capa 7: UI final activa.
   Esta capa manda sobre pricing-card, badge-cantidad, status-v3 y modal-extension-tiempo.
   Si tocamos estos componentes, conviene editar desde acá para evitar choques con capas previas. */
.status-section.section-card.status-v3{
  display: block !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.045) !important;
  padding: 11px !important;
  margin: 0.5rem 0 1rem !important;
  row-gap: 0 !important;
  width: auto !important;
  max-width: 100% !important;
}
.status-v3-grid{
  width: 100%;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 9px;
  margin-bottom: 0;
}
.status-v3-gauge-only{
  display:flex;
  align-items:center;
  justify-content:center;
  flex: none;
  min-height: 0;
}
.status-v3-info{
  text-align: left;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-height: 0;
  padding: 0;
  min-width: 0;
}
.status-v3-value{
  font-size: .98rem;
  color: #0f172a;
  font-weight: 850;
  line-height: 1.15;
}
#tiempoRestante{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap: 3px 6px;
  margin-top: 2px !important;
  font-size: .72rem !important;
  line-height: 1.05 !important;
  color: #64748b !important;
  font-weight: 700 !important;
}
#tiempoPrefijo{
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
}
#tiempoValor{
  display:inline-block;
  font-size: 1.42rem !important;
  line-height: .95 !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}
.status-v3-card{
  width: auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.status-v3-bottom{
  text-align: center;
  padding: 0;
  width: 78px;
  display: flex;
  clear: none;
}
.status-v3-label{
  color:#64748b;
  display:block;
  font-size:.6rem;
  line-height:1.1;
  font-weight:850;
  letter-spacing:.04em;
  margin-bottom:4px;
  text-transform:uppercase;
  white-space:nowrap;
}
.status-v3-bottom #statusTextoDinamico{
  min-width: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  border-width:1.5px !important;
  font-size: .62rem !important;
  min-height: 20px;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #ecfdf5 !important;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .02em !important;
  font-weight: 900 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 430px){
  .status-v3-grid{
    grid-template-columns: 68px minmax(0, 1fr) 72px;
    gap: 8px;
    margin-bottom: 0;
  }
  .status-v3-gauge-only{
    min-width: 0;
  }
  .status-v3-value{
    font-size: .9rem;
  }
  #tiempoRestante{
    font-size: .68rem !important;
  }
  #tiempoValor{
    font-size: 1.24rem !important;
  }
  .status-v3-label{
    display:block;
    font-size:.56rem;
  }
  .status-v3-bottom{
    width: 72px;
  }
  .status-v3-bottom #statusTextoDinamico{
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 20px;
    padding: 2px 7px !important;
    font-size: .55rem !important;
  }
}

/* Cabecera limpia del formulario de reserva */
#contenedor-imagen{
  height: 210px !important;
  border-radius: 18px 18px 0 0 !important;
  background: #e5edf7 !important;
}
#img-cabecera{
  display: block;
}
#envoltorio-dinamico{
  margin-top: 0 !important;
  padding-top: 16px !important;
}
.header{
  order: 0;
  padding: 2px 2px 0 !important;
}
.titulo-principal{
  margin: 0 !important;
  text-align: left !important;
}
.titulo-obra{
  display: block;
  min-width: 0;
  color: #0f172a !important;
  font-size: 2.05rem !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}
.evento-info-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}
.evento-info-btn:hover{
  border-color: #22c55e;
  color: #047857;
  background: #f0fdf4;
}
.evento-info-btn[hidden]{
  display: none !important;
}
.modal-detalles-evento{
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 22px !important;
  text-align: left;
}
.modal-detalles-cerrar{
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal-detalles-kicker{
  margin-bottom: 7px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-detalles-titulo{
  margin: 0 38px 16px 0;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 900;
}
.modal-detalles-lista{
  display: grid;
  gap: 10px;
}
.modal-detalles-item{
  padding: 12px 13px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fafc;
}
.modal-detalles-label{
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-detalles-valor{
  margin: 0;
  color: #0f172a;
  font-size: .94rem;
  line-height: 1.38;
  font-weight: 650;
  white-space: pre-wrap;
}
#selectorEventoContainer{
  order: 1;
  margin: 0 !important;
}
.block-fecha{
  order: 2;
  margin: 0 0 2px !important;
}
.block-fecha.varias-fechas{
  margin-top: -6px !important;
  margin-bottom: 0 !important;
}
.evento-lugar-publico{
  order: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: -14px 2px 2px 12px !important;
  color: #64748b;
  font-size: .84rem;
  line-height: 1.35;
  font-weight: 650;
  text-align: left;
}
body.reserva-con-selector-fechas .evento-lugar-publico,
body.reserva-con-selector-eventos .evento-lugar-publico{
  order: 1;
  margin-top: -4px !important;
  margin-bottom: -2px !important;
}
body.reserva-con-selector-eventos #selectorEventoContainer{
  order: 2;
}
body.reserva-con-selector-eventos .block-fecha{
  order: 3;
}
.evento-lugar-publico[hidden]{
  display: none !important;
}
.aviso-evento-bloqueado{
  order: 4;
}
.status-section{
  order: 5;
}
.pricing-card{
  order: 6;
}
.block-datos{
  order: 7;
}
.block-mapa{
  order: 8;
}
.block-total{
  order: 9;
}
.botones-accion{
  order: 10;
}
.block-fecha.una-fecha .selector-label{
  display: none !important;
}
body.evento-con-mapa .status-section.section-card.status-v3{
  margin-bottom: 0 !important;
}
body.evento-con-mapa #envoltorio-dinamico{
  gap: 8px !important;
}
body.evento-con-mapa #formReserva.block-datos{
  margin-top: 0 !important;
}
.selector-fecha-fija{
  min-height: 40px !important;
  height: auto !important;
  padding: 10px 12px !important;
  font-size: .94rem !important;
  background: transparent !important;
  border-color: transparent !important;
  color: #475569 !important;
}
body:not(.sin-cabecera-evento) .block-fecha.una-fecha{
  margin-top: -2px !important;
}
body:not(.sin-cabecera-evento) .block-fecha.varias-fechas{
  margin-top: -4px !important;
}
.block-fecha.una-fecha .selector-fecha-fija{
  min-height: 30px !important;
  padding-top: 4px !important;
  padding-bottom: 6px !important;
}
.selector-fecha-trigger,
#selectorEvento{
  min-height: 44px !important;
  border-radius: 11px !important;
  background: #ffffff !important;
}
body.sin-cabecera-evento #envoltorio-dinamico{
  padding-top: 18px !important;
}

@media (max-width: 430px){
  #contenedor-imagen{
    height: 155px !important;
  }
  #envoltorio-dinamico{
    padding: 14px 12px 12px !important;
    gap: 10px !important;
  }
  .titulo-obra{
    font-size: 1.62rem !important;
  }
  .evento-info-btn{
    width: 19px;
    height: 19px;
    font-size: .68rem;
  }
  .evento-lugar-publico{
    font-size: .8rem;
    margin: -15px 2px 2px 12px !important;
  }
  body.reserva-con-selector-fechas .evento-lugar-publico,
  body.reserva-con-selector-eventos .evento-lugar-publico{
    margin-top: -4px !important;
    margin-bottom: -2px !important;
  }
  .modal-detalles-evento{
    padding: 19px !important;
  }
  .modal-detalles-titulo{
    font-size: 1.28rem;
  }
  .selector-label,
  .form-label{
    font-size: .76rem !important;
  }
}

body:not(.sin-cabecera-evento) #envoltorio-dinamico > .block-fecha.una-fecha{
  margin-top: -8px !important;
}

.block-fecha.varias-fechas .selector{
  display: block !important;
}

.block-fecha.varias-fechas .selector-fecha-custom{
  display: none !important;
}
