/* Instalador de la app (instalar.js) · plantilla general. Todo va prefijado con .pwa- (la barra: .media-luna).
   Los colores de cada sitio se cambian SOLO en este bloque (o repitiendo el bloque en la hoja de estilos del sitio,
   después de esta). Los valores de fábrica son los de inelecspa.cl (amarillo sobre azul). */
:root {
    --pwa-a: #f5b800;                 /* acento: botones, flecha, resaltados y la barra */
    --pwa-b: #dca400;                 /* acento más oscuro (degradado, sombra y barra al pasar el mouse) */
    --pwa-l: #ffd54a;                 /* acento más claro (degradado y texto de la barra «Abrir la app») */
    --pwa-a-rgb: 245, 184, 0;         /* el mismo acento en números, para las transparencias */
    --pwa-b-rgb: 220, 164, 0;         /* el acento oscuro en números */
    --pwa-sobre-a: #0a2453;           /* color del texto que va ENCIMA del acento (oscuro si el acento es claro; blanco si es oscuro) */
    --pwa-ink: #0a2453;               /* color principal: textos de la hoja y fondo de la barra «Abrir la app» */
    --pwa-ink-2: #163e7d;             /* el principal un poco más claro (mini pantalla del navegador) */
    --pwa-ink-rgb: 10, 36, 83;        /* el principal en números */
    --pwa-icono: #0a2453;             /* fondo detrás del ícono de la app (se ve si el ícono es transparente) */
    --pwa-suave: #fff3c4;             /* acento muy claro: fila resaltada y etiqueta «Paso 1 de 4» */
    --pwa-suave-2: #ffe58a;           /* parpadeo de la fila resaltada */
    --pwa-paso: #fff7d6;              /* fondo del paso activo */
    --pwa-fuente: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;    /* letra de la hoja */
    --pwa-fuente-barra: var(--pwa-fuente);                                    /* letra de la barra (la de los títulos del sitio) */
    --pwa-z-barra: 900;               /* capa de la barra: encima de los botones flotantes, debajo de menús y ventanas */
    --pwa-z: 2147483000;              /* capa de la hoja (la flecha va 1 más arriba, el aviso corto 2, el aviso único 1000 más abajo) */
}
/* Lo que se esconde dentro de la app ya instalada (botones propios del sitio y lo que indique «ocultar»). */
.pwa-oculto { display: none !important; }

