/* ══════════════════════════════════════════════════════════════════════
   COMPONENT: parent-share.css
   Contenido de la hoja "Mándale tu informe a tu acudiente"
   (js/components/parent-share.js). La hoja en sí es la genérica de
   css/components/bottom-sheet.css.

   --pshare-muted existe porque --text-secondary (#8E8A86) da 3.2:1 sobre
   blanco y aquí hay texto de lectura. --pshare-accent es el violeta para
   TEXTO: el de marca no pasa AA sobre el fondo oscuro.
   ══════════════════════════════════════════════════════════════════════ */

.pshare {
  --pshare-muted: #5C5868;   /* 6.6:1 sobre blanco */
  --pshare-accent: #5520D9;
  --pshare-line: color-mix(in srgb, var(--text-primary) 12%, transparent);
  --pshare-wa: #0E7C42;      /* #25D366 con texto blanco no pasa AA */
  --pshare-wa-press: #0B6A38;
}
[data-theme="dark"] .pshare {
  --pshare-muted: #B0ACC0;   /* 7.6:1 sobre #1C1C26 */
  --pshare-accent: #B9A3FF;
}

.pshare-lead {
  margin: 0 0 16px;
  color: var(--pshare-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pshare-steps {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: pshare;
  display: grid;
  gap: 10px;
}
.pshare-steps li {
  counter-increment: pshare;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.pshare-steps li::before {
  content: counter(pshare);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--violet);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pshare-actions { display: grid; gap: 10px; }
.pshare-row { display: flex; gap: 10px; }
.pshare-row > * { flex: 1; }

.pshare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pshare-btn:active { transform: scale(0.97); }
.pshare-btn:focus-visible { outline: 3px solid var(--pshare-accent); outline-offset: 2px; }
.pshare-btn .material-symbols-outlined { font-size: 20px; }

.pshare-btn--wa { background: var(--pshare-wa); color: #FFFFFF; font-size: 1rem; min-height: 54px; }
@media (hover: hover) { .pshare-btn--wa:hover { background: var(--pshare-wa-press); } }

.pshare-btn--ghost {
  background: transparent;
  border-color: var(--pshare-line);
  color: var(--text-primary);
}
@media (hover: hover) { .pshare-btn--ghost:hover { border-color: color-mix(in srgb, var(--text-primary) 28%, transparent); } }
.pshare-btn--ghost.is-done { border-color: var(--pshare-wa); color: var(--pshare-wa); }
[data-theme="dark"] .pshare-btn--ghost.is-done { border-color: #5FD993; color: #5FD993; }

.pshare-preview {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pshare-accent);
  text-decoration: none;
  border-radius: 8px;
}
.pshare-preview .material-symbols-outlined { font-size: 16px; }
@media (hover: hover) { .pshare-preview:hover { text-decoration: underline; text-underline-offset: 3px; } }
.pshare-preview:focus-visible { outline: 3px solid var(--pshare-accent); outline-offset: 2px; }

.pshare-fine {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--pshare-muted);
}

.pshare-skel {
  height: 168px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text-primary) 7%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .pshare-skel { animation: pshare-pulse 1.2s ease-in-out infinite alternate; }
  @keyframes pshare-pulse { from { opacity: 1; } to { opacity: 0.5; } }
}

/* Se abre también desde #/upgrade, cuyo overlay de pantalla completa está en
   z-index 9999 (super-modal.css). La hoja genérica (1010) quedaba detrás. */
#pshare-sheet.sheet-overlay { z-index: 10010; }
