/* Portal público de reclamos. Autocontenido: no depende de app.css, que es del sistema interno. */
/* Los colores, la tipografía y demás valores de diseño están en tokens.css (se carga antes que este archivo). */
* { box-sizing: border-box; }
/* Sin esto, cualquier regla con display (los botones) pisa el atributo hidden y se ven botones que no corresponden. */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--p-font); color: var(--p-text); background: var(--p-page); line-height: 1.5; font-size: 16px; }
body.embed { background: transparent; }
h1, h2 { font-family: var(--p-font); letter-spacing: -.01em; margin: 0; }
a { color: var(--p-primary-dark); }

.p-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.p-header { background: #fff; border-bottom: 3px solid var(--p-primary); }
.p-header-in { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.p-escudo { width: 68px; height: 68px; object-fit: contain; }
.p-sub { color: var(--p-text-2); font-size: 13px; }
.p-main { padding-top: 24px; padding-bottom: 8px; }
body.embed .p-main { padding-top: 4px; }
/* Pie: lo que hay que encontrar rápido (teléfonos de emergencia) en bloques, no en una oración corrida. */
.p-pie { margin-top: 32px; background: var(--p-emerg-bg); border-top: 4px solid var(--p-emerg-regla); color: #fff; padding: 16px 0 20px; }
body.embed .p-pie { margin-top: 20px; }
.p-pie-tit { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; text-align: center; }
.p-emerg { list-style: none; display: flex; margin: 10px 0 0; padding: 0; }
.p-emerg li { flex: 1; text-align: center; padding: 0; border-left: 1px solid #5A6168; }
.p-emerg li:first-child { border-left: 0; }
.p-emerg strong { display: block; font-weight: 800; font-size: 32px; line-height: 1; }
.p-emerg span { display: block; margin-top: 5px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.p-pie-nota { margin: 12px 0 0; font-size: 12.5px; text-align: center; opacity: .95; }

.p-titulo { font-size: 26px; font-weight: 800; }
.p-lead { color: var(--p-text-2); margin: 6px 0 18px; }
.p-aviso { padding: 20px; text-align: center; color: var(--p-text-2); }

/* Pasos */
.p-pasos { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: paso; }
.p-pasos li { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--p-text-2); padding-top: 34px; position: relative; counter-increment: paso; }
.p-pasos li::before { content: counter(paso); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: #E6EAEF; color: var(--p-text-2); font-size: 13px; }
.p-pasos li.activo { color: var(--p-primary-dark); }
.p-pasos li.activo::before { background: var(--p-primary); color: #fff; }
.p-pasos li.hecho::before { content: ''; background: var(--p-bg-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A5A2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* Formulario */
.p-paso h2 { font-size: 19px; margin-bottom: 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.p-op { font-weight: 400; color: var(--p-text-2); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 11px 12px; font: inherit; font-weight: 400; color: var(--p-text);
  border: 1px solid var(--p-control); border-radius: 10px; background: #fff;
}
input[type=file] { display: block; margin-top: 6px; font: inherit; font-weight: 400; max-width: 100%; }
/* Foco: anillo oscuro y grueso, visible sobre cualquier fondo (el de antes era casi invisible). */
:focus-visible { outline: 3px solid var(--p-text); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--p-primary-dark); outline-offset: 1px; border-color: var(--p-primary-dark); box-shadow: 0 0 0 4px var(--p-bg-strong); }

/* Las partes que no dibujamos también llevan el diseño: selección, cursor, controles nativos. */
::selection { background: var(--p-bg-strong); color: var(--p-text); }
input, textarea, select { caret-color: var(--p-primary-dark); accent-color: var(--p-primary); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--p-primary-dark); background: var(--p-bg-soft); border: 2px solid var(--p-control); border-radius: 8px; padding: 8px 14px; margin-right: 10px; cursor: pointer; transition: background .15s; }
input[type=file]::file-selector-button:hover { background: var(--p-bg-strong); }
.p-invalido { border-color: var(--p-danger) !important; background: var(--p-danger-bg); }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .p-grid { grid-template-columns: 1fr; } }
.p-ayuda { color: var(--p-text-2); font-size: 13.5px; margin: 4px 0 10px; }
.p-contador { text-align: right; color: var(--p-text-2); font-size: 12.5px; margin: -6px 0 10px; }
.p-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Categorías */
.p-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.p-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 2px solid var(--p-control); border-radius: 12px; padding: 16px 10px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--p-text); cursor: pointer; text-align: center; min-height: 92px; transition: border-color .15s, background .15s, color .15s; }
.p-tile svg { width: 28px; height: 28px; stroke: var(--p-text-2); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.p-tile:hover { border-color: var(--p-primary); }
.p-tile[aria-checked=true] { border-color: var(--p-primary-dark); background: var(--p-bg-soft); color: var(--p-primary-dark); }
.p-tile[aria-checked=true] svg { stroke: var(--p-primary-dark); }

/* Esqueleto de carga (en vez de un texto "Cargando…" en medio de la nada) */
.p-esq { border-radius: 12px; min-height: 92px; background: linear-gradient(90deg, #ECEFF3 25%, #F6F8F9 50%, #ECEFF3 75%); background-size: 200% 100%; animation: p-brillo 1.3s linear infinite; }
.p-esq-linea { height: 18px; border-radius: 6px; margin-bottom: 12px; }
@keyframes p-brillo { to { background-position: -200% 0; } }

/* Mapa y fotos */
.p-mapa { height: 280px; border-radius: 12px; border: 1px solid var(--p-border); margin-bottom: 10px; z-index: 0; }
.p-previas { display: flex; gap: 8px; flex-wrap: wrap; }
.p-previas img, .p-previas video { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--p-border); background: #111; }

/* Botones */
.p-nav { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.p-btn { transition: background .15s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; background: var(--p-primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.p-btn:hover { background: var(--p-primary-dark); }
.p-btn[disabled] { opacity: .6; cursor: wait; }
.p-btn-sec { background: #fff; color: var(--p-primary-dark); border: 2px solid var(--p-control); }
.p-btn-sec:hover { background: var(--p-bg-soft); }
.p-error { background: var(--p-danger-bg); color: var(--p-danger); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-weight: 600; font-size: 14.5px; }
.p-aparte { margin-top: 26px; font-size: 14.5px; }

/* Resumen, éxito, resultado */
.p-resumen { background: var(--p-bg-soft); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-top: 12px; }
.p-resumen dt { font-weight: 700; display: inline; }
.p-resumen dd { display: inline; margin: 0; }
.p-resumen div { margin: 2px 0; }
.p-exito { text-align: center; padding: 8px 0; }
.p-check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--p-ok-bg); display: grid; place-items: center; animation: p-aparece .45s cubic-bezier(.16, 1, .3, 1); }
.p-check svg { width: 34px; height: 34px; stroke: #2F6E4C; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes p-aparece { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.p-copiar { margin-top: 2px; }
.p-ticket { display: inline-block; font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif; font-weight: 800; font-size: 34px; letter-spacing: 2px; background: var(--p-bg-soft); border: 2px dashed var(--p-primary); border-radius: 12px; padding: 8px 22px; margin: 4px 0 10px; color: var(--p-primary-dark); user-select: all; }
.p-resultado { background: #fff; border: 1px solid var(--p-border); border-radius: 14px; padding: 18px; margin-top: 20px; }
.p-estado { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.p-estado.recibido { background: #EEF1F5; color: #334155; }
.p-estado.en_curso { background: #E4EEF9; color: #205081; }
.p-estado.resuelto { background: var(--p-ok-bg); color: var(--p-ok); }
.p-estado.rechazado { background: var(--p-danger-bg); color: var(--p-danger); }
.p-datos { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 14px 0; font-size: 14.5px; }
.p-datos dt { color: var(--p-text-2); font-weight: 600; }
.p-datos dd { margin: 0; }
.p-linea { list-style: none; padding: 0; margin: 14px 0 0; position: relative; }
.p-linea::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 6px; width: 1px; background: var(--p-border); }
.p-linea li { padding: 0 0 14px 16px; position: relative; font-size: 14.5px; }
.p-linea li::before { content: ''; position: absolute; left: -8px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--p-primary); border: 2px solid #fff; }
.p-linea small { color: var(--p-text-2); display: block; }
.p-respuesta { background: var(--p-bg-soft); border-radius: 10px; padding: 8px 12px; margin-top: 4px; white-space: pre-line; }

/* Recorrido del estado en la consulta: Recibido → En curso → Resuelto (sin fechas ni promesas). */
.p-recorrido { display: flex; list-style: none; padding: 0; margin: 16px 0 6px; counter-reset: r; }
.p-recorrido li { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--p-text-2); padding-top: 30px; position: relative; }
.p-recorrido li::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #C9D0DA; z-index: 1; }
.p-recorrido li::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #C9D0DA; }
.p-recorrido li:first-child::after { display: none; }
.p-recorrido li.hecho, .p-recorrido li.actual { color: var(--p-primary-dark); }
.p-recorrido li.hecho::before, .p-recorrido li.actual::before { background: var(--p-primary); border-color: var(--p-primary); }
.p-recorrido li.hecho::after, .p-recorrido li.actual::after { background: var(--p-primary); }
.p-recorrido li.actual::before { box-shadow: 0 0 0 4px var(--p-bg-strong); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Membrete en dos tonos, como el titular de lamadrid.gob.ar ("RESPIRÁ" / "NATURALEZA"). */
.p-org-pre { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; color: var(--p-text-2); }
.p-org { font-size: 20px; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-top: 2px; }
.p-org span { color: var(--p-text); }
.p-org b { color: var(--p-primary-dark); font-weight: 800; }

/* Teléfonos de emergencia: el bloque entero es el enlace (se toca para llamar). */
.p-emerg a { display: block; padding: 6px 4px; color: #fff; text-decoration: none; }
.p-emerg a:hover strong, .p-emerg a:focus-visible strong { text-decoration: underline; }

/* Solo para lectores de pantalla (anuncios de cambio de paso). */
.p-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.p-sigue { font-size: 15px; margin: 6px auto 14px; max-width: 46ch; }
.p-sub-tit { font-size: 17px; margin-top: 6px; }

/* ───────────── Pulido visual (v1.6): jerarquía, controles, ubicación, adjuntos ───────────── */
.p-titulo { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.p-lead { font-size: 1.0625rem; max-width: 52ch; margin: 8px 0 26px; }
.p-paso h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; }
.p-paso:not([hidden]) { animation: p-entra .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes p-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Pasos: riel que se va llenando de verde. */
.p-pasos { gap: 0; margin: 4px 0 30px; }
.p-pasos li { padding-top: 44px; font-size: 13px; letter-spacing: .01em; }
.p-pasos li::before { width: 34px; height: 34px; line-height: 34px; font-size: 14px; font-weight: 700; z-index: 1; }
.p-pasos li::after { content: ''; position: absolute; top: 16px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 3px; background: #DDE2E8; }
.p-pasos li:first-child::after { display: none; }
.p-pasos li.hecho::after, .p-pasos li.activo::after { background: var(--p-primary); }
.p-pasos li.activo { font-weight: 800; }
.p-pasos li.activo::before { box-shadow: 0 0 0 5px var(--p-bg-strong); }
.p-pasos li.hecho::before { background-size: 17px; }

/* Controles */
label { font-size: .875rem; margin-bottom: 18px; }
input[type=text], input[type=email], input[type=tel], select, textarea { min-height: 50px; margin-top: 6px; padding: 12px 14px; border-radius: 12px; font-size: 1rem; box-shadow: 0 1px 0 rgba(28, 36, 48, .05); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6675' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9.5 12 15.5 18 9.5'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
::placeholder { color: #6B7485; opacity: 1; }
.p-op { font-weight: 500; }
.p-ayuda { font-size: .875rem; line-height: 1.5; max-width: 62ch; }

/* Categorías: ícono en círculo, y la elegida queda inconfundible. */
.p-tiles { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.p-tile { position: relative; gap: 10px; min-height: 116px; padding: 16px 10px 14px; border-radius: 14px; font-size: .9375rem; box-shadow: 0 1px 2px rgba(28, 36, 48, .06); }
.p-tile svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--p-bg-soft); stroke: var(--p-primary-dark); stroke-width: 1.7; transition: background .15s, stroke .15s; }
.p-tile:hover { border-color: var(--p-primary); box-shadow: 0 4px 14px rgba(12, 132, 60, .13); transform: translateY(-1px); }
.p-tile[aria-checked=true] { border-color: var(--p-primary); box-shadow: 0 0 0 3px var(--p-bg-strong); background: #fff; }
.p-tile[aria-checked=true] svg { background: var(--p-primary); stroke: #fff; }
.p-tile[aria-checked=true]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--p-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5.5 12.5 10 17 18.5 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; animation: p-aparece .3s cubic-bezier(.16, 1, .3, 1); }

/* Ubicación: mapa más generoso, pin del escudo que "cae", estado en lenguaje claro. */
.p-mapa { height: min(54vh, 340px); min-height: 260px; border-radius: 16px; border: 1px solid var(--p-control); margin: 4px 0 0; }
.p-pin { background: none; border: 0; }
.p-pin svg { width: 36px; height: 44px; display: block; filter: drop-shadow(0 3px 3px rgba(28, 36, 48, .3)); transform-origin: 50% 100%; }
.p-pin svg.cae { animation: p-cae .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes p-cae { 0% { transform: translateY(-22px) scale(.9); opacity: .2; } 100% { transform: none; opacity: 1; } }
.p-ubic { margin: 12px 0 0; font-size: .875rem; line-height: 1.45; color: var(--p-text); font-weight: 600; }
.p-ubic:empty { display: none; }
.p-btn-chico { min-height: 44px; padding: 10px 18px; margin-top: 12px; font-size: .9375rem; }

/* Adjuntos: una zona clara para tocar, y cada archivo se puede quitar. */
.p-file-oculto { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.p-drop { display: flex; align-items: center; gap: 14px; margin: 6px 0 0; padding: 16px 18px; border: 2px dashed var(--p-control); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.p-drop:hover { border-color: var(--p-primary); background: var(--p-bg-soft); }
.p-file-oculto:focus-visible + .p-drop { outline: 3px solid var(--p-text); outline-offset: 2px; }
.p-drop svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--p-bg-soft); stroke: var(--p-primary-dark); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-drop strong { display: block; font-weight: 700; font-size: 1rem; color: var(--p-primary-dark); }
.p-drop small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 500; line-height: 1.4; color: var(--p-text-2); }
.p-previas { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.p-previas:empty { display: none; }
.p-prev { position: relative; }
.p-previas img, .p-previas video { width: 96px; height: 96px; display: block; border-radius: 12px; }
.p-quitar { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #fff; background: var(--p-text); cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(28, 36, 48, .35); }
.p-quitar svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; }
.p-quitar:hover { background: var(--p-danger); }

/* Botones y resumen */
.p-nav { gap: 12px; margin-top: 24px; }
.p-btn { min-height: 50px; border-radius: 12px; padding: 12px 26px; font-size: 1rem; }
.p-btn:not(.p-btn-sec):not([disabled]) { box-shadow: 0 2px 0 var(--p-primary-dark); }
.p-btn:active { transform: translateY(1px); }
.p-resumen { background: #fff; border: 1px solid var(--p-border); border-radius: 14px; padding: 4px 18px; margin-top: 20px; }
.p-resumen div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; margin: 0; padding: 11px 0; border-top: 1px solid var(--p-border); }
.p-resumen div:first-child { border-top: 0; }
.p-resumen dt { display: block; color: var(--p-text-2); font-weight: 600; }
.p-resumen dd { display: block; font-weight: 600; overflow-wrap: anywhere; }

/* Confirmación */
.p-exito { padding: 18px 0 4px; }
.p-check { width: 72px; height: 72px; background: var(--p-primary); }
.p-check svg { width: 38px; height: 38px; stroke: #fff; }
.p-ticket { font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.1rem); font-variant-numeric: tabular-nums; letter-spacing: .06em; padding: 12px 24px; margin: 6px 0 14px; background: #fff; border-width: 2px; }
.p-sigue { font-size: 1rem; line-height: 1.55; }

@media (max-width: 560px) {
  .p-nav .p-btn { flex: 1 1 auto; }
  .p-drop { padding: 14px; }
  .p-pasos li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .p-pin svg.cae, .p-paso:not([hidden]) { animation: none !important; } }

/* ───────────── Versión audaz (v1.7): el amanecer del escudo como hilo conductor ───────────── */
/* Cabecera: el sol naranja saliendo detrás de las lomas verdes (el dibujo del escudo), con un respirar lento. */
.p-cab { position: relative; isolation: isolate; padding: 2px 0 0; }
.p-amanecer { position: absolute; z-index: -1; right: -8px; top: -14px; width: min(52%, 300px); height: auto; overflow: visible; pointer-events: none; }
.p-disco { transform-box: fill-box; transform-origin: 50% 100%; animation: p-sale-sol 1.3s cubic-bezier(.16, 1, .3, 1) both .1s; }
.p-halo { transform-box: fill-box; transform-origin: 50% 50%; animation: p-respira 5.5s ease-in-out infinite alternate; }
.p-loma-2, .p-loma-1 { animation: p-sube-loma 1s cubic-bezier(.16, 1, .3, 1) both; }
.p-loma-1 { animation-delay: .12s; }
@keyframes p-sale-sol { from { transform: translateY(46px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes p-respira { from { transform: scale(.92); opacity: .75; } to { transform: scale(1.1); opacity: 1; } }
@keyframes p-sube-loma { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.p-titulo { text-transform: none; }
.p-verde { color: var(--p-primary); }
.p-cab .p-lead { max-width: 34ch; }

/* Camino de pasos: una sola línea que se llena de verde y un sol que viaja hasta el paso actual. */
.p-camino { position: relative; margin: 8px 0 30px; }
.p-camino .p-pasos { margin: 0; position: relative; z-index: 1; }
.p-camino .p-pasos li::after { display: none; }
.p-pista, .p-llena { position: absolute; z-index: 0; top: 16px; left: 12.5%; height: 3px; border-radius: 3px; }
.p-pista { width: 75%; background: #DDE2E8; }
.p-llena { width: calc(75% * var(--avance, 0)); background: var(--p-primary); transition: width .7s cubic-bezier(.16, 1, .3, 1); }
.p-sol { position: absolute; z-index: 0; top: 17.5px; left: calc(12.5% + 75% * var(--avance, 0)); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; pointer-events: none;
         background: radial-gradient(circle, rgba(228, 156, 36, .6) 0 38%, rgba(228, 156, 36, 0) 70%); transition: left .7s cubic-bezier(.16, 1, .3, 1); animation: p-respira 3.2s ease-in-out infinite alternate; }
.p-pasos li.activo::before { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--p-primary); }

/* Transición entre pasos (View Transitions): el paso nuevo entra deslizando, según la dirección. */
.p-paso:not([hidden]) { view-transition-name: paso; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(paso) { animation: p-sale-izq .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(paso) { animation: p-entra-der .42s cubic-bezier(.16, 1, .3, 1) both; }
html.p-vuelve::view-transition-old(paso) { animation-name: p-sale-der; }
html.p-vuelve::view-transition-new(paso) { animation-name: p-entra-izq; }
@keyframes p-sale-izq { to { opacity: 0; transform: translateX(-28px); } }
@keyframes p-sale-der { to { opacity: 0; transform: translateX(28px); } }
@keyframes p-entra-der { from { opacity: 0; transform: translateX(34px); } }
@keyframes p-entra-izq { from { opacity: 0; transform: translateX(-34px); } }
@supports (view-transition-name: paso) { .p-paso:not([hidden]) { animation: none; } }

/* Categorías: entran en cascada, un foco de luz verde sigue al dedo o al mouse, y al elegir se expande una onda. */
.p-tile { overflow: hidden; animation: p-sube .55s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes p-sube { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.p-tile > * { position: relative; z-index: 1; }
.p-tile::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
                  background: radial-gradient(130px circle at var(--x, 50%) var(--y, 50%), rgba(12, 132, 60, .16), transparent 72%); }
.p-tile:hover::before { opacity: 1; }
.p-tile[aria-checked=true] svg { animation: p-onda .7s cubic-bezier(.16, 1, .3, 1); }
@keyframes p-onda { 0% { box-shadow: 0 0 0 0 rgba(12, 132, 60, .5); transform: scale(.82); } 55% { transform: scale(1.1); } 100% { box-shadow: 0 0 0 22px rgba(12, 132, 60, 0); transform: none; } }

/* Mapa: se revela con un círculo que se abre, y el pin deja una onda de "radar" cuando se marca. */
.p-mapa.revela { animation: p-revela 1s cubic-bezier(.16, 1, .3, 1); }
@keyframes p-revela { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(80% at 50% 50%); } }
.p-pin { overflow: visible; }
.p-ping { position: absolute; left: 50%; bottom: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: rgba(12, 132, 60, .5); transform: scale(0); opacity: 0; }
.p-pin.cae .p-ping { animation: p-ping 1s .3s ease-out; }
.p-pin.cae svg { animation: p-cae .55s cubic-bezier(.34, 1.56, .64, 1); }
.p-pin svg.cae { animation: none; }
@keyframes p-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(5.5); opacity: 0; } }

/* Botones: brillo que cruza al pasar el mouse y flecha que invita a seguir. */
.p-btn { position: relative; overflow: hidden; }
.p-btn:not(.p-btn-sec)::before { content: ''; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
                                 background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .3) 50%, transparent 68%); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.p-btn:not(.p-btn-sec):hover::before { transform: translateX(130%); }
#siguiente::after { content: ''; width: 18px; height: 18px; background: currentColor; transition: transform .3s cubic-bezier(.16, 1, .3, 1);
                    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E") center / contain no-repeat;
                    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='13 6 19 12 13 18'/%3E%3C/svg%3E") center / contain no-repeat; }
#siguiente:hover::after { transform: translateX(4px); }

/* Confirmación: la tilde se dibuja, el código aparece letra por letra y estalla un confeti. */
.p-exito { position: relative; }
.p-confeti { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 2; }
.p-check svg polyline { stroke-dasharray: 26; stroke-dashoffset: 26; animation: p-traza .55s .3s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes p-traza { to { stroke-dashoffset: 0; } }
.p-car { display: inline-block; animation: p-letra .5s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.45s + var(--c, 0) * 55ms); }
@keyframes p-letra { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .p-tile, .p-tile[aria-checked=true] svg, .p-mapa.revela, .p-car, .p-check svg polyline, .p-disco, .p-halo, .p-loma-1, .p-loma-2, .p-sol { animation: none !important; }
  .p-check svg polyline { stroke-dashoffset: 0; }
  .p-llena, .p-sol { transition: none; }
}
@media (max-width: 560px) { .p-amanecer { width: 42%; right: -6px; top: -10px; } .p-cab .p-lead { max-width: 56%; } }

/* Botones de cámara: solo en pantallas táctiles (celular y tablet), donde abren la cámara de verdad. */
.p-camara { display: none; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
@media (pointer: coarse), (max-width: 700px) { .p-camara { display: flex; } .p-camara .p-btn { flex: 1 1 150px; } }
.p-camara svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.p-grid .p-completo { grid-column: 1 / -1; }
.p-privacidad { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--p-bg-soft); color: var(--p-text); font-size: 13px; line-height: 1.5; }

/* ---- Celular: texto mínimo 12 px y enlaces cómodos ---- */
@media (max-width: 700px) {
  .p-pie-tit, .p-emerg span, .p-org-pre { font-size: 12px; }
  .p-aparte a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- El pie de emergencias va siempre pegado al final de la pantalla y de lado a lado ---- */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.embed { min-height: 0; display: block; }
.p-main { width: 100%; box-sizing: border-box; flex: 1 0 auto; padding-bottom: 28px; }
body.embed .p-main { padding-bottom: 16px; }
.p-pie { margin-top: auto; width: 100%; box-sizing: border-box; flex: none; }
body.embed .p-pie { margin-top: auto; }

/* ---- El código del reclamo siempre en una sola línea (ningún dígito baja a otra fila) ---- */
.p-ticket { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; margin-left: auto; margin-right: auto; white-space: nowrap; font-size: min(2.1rem, 6.4vw); letter-spacing: .04em; padding: 12px clamp(10px, 3vw, 24px); text-align: center; }
.p-ticket .p-car { white-space: nowrap; }

/* ---- Cartel mientras se envía el reclamo ---- */
.p-enviando { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border: 2px solid var(--p-primary); border-radius: 14px; background: var(--p-bg-soft); width: 100%; box-sizing: border-box; }
.p-enviando > div:last-child { flex: 1; min-width: 0; }
.p-giro { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--p-primary) 25%, transparent); border-top-color: var(--p-primary); animation: p-gira .8s linear infinite; }
@keyframes p-gira { to { transform: rotate(360deg); } }
.p-env-t { display: block; font-size: 1rem; }
.p-env-s { margin-top: 4px; font-size: .875rem; color: var(--p-text-2); }
.p-barra { margin-top: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--p-primary) 18%, #fff); overflow: hidden; }
.p-barra > span { display: block; height: 100%; width: 0; background: var(--p-primary); transition: width .2s ease; }
@media (prefers-reduced-motion: reduce) { .p-giro { animation-duration: 2.4s; } }

.p-aviso-medios { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--p-bg-soft); border: 1px solid var(--p-primary); font-size: .9375rem; }

/* ---- Pie de emergencias: lo más ancho posible en el celular, con números grandes y fáciles de tocar ---- */
@media (max-width: 700px) {
  .p-pie { padding: 18px 0 22px; }
  .p-pie .p-wrap { max-width: none; padding-left: 6px; padding-right: 6px; }
  .p-pie-tit { font-size: 12.5px; padding: 0 10px; }
  .p-emerg { margin-top: 12px; }
  .p-emerg a { padding: 12px 2px; min-height: 72px; box-sizing: border-box; }
  .p-emerg strong { font-size: clamp(34px, 11vw, 46px); }
  .p-emerg span { font-size: 12.5px; letter-spacing: .6px; }
  .p-pie-nota { font-size: 13.5px; padding: 0 10px; }
}

/* ---- Encabezado y pie iguales a los de lamadrid.gob.ar (solo fuera del modo incrustado) ---- */
.p-salto { position: absolute; left: 8px; top: -60px; z-index: 50; background: #fff; color: #232d39; padding: 8px 12px; border-radius: 6px; }
.p-salto:focus { top: 8px; }
.w-cab { background: #fff; box-shadow: 0 2px 10px rgba(35,45,57,.1); }
.w-cab-in { max-width: 90rem; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w-cab-barra { background: #087f23; color: #fff; font-size: 13.5px; font-weight: 600; }
.w-cab-barra .w-cab-in { min-height: 38px; justify-content: flex-end; gap: 22px; }
.w-cab-barra a { color: #fff; text-decoration: none; }
.w-cab-barra a:hover, .w-cab-barra a:focus-visible { text-decoration: underline; }
.w-cab-main .w-cab-in { min-height: 84px; }
.w-logo { height: 58px; width: auto; display: block; }
.w-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.w-nav a { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #232d39; text-decoration: none; padding: 12px 14px; border-bottom: 4px solid transparent; }
.w-nav a:hover, .w-nav a:focus-visible { color: #087f23; border-bottom-color: #00c41d; }
.w-pie { margin-top: auto; width: 100%; flex: none; background: #343a40; border-top: 5px solid #e0901f; color: #fff; }
.w-pie-in { max-width: 72rem; margin: 0 auto; padding: 40px 16px; display: grid; gap: 28px 40px; align-items: center; grid-template-columns: auto auto 1fr; }
.w-pie-logo { width: 150px; height: auto; display: block; }
.w-pie-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; font-weight: 600; }
.w-pie-contacto a { color: #fff; text-decoration: none; }
.w-pie-contacto a:hover { color: #00c41d; }
.w-pie-emerg h2 { margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); }
.w-pie-emerg ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.w-pie-emerg a { color: #fff; text-decoration: none; display: block; text-align: center; }
.w-pie-emerg a span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.w-pie-emerg a strong { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; }
.w-pie-emerg a:hover strong, .w-pie-emerg a:focus-visible strong { color: #e0901f; }
.w-pie-emerg p { margin: 12px 0 0; text-align: center; font-size: 13px; opacity: .92; }
.w-pie-copy { margin: 0; border-top: 1px solid rgba(255,255,255,.15); padding: 18px 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,.88); }
@media (max-width: 860px) {
  .w-pie-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .w-cab-main .w-cab-in { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .w-nav { justify-content: center; }
}

/* ---- Revisión funcional/estética (2026-10-16): error junto al campo, aviso del mapa, encabezado compacto en celular ---- */
.p-error-campo { margin-top: 8px; }
.p-mapa-aviso { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); z-index: 500; max-width: 90%; padding: 10px 16px; border-radius: 999px; background: rgba(35, 45, 57, .92); color: #fff; font-size: 14px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.p-mapa-aviso.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .p-mapa-aviso { transition: none; } }
@media (max-width: 700px) {
  .w-cab-barra .w-cab-in { min-height: 32px; gap: 14px; font-size: 12.5px; }
  .w-cab-main .w-cab-in { flex-wrap: nowrap; min-height: 0; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
  .w-logo { height: 42px; max-width: 34vw; object-fit: contain; }
  .w-nav { flex-wrap: nowrap; gap: 0; justify-content: flex-end; }
  .w-nav a { font-size: 12px; padding: 12px 8px; white-space: nowrap; }
  .w-largo { display: none; }
}

/* Revisión celular/diseño (2026-10-17): zonas táctiles de 40 px en barra superior y pie */
.w-cab-barra a { display: inline-flex; align-items: center; min-height: 40px; }
.w-pie-contacto { gap: 0; }
.w-pie-contacto a { display: inline-flex; align-items: center; min-height: 40px; }
.w-pie-emerg a { padding: 6px 10px; min-height: 40px; box-sizing: border-box; }