/* ---------- Overlay + hoja ---------- */
.pwa-overlay {
    position: fixed; inset: 0; z-index: var(--pwa-z);
    background: rgba(4, 12, 32, .62);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.pwa-overlay.pwa-show { opacity: 1; visibility: visible; }
@media (min-width: 640px) { .pwa-overlay { align-items: center; } }

.pwa-sheet {
    position: relative; width: 100%; max-width: 460px; background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 26px 24px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 44px rgba(0, 0, 0, .32);
    text-align: center; font-family: var(--pwa-fuente); color: var(--pwa-ink);
    transform: translateY(60px); transition: transform .38s cubic-bezier(.2, .9, .3, 1);
}
.pwa-overlay.pwa-show .pwa-sheet { transform: translateY(0); }
@media (min-width: 640px) {
    .pwa-sheet { max-width: 400px; border-radius: 24px; transform: translateY(24px) scale(.97); padding: 30px 28px; }
    .pwa-overlay.pwa-show .pwa-sheet { transform: translateY(0) scale(1); }
}
.pwa-grip { width: 44px; height: 5px; border-radius: 5px; background: #e6e9f5; margin: 0 auto 18px; }
@media (min-width: 640px) { .pwa-grip { display: none; } }

.pwa-appicon { width: 88px; height: 88px; box-sizing: border-box; border-radius: 22px; background: var(--pwa-icono); display: block; margin: 0 auto 10px; box-shadow: 0 10px 24px rgba(var(--pwa-ink-rgb), .35); }
.pwa-logo { display: block; height: 44px; width: auto; margin: 0 auto 14px; }
.pwa-sheet h3 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; color: var(--pwa-ink); font-weight: 900; }
.pwa-sheet .pwa-sub { font-size: 14.5px; color: #4a5578; line-height: 1.55; margin: 0 auto 20px; max-width: 340px; }

/* Botón principal con el color de acento de la marca */
.pwa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
    padding: 15px 18px; border: none; border-radius: 15px; cursor: pointer;
    background: linear-gradient(145deg, var(--pwa-l), var(--pwa-a) 45%, var(--pwa-b));
    color: var(--pwa-sobre-a); font-weight: 900; font-size: 16px; font-family: var(--pwa-fuente);
    box-shadow: 0 12px 26px -8px rgba(var(--pwa-b-rgb), .65);
    transition: transform .15s ease, box-shadow .2s ease;
}
.pwa-btn:hover { box-shadow: 0 16px 30px -8px rgba(var(--pwa-b-rgb), .8); }
.pwa-btn:active { transform: translateY(1px); }
.pwa-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.pwa-dismiss { display: inline-block; margin-top: 14px; background: none; border: none; cursor: pointer; color: #7d86a8; font-size: 14px; font-weight: 700; font-family: var(--pwa-fuente); padding: 6px 10px; }
.pwa-dismiss:hover { color: #4a5578; text-decoration: underline; }

.pwa-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer; background: #eef1fb; color: var(--pwa-ink); font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; }
.pwa-x:hover { background: #e2e7f7; }

/* ---------- Guía paso a paso (iPhone, iPad, otras apps, Mac) ---------- */
.pwa-sheet.pwa-guia { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; padding-top: 18px; }
.pwa-sheet.pwa-guia .pwa-grip { margin-bottom: 12px; }
.pwa-sheet.pwa-guia .pwa-appicon { width: 58px; height: 58px; border-radius: 15px; margin-bottom: 8px; }
.pwa-sheet.pwa-guia .pwa-logo { display: none; }
.pwa-sheet.pwa-guia h3 { font-size: 20px; }
.pwa-sheet.pwa-guia .pwa-sub { margin-bottom: 12px; font-size: 14px; }
/* Teléfonos de pantalla baja (iPhone SE y similares): sin el ícono grande, para que entren los pasos. */
@media (max-height: 720px) { .pwa-sheet.pwa-guia .pwa-appicon { display: none; } }
/* Con la flecha abajo queda espacio libre para ella; con la flecha arriba, la hoja no llega hasta arriba. */
@media (max-width: 639px) {
    /* La hoja termina encima de la flecha (sobre el fondo oscuro) y, si no cabe, se desplaza por dentro. */
    .pwa-overlay.pwa-ov-abajo { padding: 0 8px calc(98px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
    .pwa-overlay.pwa-ov-abajo .pwa-sheet { border-radius: 24px; padding-bottom: 18px; max-height: calc(100vh - 106px); max-height: calc(100dvh - 106px - env(safe-area-inset-bottom, 0px)); }
    .pwa-overlay .pwa-sheet.pwa-flecha-arriba { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}

.pwa-steps { text-align: left; margin: 4px 0; }
.pwa-step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; transition: background-color .3s ease, box-shadow .3s ease; }
.pwa-step + .pwa-step { margin-top: 2px; }
.pwa-step[role="button"] { cursor: pointer; }
.pwa-step.on { background: var(--pwa-paso); box-shadow: inset 0 0 0 1.5px rgba(var(--pwa-a-rgb), .75); }
.pwa-step:focus-visible { outline: 2px solid var(--pwa-ink); outline-offset: 1px; }
.pwa-step .pwa-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #eef1fb; color: var(--pwa-ink); font-weight: 900; font-size: 13.5px; display: grid; place-items: center; transition: background .3s ease, box-shadow .3s ease; }
.pwa-step.on .pwa-n { color: var(--pwa-sobre-a); background: linear-gradient(145deg, var(--pwa-a), var(--pwa-b)); box-shadow: 0 4px 10px rgba(var(--pwa-b-rgb), .4); }
/* Sin animación (Mac, otros navegadores): todos los números con el color de acento. Va aparte: un navegador sin :has() descartaría la regla entera. */
.pwa-steps:not(:has(.on)) .pwa-n { color: var(--pwa-sobre-a); background: linear-gradient(145deg, var(--pwa-a), var(--pwa-b)); box-shadow: 0 4px 10px rgba(var(--pwa-b-rgb), .4); }
.pwa-step .pwa-tx { font-size: 14.2px; color: var(--pwa-ink); line-height: 1.45; padding-top: 2px; }
.pwa-step .pwa-tx b { color: var(--pwa-ink); font-weight: 900; }
.pwa-ic { display: inline-flex; vertical-align: -5px; margin: 0 2px; width: 20px; height: 20px; color: #0a84ff; }
.pwa-ic svg { width: 100%; height: 100%; }
.pwa-ic.pwa-ic-plus { color: var(--pwa-ink); }
.pwa-ic.pwa-ic-dots { width: 22px; height: 22px; border-radius: 50%; background: #eef1fb; color: #1c1c1e; padding: 3px; box-sizing: border-box; vertical-align: -6px; }
.pwa-tip { display: flex; gap: 9px; align-items: flex-start; text-align: left; margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: #f3f6fb; color: #4a5578; font-size: 13px; line-height: 1.45; }
.pwa-tip > svg { width: 18px; height: 18px; flex: 0 0 auto; color: #1565c0; margin-top: 1px; }
.pwa-tip b { color: var(--pwa-ink); }
.pwa-btn.pwa-btn-sec { margin-top: 12px; background: #fff; color: var(--pwa-ink); box-shadow: inset 0 0 0 2px var(--pwa-a); padding: 12px 16px; font-size: 15px; }

/* ---------- Mini animación del navegador (cuadros que cambian con cada paso) ---------- */
.pwa-demo-cab { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; }
.pwa-demo-cab .d-paso { padding: 3px 10px; border-radius: 999px; background: var(--pwa-suave); color: var(--pwa-ink); font: 900 11.5px var(--pwa-fuente); letter-spacing: .3px; box-shadow: inset 0 0 0 1.5px rgba(var(--pwa-a-rgb), .8); }
.pwa-demo-cab .d-puntos { display: flex; gap: 5px; }
.pwa-demo-cab .d-puntos i { width: 7px; height: 7px; border-radius: 4px; background: #d5dbea; transition: width .3s ease, background .3s ease; }
.pwa-demo-cab .d-puntos i.on { width: 20px; background: var(--pwa-a); }
.pwa-demo { position: relative; height: 156px; margin: 0 0 10px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--pwa-ink-2), var(--pwa-ink) 70%); box-shadow: inset 0 0 0 1px rgba(var(--pwa-ink-rgb), .15); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #1c1c1e; text-align: left; }
.pwa-demo .d-f { position: absolute; inset: 0; opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .45s ease; }
.pwa-demo .d-f.on { opacity: 1; transform: none; }
.pwa-demo svg { width: 18px; height: 18px; flex: 0 0 auto; }
.d-pag { position: absolute; left: 16px; right: 16px; top: 18px; }
.d-pag.d-pag-baja { top: 62px; }
.d-pag i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-bottom: 8px; }
.d-pag i:nth-child(1) { width: 62%; background: rgba(var(--pwa-a-rgb), .55); }
.d-pag i:nth-child(2) { width: 88%; }
.d-pag i:nth-child(3) { width: 74%; }
.d-pag i:nth-child(4) { width: 52%; }
/* Safari de iOS 26: botón atrás, la dirección y «⋯», flotando abajo */
.d-bar26 { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 40px; display: flex; align-items: center; gap: 8px; }
.d-bt { position: relative; width: 38px; height: 38px; border-radius: 50%; background: rgba(250, 250, 252, .94); display: grid; place-items: center; color: #1c1c1e; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.d-url { flex: 1; height: 38px; border-radius: 19px; background: rgba(250, 250, 252, .94); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600; color: #1c1c1e; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.d-url svg { width: 11px; height: 11px; }
/* Safari de iOS 18: la barra de herramientas clásica */
.d-bar18 { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: rgba(246, 246, 248, .97); display: flex; justify-content: space-around; align-items: center; color: #0a84ff; border-top: 1px solid rgba(0, 0, 0, .1); }
.d-bar18 > span { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.d-bar18 svg { width: 21px; height: 21px; }
.d-dim { opacity: .35; }
/* Barra de arriba (iPad, Chrome, otras apps) */
.d-top { position: absolute; left: 0; right: 0; top: 0; height: 50px; background: rgba(246, 246, 248, .97); display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.d-top .d-url { height: 32px; background: #e4e6ec; box-shadow: none; }
.d-top .d-bt { width: 32px; height: 32px; background: transparent; box-shadow: none; color: #0a84ff; }
.d-dos { display: flex; gap: 6px; color: #0a84ff; }
.d-hit::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 3px solid var(--pwa-a); animation: dPulso 1.2s ease-out infinite; }
.d-bar18 .d-hit { background: rgba(var(--pwa-a-rgb), .22); }
@keyframes dPulso { 0% { opacity: 1; transform: scale(.88); } 100% { opacity: 0; transform: scale(1.3); } }
/* Menú, hoja de compartir y diálogo de iOS */
.d-menu { position: absolute; width: 200px; background: rgba(250, 250, 252, .98); border-radius: 14px; padding: 5px; box-shadow: 0 12px 30px rgba(0, 0, 0, .38); font-size: 13px; font-weight: 600; }
.d-menu-der { right: 10px; bottom: 56px; }
.d-menu-arriba { right: 8px; top: 54px; }
.d-it { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #1c1c1e; }
.d-it svg { width: 17px; height: 17px; color: #0a84ff; }
.d-hit-row { background: var(--pwa-suave); box-shadow: inset 0 0 0 2px var(--pwa-a); animation: dFila 1.2s ease-in-out infinite; }
@keyframes dFila { 50% { background: var(--pwa-suave-2); } }
.d-hoja { position: absolute; left: 8px; right: 8px; top: 24px; bottom: -6px; background: #f2f2f7; border-radius: 16px 16px 0 0; padding: 8px 8px 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, .35); }
.d-hoja-cab { display: flex; align-items: center; gap: 9px; padding: 0 4px 7px; margin-bottom: 4px; border-bottom: 1px solid #dcdce2; }
.d-hoja-cab img, .d-dlg-app img, .d-sinicono { width: 28px; height: 28px; border-radius: 7px; background: var(--pwa-icono); flex: 0 0 auto; }
.d-hoja-cab b, .d-dlg-app b { display: block; font-size: 12.5px; }
.d-hoja-cab small, .d-dlg-app small { display: block; font-size: 11px; color: #6e6e73; }
.d-hoja .d-it { padding: 6px 9px; }
.d-hoja .d-it + .d-it { margin-top: 3px; }
.d-dlg { position: absolute; left: 8px; right: 8px; top: 16px; bottom: -6px; background: #f2f2f7; border-radius: 16px 16px 0 0; padding: 8px 10px 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, .35); font-size: 12.5px; }
.d-dlg-cab { display: flex; justify-content: space-between; align-items: center; }
.d-dlg-cab b { font-size: 12.5px; }
.d-azul { color: #0a84ff; font-weight: 600; }
.d-hit-txt { position: relative; padding: 2px 8px; border-radius: 8px; font-weight: 800; background: var(--pwa-suave); box-shadow: inset 0 0 0 2px var(--pwa-a); }
.d-dlg-app { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 6px 9px; margin-top: 7px; }
.d-dlg-sw { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 6px 9px; margin-top: 6px; font-weight: 600; }
.d-sw { position: relative; width: 36px; height: 21px; border-radius: 11px; background: #34c759; }
.d-sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.d-luna { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; border-radius: 0; background: var(--pwa-a); color: var(--pwa-sobre-a); display: flex; align-items: center; justify-content: center; gap: 7px; font: 900 12.5px var(--pwa-fuente); }

/* ---------- Flecha animada hacia el botón que hay que tocar ---------- */
.pwa-arrow { position: fixed; z-index: calc(var(--pwa-z) + 1); display: none; flex-direction: column; align-items: center; pointer-events: none; }
.pwa-arrow.pwa-show { display: flex; }
.pwa-arrow .pwa-arrow-lbl { background: var(--pwa-a); color: var(--pwa-sobre-a); font-family: var(--pwa-fuente); font-size: 12.5px; font-weight: 900; padding: 6px 12px; border-radius: 10px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); display: flex; align-items: center; gap: 6px; }
.pwa-arrow .pwa-arrow-lbl svg { width: 16px; height: 16px; }
.pwa-arrow .pwa-chev { width: 40px; height: 40px; color: var(--pwa-a); filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .55)); }
/* Abajo al centro: el botón Compartir de Safari en iOS 18 o anterior */
.pwa-arrow.pwa-a-centro { left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
.pwa-arrow.pwa-a-centro .pwa-arrow-lbl { margin-bottom: 7px; }
.pwa-arrow.pwa-a-centro.pwa-show { animation: pwaRebotaCentro 1.15s ease-in-out infinite; }
/* Abajo a la derecha: el botón «⋯» de Safari en iOS 26 */
.pwa-arrow.pwa-a-der { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); align-items: flex-end; }
.pwa-arrow.pwa-a-der .pwa-arrow-lbl { margin-bottom: 7px; }
.pwa-arrow.pwa-a-der.pwa-show { animation: pwaRebotaAbajo 1.15s ease-in-out infinite; }
/* Arriba a la derecha: Compartir en iPad y Chrome, o el menú de otra app */
.pwa-arrow.pwa-a-arriba { right: 8px; top: calc(6px + env(safe-area-inset-top, 0px)); flex-direction: column-reverse; align-items: flex-end; }
.pwa-arrow.pwa-a-arriba .pwa-chev { transform: rotate(180deg); }
.pwa-arrow.pwa-a-arriba .pwa-arrow-lbl { margin-top: 7px; }
.pwa-arrow.pwa-a-arriba.pwa-show { animation: pwaRebotaArriba 1.15s ease-in-out infinite; }
@keyframes pwaRebotaCentro { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(12px); } }
@keyframes pwaRebotaAbajo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes pwaRebotaArriba { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
/* En pantalla ancha (iPad o computador) la hoja va al centro: la flecha igual apunta a la barra del navegador. */
@media (prefers-reduced-motion: reduce) {
    .pwa-arrow.pwa-show, .d-hit::after, .d-hit-row { animation: none !important; }
    .pwa-demo .d-f { transition: none; }
}

/* ---------- Aviso de éxito ---------- */
.pwa-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(24px); z-index: calc(var(--pwa-z) + 2);
    background: var(--pwa-ink); color: #fff; padding: 14px 20px; border-radius: 14px;
    font-family: var(--pwa-fuente); font-size: 14px; line-height: 1.45; max-width: 90vw; text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4); display: flex; align-items: center; gap: 10px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.pwa-toast.pwa-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.pwa-toast svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--pwa-a); }

/* ---------- Dentro de otra app: botón «Abrir en Safari» / «Abrir en Chrome» ---------- */
a.pwa-btn { text-decoration: none; box-sizing: border-box; }
.pwa-nota { font-size: 13px; color: #4a5578; line-height: 1.45; margin: 12px auto 0; max-width: 320px; }
.pwa-pie { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.pwa-pie .pwa-dismiss { margin-top: 10px; }
.pwa-dismiss.pwa-dismiss-fuerte { color: var(--pwa-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pie de la guía: «Ya la instalé» y «Cerrar» ---------- */
.pwa-fin { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.pwa-fin .pwa-dismiss { margin-top: 0; }
.pwa-hecho { display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; background: #e6f6ec; color: #126a36; font: 900 14px var(--pwa-fuente); padding: 9px 16px; border-radius: 999px; }
.pwa-hecho:hover { background: #d6f0df; }
.pwa-hecho svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- La barra de abajo cuando la app ya está instalada: «Abrir la app …» ---------- */
.media-luna.luna-instalada { background: var(--pwa-ink); color: var(--pwa-l); box-shadow: inset 0 2px 0 rgba(var(--pwa-a-rgb), .7), 0 -4px 16px rgba(var(--pwa-ink-rgb), .25); }
.media-luna.luna-instalada:hover { background: var(--pwa-ink-2); }
.media-luna.luna-instalada::after { display: none; }

/* ---------- Aviso único en iPhone: tarjeta discreta que baja desde arriba ---------- */
.pwa-aviso {
    position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: calc(var(--pwa-z) - 1000);
    max-width: 440px; margin: 0 auto; box-sizing: border-box;
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 18px;
    background: rgba(255, 255, 255, .97); color: var(--pwa-ink); text-align: left; cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 14px 38px rgba(4, 12, 32, .34), inset 0 0 0 1px rgba(var(--pwa-ink-rgb), .08);
    font-family: var(--pwa-fuente);
    opacity: 0; visibility: hidden; transform: translateY(-130%);
    transition: transform .5s cubic-bezier(.2, .9, .3, 1), opacity .35s ease, visibility .5s ease;
}
.pwa-aviso.pwa-show { opacity: 1; visibility: visible; transform: translateY(0); }
.pwa-aviso img { width: 42px; height: 42px; border-radius: 11px; background: var(--pwa-icono); flex: 0 0 auto; }
.pwa-aviso-tx { flex: 1; min-width: 0; }
.pwa-aviso-tx b { display: block; font-size: 13.5px; line-height: 1.25; font-weight: 900; }
.pwa-aviso-tx small { display: block; font-size: 12px; line-height: 1.3; color: #4a5578; margin-top: 2px; }
.pwa-aviso-ver { flex: 0 0 auto; border: none; cursor: pointer; padding: 9px 13px; border-radius: 999px; background: linear-gradient(145deg, var(--pwa-l), var(--pwa-a) 55%, var(--pwa-b)); color: var(--pwa-sobre-a); font: 900 13px var(--pwa-fuente); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(var(--pwa-b-rgb), .8); }
.pwa-aviso-x { flex: 0 0 auto; width: 28px; height: 28px; border: none; border-radius: 50%; cursor: pointer; background: #eef1fb; color: var(--pwa-ink); font-size: 16px; line-height: 1; padding: 0; display: grid; place-items: center; }
@media (max-width: 360px) { .pwa-aviso-tx small { display: none; } }
@media (prefers-reduced-motion: reduce) { .pwa-aviso { transition: opacity .2s ease; transform: none; } }

/* Con la barra de abajo a la vista, el aviso de éxito va encima de ella. */
.con-luna .pwa-toast { bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Colores y letra de este sitio (lo arma herramientas/llevar.mjs) ---------- */
:root {
    --pwa-a: #3c8aff;
    --pwa-b: #2470e6;
    --pwa-l: #74adff;
    --pwa-a-rgb: 60, 138, 255;
    --pwa-b-rgb: 36, 112, 230;
    --pwa-sobre-a: #ffffff;
    --pwa-ink: #1d276a;
    --pwa-ink-2: #2f3d94;
    --pwa-ink-rgb: 29, 39, 106;
    --pwa-icono: #ffffff;
    --pwa-suave: #dbe9ff;
    --pwa-suave-2: #bcd6ff;
    --pwa-paso: #eef4ff;
    --pwa-fuente: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Propio de marketinglab360.cl: el ícono del sitio va sobre blanco, con aire alrededor (como antes) ---------- */
.pwa-appicon { padding: 8px; }
.pwa-sheet.pwa-guia .pwa-appicon { padding: 5px; }
.pwa-aviso img { padding: 3px; box-sizing: border-box; box-shadow: inset 0 0 0 1px rgba(var(--pwa-ink-rgb), .1); }
.d-hoja-cab img, .d-dlg-app img { padding: 2px; box-sizing: border-box; }
