/* FERIAS — estilos propios. Clases semánticas, cortas, sin guiones. */
:root {
    --cprin: #7a3b1d;
    --cfondo: #f4f2ef;
    --clateral: #2b2420;
}

body { background: var(--cfondo); }

/* Botón con el color corporativo */
.bprin, .bprin:hover, .bprin:focus, .bprin:active {
    background: var(--cprin) !important;
    border-color: var(--cprin) !important;
    color: #fff !important;
}
.bprin:hover { filter: brightness(1.1); }
a { color: var(--cprin); }
.nav-tabs .nav-link { color: #555; }
.nav-tabs .nav-link.active { color: var(--cprin); font-weight: 600; }
.page-item.active .page-link { background: var(--cprin); border-color: var(--cprin); }

/* Panel admin */
.barrasup { background: var(--clateral); }
.lateral { width: 240px; background: var(--clateral) !important; color: #eee; min-height: 100vh; }
@media (min-width: 992px) {
    .lateral { position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
}
.lateral .offcanvas-header { color: #fff; }
.lateralint { display: flex; flex-direction: column; height: 100%; padding: 1rem .75rem; }
.marca { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; padding: .25rem .75rem 1rem; }
.lateral .nav-link { color: #cfc6bf; border-radius: .375rem; padding: .5rem .75rem; }
.lateral .nav-link i { width: 1.4rem; display: inline-block; }
.lateral .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lateral .nav-link.active { color: #fff; background: var(--cprin); }
.lateral .nav-link.disabled { color: #7d726a; }
.usuariolat { margin-top: auto; padding: 1rem .75rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.principal { padding: 1.5rem; min-width: 0; }
@media (max-width: 575px) { .principal { padding: 1rem .75rem; } }
.cifra { border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.card { border-color: #e5e0da; }

/* Área pública / acceso (mobile first) */
.cajapub { max-width: 440px; margin: 0 auto; padding: 2rem 1rem; }
.marcapub { text-align: center; font-weight: 700; font-size: 1.6rem; color: var(--cprin); margin: 1rem 0 1.5rem; }
.tarjeta { background: #fff; border-radius: .75rem; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

/* Instalador */
.cinstal { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
.pasos { display: flex; gap: .25rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.paso { flex: 1; text-align: center; padding: .5rem; background: #e9e4de; border-radius: .375rem; font-size: .85rem; color: #777; }
.paso.hecho { background: #d7ead9; color: #2c6b34; }
.paso.actual { background: var(--cprin); color: #fff; font-weight: 600; }

/* Área del participante (mobile first) */
.cpart { padding-bottom: 72px; }
.cabpart { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
    background: var(--cprin); color: #fff; padding: .5rem 1rem; padding-top: max(.5rem, env(safe-area-inset-top)); }
.cuerpopart { max-width: 720px; margin: 0 auto; padding: 1rem; }
.navpart { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; background: #fff;
    border-top: 1px solid #e5e0da; padding-bottom: env(safe-area-inset-bottom); }
.navpart a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: .45rem 0; font-size: .72rem;
    color: #777; text-decoration: none; }
.navpart a i { font-size: 1.35rem; line-height: 1.2; }
.navpart a.activo { color: var(--cprin); font-weight: 600; }
.avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #eee; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #999; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bgrande { padding: .9rem 1rem; }
.barraprin { background: var(--cprin); }
.bloqueficha { background: #fff; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.bloqueficha legend { font-size: 1rem; font-weight: 600; float: none; width: auto; margin-bottom: .75rem; }
.barraguardar { position: sticky; bottom: 76px; padding: .5rem 0; }
.cadmin .barraguardar { bottom: 0; background: var(--cfondo); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zonapeligro summary { cursor: pointer; }
.min-w-0 { min-width: 0; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
@media (max-width: 400px) { .galeria { grid-template-columns: repeat(2, 1fr); } }
.galeria .foto, .subirfoto { position: relative; aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: #ddd; }
.subirfoto { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
    border: 2px dashed #bbb; background: #fff; color: #777; text-align: center; font-size: .85rem; }
.subirfoto:hover { border-color: var(--cprin); color: var(--cprin); }
.galeria .foto img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.galeria .foto.arrastrando { opacity: .5; outline: 3px solid var(--cprin); }
.accfoto { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65)); padding: .35rem 0 .2rem; }
.accfoto button, .accfoto a { background: none; border: 0; color: #fff; font-size: 1.1rem; padding: .2rem .5rem; }
.asa { position: absolute; top: .25rem; right: .25rem; background: rgba(0, 0, 0, .5); color: #fff; border-radius: .35rem;
    padding: .25rem .2rem; cursor: grab; touch-action: none; font-size: 1.1rem; line-height: 1; }
.marcaportada { display: none; position: absolute; top: .25rem; left: .25rem; background: #f5b301; color: #fff;
    border-radius: 50%; width: 1.7rem; height: 1.7rem; align-items: center; justify-content: center; font-size: .85rem; }
.foto.esportada .marcaportada { display: flex; }
.foto.esportada .bportada { visibility: hidden; }
.filasubida { margin: .25rem 0; }
.filasubida .nombre { display: block; font-size: .8rem; color: #666; }
.filasubida .progress { height: .4rem; }

/* Admin: participantes, categorías */
.minilista { width: 44px; height: 44px; border-radius: .375rem; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; }
.minilista.vacia { background: #eee; color: #aaa; }
.colmini { width: 56px; }
.tablapar .col1 { width: 36px; }
.etiq { background: #fff; border: 1px solid #6c757d; color: #6c757d; font-weight: 500; }
.punto { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.listacheck { max-height: 260px; overflow-y: auto; border: 1px solid #e5e0da; border-radius: .375rem; padding: .5rem .75rem; }
.ordenmini { width: 4.5rem; }
.colancha { max-width: 980px; }
.colestrecha { max-width: 640px; }
.barramasiva { background: #faf8f6; }
.estrellas { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.estrellas input { display: none; }
.estrellas label { font-size: 1.4rem; color: #ccc; cursor: pointer; }
.estrellas input:checked ~ label, .estrellas label:hover, .estrellas label:hover ~ label { color: #f5b301; }

/* Proyectos */
.tarjetapro { transition: box-shadow .15s; }
.tarjetapro:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.pestanaspro { scrollbar-width: none; gap: .35rem; padding-bottom: .5rem; border-bottom: 1px solid #e5e0da; }
/* Pestañas del proyecto: cada una con su icono y su color (--pc); la activa, rellena de su color. */
.pestanaspro .nav-link { display: flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 2rem; border: 1px solid color-mix(in srgb, var(--pc) 30%, #fff); background: color-mix(in srgb, var(--pc) 7%, #fff); color: #2b2b2b; font-weight: 500; }
.pestanaspro .nav-link .bi { color: var(--pc); font-size: 1.05rem; }
.pestanaspro .nav-link:hover { background: color-mix(in srgb, var(--pc) 15%, #fff); color: #000; }
.pestanaspro .nav-link.active { background: var(--pc); border-color: var(--pc); color: #fff; font-weight: 700; box-shadow: 0 4px 10px -5px var(--pc); }
.pestanaspro .nav-link.active .bi { color: #fff; }
.cmini { width: 5.5rem; }
.tablajornadas input { min-width: 6.5rem; }
.tablacupos tr.recien td { background: #fff6d6; transition: background 1s; }
.listaanadir { display: flex; flex-wrap: wrap; gap: .35rem; }
.grupoanadir { padding: .35rem 0; border-bottom: 1px solid #f1ece6; }
.grupoanadir:last-child { border-bottom: 0; }
.listaanadir .catmadre { font-weight: 600; }
.catanadir.oculta { display: none; }
.resbusca { max-height: 320px; overflow-y: auto; border: 1px solid #e5e0da; border-radius: .375rem; }
.itembusca { display: flex; gap: .6rem; align-items: center; padding: .4rem .6rem; border-bottom: 1px solid #f0ece7; cursor: pointer; margin: 0; }
.itembusca:hover { background: #faf8f6; }
.menuacciones { min-width: 240px; }
.menuacciones form { margin: 0; }
.cajacondicion { background: #faf6f2; border-left: 4px solid var(--cprin); padding: .75rem 1rem; border-radius: .375rem; }
.tablaprevia td, .tablaprevia th { white-space: nowrap; }
.tablaprevia .filacab td { color: #999; text-decoration: line-through; }
.fichaactiva { outline: 2px solid var(--cprin); }
.selficha { max-width: 70vw; padding-left: 0; }
.textorico > :last-child { margin-bottom: 0; }
.tox-tinymce { border-radius: .375rem !important; }
.calculo { font-size: .78rem; }

/* Mapa: editor */
.editormapa { display: flex; gap: .5rem; height: calc(100vh - 230px); min-height: 480px; }
.lienzomapa { flex: 1; border-radius: .5rem; border: 1px solid #ddd; min-width: 0; }
.panelmapa { width: 360px; flex-shrink: 0; background: #fff; border: 1px solid #e5e0da; border-radius: .5rem; display: flex; flex-direction: column; overflow: hidden; }
.panelmapa .tab-content { overflow-y: auto; flex: 1; }
@media (max-width: 991px) { .editormapa { flex-direction: column; height: auto; } .lienzomapa { flex: none; height: 65vh; } .panelmapa { width: 100%; } }
.buscamapa { width: 260px; }
.listamapa { max-height: 46vh; overflow-y: auto; }
.itempuesto, .itempart { display: flex; gap: .4rem; align-items: center; padding: .25rem .35rem; border-bottom: 1px solid #f1ece6; font-size: .8rem; cursor: pointer; }
.itempuesto:hover, .itempart:hover { background: #faf6f2; }
.itempart { cursor: grab; }
.detallepuesto { background: #faf6f2; border: 1px solid #eadfd3; border-radius: .5rem; padding: .5rem; margin-bottom: .5rem; font-size: .85rem; }
.itemzona { border-bottom: 1px solid #f1ece6; padding: .35rem 0; }
.leyendamapa { background: rgba(255, 255, 255, .92); padding: .3rem .5rem; border-radius: .375rem; font-size: .75rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.leyendamapa i, .leyendaeleccion i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .25rem; vertical-align: -1px; }
.leaflet-tooltip.etiquetapuesto { background: transparent; border: 0; box-shadow: none; font-size: 10px; line-height: 1.1; text-align: center; color: #111; text-shadow: 0 0 2px #fff, 0 0 2px #fff; padding: 0; }
.leaflet-tooltip.etiquetapuesto::before { display: none; }
.etiquetapuesto span { font-size: 9px; }
.etiquetapuesto.sinnombre span, .etiquetapuesto.sinnombre br { display: none; }
.iconoacceso { background: #ffc107; border: 2px solid #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tiradorcalle { background: #fff; border: 3px solid #e8590c; border-radius: 50%; cursor: grab; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.balancegm { background: #faf7f3; border: 1px solid #eee3d6; border-radius: .5rem; padding: .6rem .8rem; }
.barragen { position: absolute; top: .6rem; left: 50%; transform: translateX(-50%); z-index: 1000; background: #fff; border-radius: .5rem; box-shadow: 0 2px 10px rgba(0,0,0,.25); padding: .4rem .6rem; font-size: .85rem; max-width: calc(100% - 7rem); text-align: center; }
.cursorherr { cursor: crosshair !important; }
.herr.active { background: var(--cprin); color: #fff; border-color: var(--cprin); }

/* Mapa: elección por el participante (móvil) */
.cmapapub, .cmapapub body { height: 100%; }
.eleccion { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.cabeleccion { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--cprin); color: #fff; padding: .5rem .75rem; padding-top: max(.5rem, env(safe-area-inset-top)); }
.mapaeleccion { flex: 1; min-height: 0; }
.leyendaeleccion { display: flex; gap: .75rem; justify-content: center; padding: .25rem; background: #fff; border-top: 1px solid #eee; }
.hojapuesto { background: #fff; padding: .75rem 1rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); min-height: 110px; }

/* Impresión del mapa */
.hojaimpr { overflow-x: auto; }
.mapaimpr { border: 1px solid #ccc; }
@media print { .noimprimir { display: none !important; } .hojaimpr { overflow: visible; } .tablaimpr { page-break-before: always; } .cimpresion .p-3 { padding: 0 !important; } }

/* Pase del evento (participante, móvil, sin conexión) */
.cpase { background: #f6f3ef; }
.pase { max-width: 560px; margin: 0 auto; min-height: 100vh; }
.pasecab { background: var(--cprin); color: #fff; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 1001; }
.paseaviso { padding: .45rem 1rem; background: #fff3cd; border-bottom: 1px solid #f0e2a8; }
.paseaviso.nuevo { background: #d1e7dd; border-color: #b7dbc9; }
.pasecuerpo { padding: .75rem; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
.pasecuerpo .tarjeta { margin-bottom: .75rem; padding: 1rem; }
.pasepuesto .codigo { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.pasemapa { height: 52vh; min-height: 280px; border-radius: .5rem; margin-bottom: .75rem; border: 1px solid #e5e0da; }
.pasejornada { display: grid; grid-template-columns: 5.2rem 1fr; gap: .1rem .5rem; padding: .4rem 0; border-bottom: 1px solid #f0ece7; font-size: .9rem; }
.pasejornada:last-child { border-bottom: 0; }
.pasejornada .dia { font-weight: 700; grid-row: span 3; }
.pasepago { display: inline-block; padding: .2rem .6rem; border-radius: 1rem; font-weight: 600; font-size: .9rem; }
.pasepago.pagado, .pasepago.gratis, .pasepago.organizador { background: #d1e7dd; color: #0f5132; }
.pasepago.pendiente { background: #fff3cd; color: #664d03; }
.pasepago.otra { background: #e2e3e5; color: #41464b; }
#gres:empty { display: none; }
.leaflet-interactive:focus { outline: none; }
#gres { white-space: pre-line; }

/* Portal del ayuntamiento (propuesta) */
.cportal { background: #f6f3ef; }
.cabportal { background: var(--cprin); color: #fff; padding: .6rem 0; }
.logoportal { height: 32px; }
.tarjetaprop { background: #fff; border: 2px solid #e8e1d8; border-radius: .75rem; overflow: hidden; height: 100%; transition: border-color .2s, box-shadow .2s; }
.tarjetaprop.votosi { border-color: #198754; box-shadow: 0 0 0 3px rgba(25,135,84,.15); }
.tarjetaprop.votono { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220,53,69,.12); opacity: .85; }
.tarjetaprop.votosi [data-voto="si"] { background: #198754; color: #fff; }
.tarjetaprop.votono [data-voto="no"] { background: #dc3545; color: #fff; }
.tarjetaprop.guardando { opacity: .6; }
.fotoprop { width: 100%; height: 170px; object-fit: cover; display: block; position: relative; background: #eee; }
button.fotoprop { cursor: zoom-in; }
button.fotoprop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nfotos { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; padding: .1rem .45rem; border-radius: 1rem; }
.mercadoprop { background: #fff; border: 1px solid #e8e1d8; border-radius: .75rem; padding: .8rem 1rem; }
.mercadoprop > summary { cursor: pointer; list-style: revert; }
.visorfotos { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.visorfotos img { max-width: 92vw; max-height: 84vh; object-fit: contain; user-select: none; }
.visorfotos button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.4rem; }
.visorfotos button:hover { background: rgba(255,255,255,.25); }
.visorcerrar { top: 1rem; right: 1rem; }
.visorant { left: 1rem; top: 50%; transform: translateY(-50%); }
.visorsig { right: 1rem; top: 50%; transform: translateY(-50%); }
.visorpie { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }
.resumenprop { position: sticky; top: 0; z-index: 1010; background: #fff; border: 1px solid #e8e1d8; border-radius: .5rem; padding: .5rem .8rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.mapaprop { height: 420px; border-radius: .5rem; border: 1px solid #ddd; }
.votoayto { font-size: .75rem; }
.listagrupos { max-height: 260px; overflow-y: auto; }

/* Plan de montaje */
.mapamontaje { height: 520px; border-radius: .5rem; border: 1px solid #ddd; }
.tablaturnos .asa { cursor: grab; }
.tablaturnos tr.arrastrando { opacity: .4; }
.turnodia { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-bottom: 1px solid #eee; background: #fff; }
.turnodia .horadia { font-weight: 700; font-size: 1.15rem; min-width: 3.6rem; }
.turnodia.llego { background: #eaf6ee; }
.turnodia.retraso { background: #fdecec; }
.turnodia.nopuede { opacity: .5; }
.turnodia .bllegada { min-width: 7.5rem; }
.turnodia.marcado { background: #e7f0ff; }
.turnodia .selturno { width: 1.5rem; height: 1.5rem; flex: none; margin: 0; }
/* Montaje por grupos: tarjetas del panel del día, barra de selección y formulario de grupo (abajo, para el móvil) */
.grupodia { overflow: hidden; }
.grupodia .cabgrupo { background: #f8f6f3; }
.grupodia.grupoactual { border: 3px solid #198754; }
.grupodia.grupoactual .cabgrupo { background: #eaf6ee; }
.grupodia.gruposig { border: 3px solid #fd7e14; }
.grupodia.gruposig .cabgrupo { background: #fff4e6; }
.grupodia.grupofuera { opacity: .6; }
.grupodia .marcagrupo { color: #555; letter-spacing: .04em; }
.barrasel, .formgrupo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 2px solid var(--cprin); padding: .75rem 1rem; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.formgrupo { z-index: 1031; max-height: 85vh; overflow-y: auto; }
.tablaturnos tr.filagrupo td { background: #f3efe9; border-top: 2px solid #ccc; }
.mapamanual { height: 120mm; border: 1px solid #ccc; }
@media print { .manualmontaje h2 { page-break-after: avoid; } }
.barraconsumo { height: .6rem; min-width: 2px; border-radius: .3rem; background: var(--cprin); }
.barraconsumo.excede { background: #dc3545; }
/* Zona protegida (peatonal, público, sillas): sin puestos ni vehículos. */
.leyendamapa i.leyprotegida { background: repeating-linear-gradient(45deg, #d63031 0 2px, rgba(214, 48, 49, .2) 2px 5px); border: 1px dashed #d63031; }
/* Zonas especiales (protegida, parking, entrada, servicios): muestra rayada en la leyenda e icono en el mapa. */
.leyendamapa i.leyespecial { background: repeating-linear-gradient(45deg, var(--c) 0 2px, transparent 2px 5px); border: 1px solid var(--c); }
.iconozona span { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-size: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.emojizona span { display: inline-block; white-space: nowrap; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 1px 5px; font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.emojizona b { font-size: 11px; font-weight: 600; }

/* ---------- Entradas: taquilla, lector y QR ---------- */
.taquilla, .lector { max-width: 30rem; margin: 0 auto; }
.taquilla .cantidad { min-width: 2.5rem; }
.taquilla .bmas, .taquilla .bmenos { width: 3.2rem; height: 3.2rem; font-size: 1.6rem; line-height: 1; padding: 0; }
.bactuacion { white-space: normal; }
.qrgrande { width: min(78vw, 300px); }
.qrmediano { width: min(60vw, 220px); }
.qrgrande svg, .qrmediano svg { width: 100%; height: auto; display: block; }
.tarjetaentrada { border-radius: 1rem; }
.camaralector { position: relative; background: #111; border-radius: .75rem; overflow: hidden; aspect-ratio: 1 / 1; }
.camaralector video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camaralector .marcolector { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .8); border-radius: 1rem; pointer-events: none; }
.camaralector .bactivar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.2rem; }
.resultadolector { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 1rem; }
.resultadolector .titulo { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.resultadolector .detalle { font-size: 1.05rem; margin-top: .5rem; }
.resultadolector.verde { background: rgba(25, 135, 84, .95); }
.resultadolector.azul { background: rgba(13, 110, 253, .95); }
.resultadolector.amarillo { background: rgba(255, 193, 7, .97); color: #222; }
.resultadolector.rojo { background: rgba(220, 53, 69, .97); }
.estadolector { display: block; width: 100%; border: 0; border-radius: .5rem; padding: .35rem .6rem; margin-bottom: .5rem; font-size: .85rem; text-align: left; color: #fff; }
.estadolector.enlinea { background: #198754; }
.estadolector.sinred { background: #6c757d; }
.estadolector.sinred.listavieja { background: #b02a37; }
.estadolector .avisolector { font-weight: 600; margin-top: .15rem; }

/* Panel: el próximo evento destacado */
.tarjsiguiente { background: var(--cprin); color: #fff; border: 0; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); transition: transform .15s; }
.tarjsiguiente:hover { color: #fff; transform: translateY(-2px); }
.cuandosig { background: #fff; color: var(--cprin); font-weight: 800; border-radius: 2rem; padding: .2rem .75rem; font-size: .9rem; }

/* Logo de la empresa en las páginas públicas y foto de fondo en la entrada */
.logopub { max-width: 240px; max-height: 110px; width: auto; height: auto; }
.confondoacceso { background-size: cover; background-position: center; background-attachment: fixed; min-height: 100vh; }
.confondoacceso .cajapub { padding-top: clamp(2rem, 8vh, 5rem); }
.confondoacceso .marcapub { background: rgba(255, 255, 255, .92); border-radius: 1rem; padding: .75rem 1rem; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
.confondoacceso .tarjeta { box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .6); }
.vistalogo { display: inline-block; padding: .5rem; border: 1px dashed #d9d2c8; border-radius: .5rem; background: repeating-conic-gradient(#f3efe9 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.vistalogo img { max-height: 80px; max-width: 220px; display: block; }
.vistafondo { height: 110px; border-radius: .5rem; background-size: cover; background-position: center; }

/* Botón de idioma (arriba en todas las pantallas; «English» / «Español») */
.bidioma { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .7rem; border: 1px solid currentColor; border-radius: 2rem;
    color: inherit; font-size: .85rem; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; flex: none; }
.bidioma:hover, .bidioma:focus { color: inherit; background: rgba(255, 255, 255, .18); }
.bidioma svg { width: 1em; height: 1em; }
.filaidioma { display: flex; justify-content: flex-end; gap: .5rem; }
.filaidioma .bidioma { background: #fff; color: var(--cprin); border-color: var(--cprin); }
.filaidioma .bidioma:hover { background: var(--cprin); color: #fff; }
.cajapub .filaidioma { margin-bottom: -.5rem; }

/* Botón «Pagar con Bizum» (color de la marca) */
.bbizum { background: #05a8b8; border-color: #05a8b8; color: #fff; }
.bbizum:hover, .bbizum:focus { background: #04929f; border-color: #04929f; color: #fff; }
