/* /fenia/ayuda: los puntos de ayuda (views/pages/fenia-ayuda.ejs).
 *
 * Clara, como el tablero y la página de reportar: se abre desde el celular.
 * Verde azulado = el color de la ayuda en FENIA (el violeta es de los reportes).
 */
.ay-cuerpo { margin: 0; background: #f4f8f7; color: #101828; font-family: Inter, -apple-system, 'Segoe UI', Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.ay-barra { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid #dde7e5; position: sticky; top: 0; z-index: 1000; }
.ay-volver { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 16px; font-weight: 700; color: #0b6e64; text-decoration: none; }
.ay-marca { flex: 1; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #0b6e64; }
.ay-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #0b6e64; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ay { max-width: 1180px; margin: 0 auto; padding: 18px 16px 60px; }
.ay-h { margin: 0 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.ay-sub { margin: 0; max-width: 64ch; font-size: 15.5px; line-height: 1.45; color: #475467; }

.ay-para { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 14px; background: #dcebe8; }
.ay-para button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: #0a4f48; cursor: pointer; }
.ay-para button.on { background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.16); }

.ay-aviso { margin: 16px 0 0; padding: 11px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0c987; font-size: 14.5px; line-height: 1.45; color: #6b4200; }
.ay-aviso a { color: #b91c1c; font-weight: 800; }
.ay-estado { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #dff2ee; font-size: 15px; line-height: 1.45; color: #0a4f48; }
.ay-estado:empty { display: none; }
.ay-estado a, .ay-nota a, .ay-enlace { color: #0b6e64; font-weight: 700; }

.ay-mio { margin-top: 16px; padding: 16px; border-radius: 16px; background: #fff; border: 2px solid #0b6e64; }
.ay-mio h2, .ay-tarjeta h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.ay-mio-p { padding: 12px 0; border-top: 1px solid #dde7e5; }
.ay-mio-p:first-child { border-top: 0; padding-top: 4px; }
.ay-mio-p b { font-size: 16px; }
.ay-mio-p p { margin: 4px 0 10px; font-size: 14.5px; line-height: 1.45; color: #475467; }
.ay-mio-b { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-mio-b button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #0b6e64; background: #0b6e64; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ay-mio-b button.claro { background: #fff; color: #0b6e64; }
.ay-mio-msg { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: #0a4f48; }
.ay-mio-msg:empty { display: none; }

.ay-cuerpo2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ay-mapa-caja, .ay-lista-caja { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #dde7e5; }
.ay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ay-chips:empty { display: none; }
.ay-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #d3e0dd; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #1d2939; cursor: pointer; }
.ay-chips button.on { border-color: #0b6e64; background: #dff2ee; }
.ay-mapa { height: 520px; border-radius: 12px; background: #e3ecea; z-index: 0; }
.ay-mapa--form { height: 300px; margin-top: 10px; }
.ay-leyenda { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: #475467; }
.ay-pto { display: inline-block; width: 12px; height: 12px; margin: 0 4px -1px 12px; border-radius: 50%; border: 2px solid #0b6e64; background: rgba(11,110,100,.15); }
.ay-pto:first-child { margin-left: 0; }
.ay-pto--lleno { background: #0b6e64; }
.ay-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2.5px solid #0b6e64; font-size: 17px; line-height: 1; box-shadow: 0 1px 4px rgba(16,24,40,.3); }
.ay-ico--conocida { background: #0b6e64; }
/* El pin del formulario: propio, para no depender de las imágenes de Leaflet. */
.ay-pin { display: block; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: #0b6e64; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(16,24,40,.45); transform: rotate(-45deg); box-sizing: border-box; cursor: grab; }
.ay-pin::after { content: ''; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

.ay-cerca { width: 100%; min-height: 44px; margin-bottom: 10px; border-radius: 12px; border: 1.5px solid #0b6e64; background: #fff; color: #0b6e64; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ay-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 560px; overflow-y: auto; }
.ay-p { padding: 12px; border-radius: 12px; border: 1px solid #dde7e5; background: #fff; }
.ay-p.sel { border-color: #0b6e64; box-shadow: 0 0 0 2px rgba(11,110,100,.2); }
.ay-p-cab { display: flex; gap: 10px; align-items: flex-start; }
.ay-p-cab .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #dff2ee; font-size: 20px; }
.ay-p h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.ay-p .tipo { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; color: #0b6e64; }
.ay-sello { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #f2f4f7; font-size: 12px; font-weight: 600; color: #475467; }
.ay-sello--si { background: #0b6e64; color: #fff; }
.ay-p .det { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; }
.ay-p .dato { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #344054; }
.ay-p .cuando { margin: 6px 0 0; font-size: 12.5px; color: #667085; }
.ay-p-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ay-p-b a, .ay-p-b button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #d3e0dd; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #0b6e64; text-decoration: none; cursor: pointer; }
.ay-p-b a.pri { background: #0b6e64; border-color: #0b6e64; color: #fff; }
.ay-p-b button.av { color: #667085; font-weight: 600; }
.ay-motivos { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #f6f7f9; }
.ay-motivos p { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; }
.ay-motivos button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #d0d5dd; background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.ay-vacio { margin: 0; padding: 8px 4px; font-size: 14.5px; line-height: 1.45; color: #667085; }
.ay-pop b { font-size: 14.5px; }
.ay-pop small { display: block; margin-top: 6px; color: #667085; }

.ay-tarjeta { margin-top: 16px; padding: 18px 16px; border-radius: 16px; background: #fff; border: 1px solid #dde7e5; scroll-margin-top: 76px; }
.ay-tarjeta-t { margin: 0 0 14px; max-width: 70ch; font-size: 14.5px; line-height: 1.45; color: #475467; }
.ay-barras { display: grid; gap: 10px; margin-bottom: 12px; }
.ay-barras a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 14.5px; color: inherit; text-decoration: none; }
.ay-barras a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-barras a div { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #eeecf6; overflow: hidden; }
.ay-barras a i { display: block; height: 100%; border-radius: 4px; background: #8b5cf6; }

.ay-registrar form { display: grid; gap: 16px; max-width: 720px; }
.ay-registrar form[hidden] { display: none; }
.ay-registrar fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ay-registrar legend, .ay-campo > span { display: block; margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 700; }
.ay-campo small { font-weight: 400; color: #667085; }
.ay-campo input, .ay-buscar input { width: 100%; min-height: 48px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1.5px solid #c9d6d3; background: #fff; font: inherit; font-size: 16px; color: inherit; }
.ay-campo input:focus, .ay-buscar input:focus { outline: 3px solid rgba(11,110,100,.3); border-color: #0b6e64; }
.ay-ayuda { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; }
.ay-tipos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ay-tipos-lista label { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #c9d6d3; background: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ay-tipos-lista input { position: absolute; opacity: 0; pointer-events: none; }
.ay-tipos-lista label:has(input:checked) { border-color: #0b6e64; background: #dff2ee; }
.ay-tipos-lista label:has(input:focus-visible) { outline: 3px solid rgba(11,110,100,.3); }
.ay-lugar-fila { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.ay-gps, .ay-buscar button, .ay-copia button { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #0b6e64; background: #fff; color: #0b6e64; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ay-buscar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.ay-buscar-res { display: grid; gap: 6px; margin-top: 8px; }
.ay-buscar-res:empty { display: none; }
.ay-buscar-res button { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid #d0d5dd; background: #fff; font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.ay-buscar-res small { display: block; color: #667085; }
.ay-buscar-res p { margin: 0; font-size: 14px; color: #667085; }
.ay-lugar-msg { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: #475467; }
.ay-lugar-msg.ok { font-weight: 700; color: #0a4f48; }
.ay-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ay-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ay-casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.ay-casilla input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #0b6e64; }
.ay-error { margin: 0; padding: 11px 14px; border-radius: 12px; background: #fdf1f1; border: 1px solid #f0b8b8; font-size: 14.5px; line-height: 1.45; color: #7f1d1d; }
.ay-cerrado { margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; background: #f2f4f7; font-size: 14.5px; }
.ay-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0; background: #0b6e64; color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ay-boton[disabled] { opacity: .6; cursor: default; }
.ay-boton--wsp { background: #128c4a; }
.ay-boton--claro { background: #fff; color: #0b6e64; border: 1.5px solid #0b6e64; }
.ay-listo { display: grid; gap: 12px; max-width: 720px; }
.ay-listo[hidden] { display: none; }
.ay-listo p { margin: 0; font-size: 15px; line-height: 1.45; }
.ay-listo-t { font-size: 18px !important; }
.ay-copia { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ay-copia input, .ay-copia textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #c9d6d3; background: #f6f9f8; font: inherit; font-size: 14.5px; line-height: 1.45; color: #1d2939; }
.ay-copia input { min-height: 48px; }
.ay-copia textarea { resize: vertical; }
.ay-copia--texto { align-items: start; max-width: 720px; }
.ay-nota { margin: 22px 0 0; max-width: 80ch; font-size: 13.5px; line-height: 1.5; color: #667085; }
.ay-nota + .ay-nota { margin-top: 8px; }

@media (max-width: 860px) {
    .ay-cuerpo2 { grid-template-columns: minmax(0, 1fr); }
    .ay-mapa { height: 380px; }
    .ay-mapa--form { height: 280px; }
    .ay-lista { max-height: none; }
}
@media (max-width: 520px) {
    .ay-h { font-size: 26px; }
    .ay-cta { padding: 0 12px; font-size: 14px; }
    .ay-para { display: grid; grid-template-columns: auto 1fr 1fr; width: 100%; box-sizing: border-box; }
    .ay-para button { padding: 0 8px; font-size: 14px; }
    .ay-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -12px; padding-right: 12px; scrollbar-width: none; }
    .ay-chips button { flex: none; }
    .ay-lugar-fila, .ay-dos { grid-template-columns: minmax(0, 1fr); }
    .ay-copia--texto { grid-template-columns: minmax(0, 1fr); }
    .ay-boton { width: 100%; box-sizing: border-box; }
}

/* ---------- El formulario: descripción, fotos y video ---------- */
.ay-campo textarea { width: 100%; min-height: 110px; padding: 12px; box-sizing: border-box; border-radius: 12px; border: 1.5px solid #c9d6d3; background: #fff; font: inherit; font-size: 16px; line-height: 1.4; color: inherit; resize: vertical; }
.ay-campo textarea:focus { outline: 3px solid rgba(11,110,100,.3); border-color: #0b6e64; }
.ay-pagina-t { margin: 6px 0 -4px; padding-top: 16px; border-top: 1px solid #dde7e5; font-size: 18px; line-height: 1.25; }
.ay-pagina-t small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: #475467; }
.ay-fotos-caja { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ay-foto { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e3ecea; }
.ay-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ay-foto button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(11,18,32,.72); color: #fff; font-size: 15px; cursor: pointer; }
.ay-foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(11,18,32,.78); color: #fff; font-size: 11.5px; line-height: 1.25; }
.ay-foto.no img { opacity: .35; }
.ay-foto.no span { background: #b42318; }
.ay-foto.ok span { background: #0b6e64; }
.ay-foto-mas { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; border: 2px dashed #9fbdb8; background: #f4f8f7; color: #0b6e64; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; }
.ay-foto-mas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ay-foto-mas b { display: block; font-size: 30px; line-height: 1; }
.ay-foto-mas:focus-within { outline: 3px solid rgba(11,110,100,.3); }
.ay-p .mini { flex: none; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; margin-left: auto; }
.ay-p h3 a { color: inherit; text-decoration: none; }
.ay-p h3 a:hover { text-decoration: underline; }

/* ---------- La página de un punto (views/pages/fenia-ayuda-punto.ejs) ---------- */
.pg { max-width: 1080px; margin: 0 auto; padding: 0 0 60px; }
.pg-cerro { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0c987; font-size: 15px; line-height: 1.45; color: #6b4200; }
.pg-cerro a { color: #0b6e64; font-weight: 700; }
.pg-portada { position: relative; margin: 0 0 4px; background: #05101a; overflow: hidden; }
.pg-fotos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; aspect-ratio: 4 / 3; max-height: 560px; width: 100%; }
.pg-fotos::-webkit-scrollbar { display: none; }
.pg-fotos img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.pg-dibujo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 440px; object-fit: cover; }
.pg-puntos { position: absolute; right: 16px; top: 14px; display: flex; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(5,16,26,.55); }
.pg-puntos i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pg-puntos i.on { background: #ffc46b; }
.pg-titulo { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px; background: linear-gradient(180deg, rgba(5,16,26,0), rgba(5,16,26,.9) 62%); color: #fff; pointer-events: none; }
.pg-tipo { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #ffc46b; color: #1c1204; font-size: 14px; font-weight: 800; }
.pg-titulo h1 { margin: 10px 0 6px; font-family: Georgia, 'Times New Roman', serif; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.pg-lugar { margin: 0; font-size: 15px; color: #dfeceb; }
.pg-cuerpo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding: 16px 16px 0; align-items: start; }
.pg-bloque { margin-top: 20px; }
.pg-bloque h2, .pg-comparte h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b6e64; }
.pg-detalle { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 1.3; }
.pg-desc { margin: 12px 0 0; font-size: 16.5px; line-height: 1.55; color: #344054; white-space: pre-line; }
.pg-dir { margin: 0 0 12px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.pg-dir span { font-size: 15px; font-weight: 400; color: #475467; }
.pg-mapa { height: 300px; }
.pg-llegar { margin-top: 12px; }
.pg-video { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; width: 100%; padding: 18px 20px; border: 0; border-radius: 16px; background: #05101a url('/img/fenia/ayuda-portada.jpg') center / cover; background-blend-mode: multiply; background-color: #24424f; color: #fff; font: inherit; font-size: 20px; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; min-height: 120px; box-sizing: border-box; }
.pg-video-play { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ffc46b; color: #1c1204; font-size: 24px; padding-left: 4px; box-sizing: border-box; }
.pg-video small { font-size: 13.5px; font-weight: 500; color: #dfeceb; }
.pg-lado { display: grid; gap: 14px; }
.pg-ficha { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #dde7e5; }
.pg-ficha p { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.pg-ficha p b { display: block; font-size: 13px; color: #475467; font-weight: 600; }
.pg-contacto, .pg-comparte { display: grid; gap: 8px; }
.pg-contacto .ay-boton, .pg-comparte .ay-boton { width: 100%; box-sizing: border-box; min-height: 50px; font-size: 16px; padding: 0 14px; }
.pg-aviso { margin: 0; }
.pg-avisar { font-size: 14.5px; color: #475467; }
.pg-avisar summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.pg-avisar-msg { margin: 8px 0 0; font-weight: 600; color: #0a4f48; }
.pg-avisar-msg:empty { display: none; }
.pg > .ay-nota { padding: 0 16px; }
.pg-visor { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(4,10,16,.94); }
.pg-visor[hidden] { display: none; }
.pg-visor-caja { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; }
.pg-visor-caja img { max-width: 100%; max-height: calc(100dvh - 24px); border-radius: 10px; }
.pg-visor-video { width: min(100%, 960px); aspect-ratio: 16 / 9; max-height: calc(100dvh - 80px); border-radius: 12px; overflow: hidden; background: #000; }
.pg-visor-video iframe { width: 100%; height: 100%; border: 0; }
.pg-visor-x, .pg-visor-ant, .pg-visor-sig { position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; cursor: pointer; }
.pg-visor-x { right: 12px; top: max(12px, env(safe-area-inset-top)); }
.pg-visor-ant { left: 12px; top: 50%; margin-top: -24px; }
.pg-visor-sig { right: 12px; top: 50%; margin-top: -24px; }
@media (min-width: 861px) {
    .pg-portada { margin: 16px 16px 0; border-radius: 20px; }
    .pg-titulo { padding: 90px 28px 26px; }
    .pg-titulo h1 { font-size: 46px; }
}
@media (max-width: 860px) {
    /* En el celular el título va debajo de la foto: encima, tapaba media foto. */
    .pg-titulo { position: static; padding: 14px 18px 18px; background: #05101a; }
    .pg-titulo h1 { font-size: 30px; }
    .pg-cuerpo { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .pg-lado { margin-top: 20px; }
}

/* ---------- La página de un punto, en el celular ---------- */
.pg h1, .pg-detalle, .pg-desc, .pg-dir, .pg-ficha p { overflow-wrap: anywhere; }
.pg .ay-sello { white-space: normal; line-height: 1.35; padding: 5px 10px; font-size: 13px; }
.pg-barra { display: none; }
@media (max-width: 860px) {
    .pg { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .pg-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid #dde7e5; box-shadow: 0 -4px 18px rgba(16,24,40,.10); }
    .pg-barra-b { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 6px; border-radius: 14px; border: 1.5px solid #0b6e64; background: #fff; color: #0b6e64; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer; }
    .pg-barra-b--wsp { background: #128c4a; border-color: #128c4a; color: #fff; }
    .pg-fotos { aspect-ratio: 4 / 3; max-height: 62vh; }
    .pg-mapa { height: 260px; }
    .pg-llegar { width: 100%; box-sizing: border-box; }
    .pg-detalle { font-size: 22px; }
    .ay-cuerpo .ay-barra .ay-volver { font-size: 15px; }
}
@media (max-width: 380px) {
    .ay-barra .ay-marca { display: none; }
    .ay-barra .ay-volver { flex: 1; }
    .pg-titulo h1 { font-size: 26px; }
    .pg-barra { gap: 6px; padding-left: 8px; padding-right: 8px; }
    .pg-barra-b { font-size: 12.5px; padding: 0 2px; min-width: 0; }
    .pg-detalle { font-size: 20px; }
}
/* Celular echado: la foto no puede comerse toda la pantalla. */
@media (max-height: 480px) and (orientation: landscape) {
    .pg-fotos { aspect-ratio: auto; height: 78vh; max-height: none; }
    .pg-barra { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
    .pg-barra-b { min-height: 42px; }
}

/* El video grabado con el celular: elegirlo en el formulario y verlo en la página del punto. */
.ay-video-caja[hidden] { display: none; }
.ay-video-mas { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 16px; border: 2px dashed #b9c9cc; border-radius: 14px; background: #f6fafa; color: #17323a; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.ay-video-mas[hidden] { display: none; }
.ay-video-mas input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ay-video-mas:focus-within { outline: 3px solid #ffc46b; outline-offset: 2px; }
.ay-video-mas b { margin-right: 10px; font-size: 22px; }
.ay-video-sel { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid #d5e0e2; border-radius: 14px; background: #fff; }
.ay-video-sel[hidden] { display: none; }
.ay-video-sel video { width: 96px; height: 128px; border-radius: 10px; background: #0b1820; object-fit: cover; }
.ay-video-sel b { display: block; font-size: 15px; }
.ay-video-sel p { margin: 4px 0 8px; font-size: 14px; line-height: 1.4; color: #40555c; }
.ay-video-sel p.ok { color: #116b45; font-weight: 700; }
.ay-video-sel p.no { color: #a23a12; font-weight: 600; }
.ay-video-sel button { min-height: 44px; margin: 0 8px 6px 0; padding: 8px 14px; border: 0; border-radius: 10px; background: #17323a; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ay-video-sel button.claro { background: #e8eff0; color: #17323a; }
.ay-video-sel button[hidden] { display: none; }
.ay-video-barra { height: 8px; margin: 0 0 10px; border-radius: 8px; background: #e3ecee; overflow: hidden; }
.ay-video-barra[hidden] { display: none; }
.ay-video-barra i { display: block; width: 0; height: 100%; background: #ffb347; transition: width .3s linear; }
.ay-video-enlace { display: block; margin-top: 12px; }
.ay-video-enlace span { display: block; margin-bottom: 6px; font-size: 14px; color: #40555c; }
.pg-visor-archivo { display: grid; place-items: center; width: 100%; max-height: calc(100dvh - 80px); }
.pg-visor-archivo video { max-width: 100%; max-height: calc(100dvh - 80px); border-radius: 12px; background: #000; }
.pg-visor-archivo p { max-width: 420px; padding: 20px; color: #fff; font-size: 16px; line-height: 1.5; text-align: center; }

/* El video dura más de un minuto: se elige aquí mismo qué minuto subir (29 nov 2026). */
.ay-recorte { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff6e6; border: 1px solid #f3d9a4; }
.ay-recorte[hidden] { display: none; }
.ay-recorte p { margin: 0 0 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #17323a; }
.ay-recorte input[type="range"] { display: block; width: 100%; height: 44px; margin: 0 0 6px; accent-color: #17323a; }
.ay-recorte button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px; background: #17323a; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ay-recorte--suelto { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 8px; }
.ay-recorte--suelto video { width: 72px; height: 96px; border-radius: 8px; background: #0b1820; object-fit: cover; }
