/* Modal «explorar» del KIT DIRECTORIOS (modal.zip) adaptat a LaMevaNòmina:
   només tokens de style.css (clar i fosc), cantonades rectes (DESIGN.md, No negociable). */
.explore-modal { --em-primary: var(--ink); --em-surface: var(--card); --em-text: var(--text); --em-muted: var(--mute); --em-soft: var(--paper-2); --em-secondary: var(--accent); font: 1rem/1.5 var(--sans); }
.explore-modal, .explore-modal * { box-sizing: border-box; }
.explore-modal:not([open]) { display: none; }
.explore-modal { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 36px 28px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--em-text); background: var(--em-surface); box-shadow: 0 24px 80px rgb(16 32 48 / .28); text-align: center; overflow: auto; overscroll-behavior: contain; }
.explore-modal::backdrop { background: rgb(16 26 36 / .6); }
.explore-modal__close { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--em-muted); line-height: 1; cursor: pointer; }
.explore-modal__close svg { display: block; flex: none; }
.explore-modal__close:hover { background: var(--em-soft); color: var(--em-text); }
.explore-modal__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--em-soft); color: var(--em-primary); }
.explore-modal__icon img { width: 40px; height: 40px; object-fit: contain; }
.explore-modal .explore-modal__eyebrow { margin: 18px 0 8px; color: var(--em-secondary); font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.explore-modal h2 { margin: 0 0 12px; color: var(--em-text); font: 700 clamp(1.4rem, 5vw, 1.75rem)/1.2 var(--serif); text-transform: none; }
.explore-modal h2::after { display: none; }
.explore-modal p { color: var(--em-muted); font-size: 1rem; line-height: 1.6; }
.explore-modal__actions { display: grid; gap: 10px; margin-top: 22px; }
.explore-modal .explore-modal__action { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--em-primary); border-radius: var(--r-sm); background: var(--em-primary); color: var(--paper); font: 700 .95rem/1.4 var(--sans); text-decoration: none; white-space: normal; }
.explore-modal .explore-modal__action:hover { background: var(--ink-strong); border-color: var(--ink-strong); }
.explore-modal .explore-modal__action--secondary { background: transparent; color: var(--em-text); border-color: var(--line); }
.explore-modal .explore-modal__action--secondary:hover { background: var(--em-soft); border-color: var(--em-primary); color: var(--em-text); }
.explore-modal :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.explore-modal__close:focus-visible { outline-offset: -4px; }
.explore-modal button { font-family: inherit; }
.explore-modal__dismiss { min-height: 44px; margin-top: 10px; padding: 8px 16px; border: 0; background: transparent; color: var(--em-muted); text-decoration: underline; cursor: pointer; font: inherit; }
html.explore-modal-open, html.explore-modal-open body { overflow: hidden; }
.explore-modal .explore-modal__bookmark { display: block; width: 100%; min-height: 44px; margin: 10px 0 0; padding: 10px 6px; border: 0; background: transparent; color: var(--ink); font: 600 .9rem/1.5 var(--sans); text-align: center; text-decoration: underline; cursor: pointer; }
.explore-modal .explore-modal__bookmark-help { margin: 4px 0 8px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--em-soft); color: var(--em-text); font-size: .875rem; line-height: 1.6; }
.explore-modal .explore-modal__bookmark-help[hidden] { display: none; }
.explore-modal .explore-modal__bookmark-help kbd { display: inline-block; min-width: 1.7em; padding: 1px 6px; border: 1px solid var(--em-muted); border-bottom-width: 2px; border-radius: var(--r-xs); background: var(--em-surface); color: var(--em-text); font: 600 .9em/1.5 var(--sans); text-align: center; white-space: nowrap; }
@media (max-width: 380px) { .explore-modal { padding: 32px 18px 16px; } }
@media print { .explore-modal { display: none !important; } }
