.legadoqr-public-clean {
    background: #eaf5ee;
}

.legadoqr-theme-classic {
    --legadoqr-bg: #eaf5ee;
    --legadoqr-panel-bg: #f7f4ef;
    --legadoqr-card-bg: #fbf8f3;
    --legadoqr-border: #e2dbcf;
    --legadoqr-text: #171717;
    --legadoqr-muted: #6f6a61;
    --legadoqr-primary: #16794c;
    --legadoqr-primary-contrast: #ffffff;
    --legadoqr-action: #171717;
    --legadoqr-alert-bg: #fff9eb;
    --legadoqr-alert-border: #f6bd47;
    --legadoqr-accent: #9d7c4f;
}

.legadoqr-theme-gold {
    --legadoqr-bg: #f8f1e7;
    --legadoqr-panel-bg: #fffaf2;
    --legadoqr-card-bg: #fffdf8;
    --legadoqr-border: #e7d4b8;
    --legadoqr-text: #2c2520;
    --legadoqr-muted: #776658;
    --legadoqr-primary: #a96919;
    --legadoqr-primary-contrast: #ffffff;
    --legadoqr-action: #2c2520;
    --legadoqr-alert-bg: #fff4da;
    --legadoqr-alert-border: #d5a84e;
    --legadoqr-accent: #b07a2d;
}

.legadoqr-theme-blue {
    --legadoqr-bg: #edf5f8;
    --legadoqr-panel-bg: #f8fbfc;
    --legadoqr-card-bg: #ffffff;
    --legadoqr-border: #cfdfe7;
    --legadoqr-text: #172331;
    --legadoqr-muted: #5e7180;
    --legadoqr-primary: #2f6f8f;
    --legadoqr-primary-contrast: #ffffff;
    --legadoqr-action: #172331;
    --legadoqr-alert-bg: #eef7fb;
    --legadoqr-alert-border: #8ab8ce;
    --legadoqr-accent: #39758f;
}

body.legadoqr-public-clean.legadoqr-theme-classic,
body.legadoqr-public-clean.legadoqr-theme-gold,
body.legadoqr-public-clean.legadoqr-theme-blue,
.legadoqr-family-section.legadoqr-theme-classic,
.legadoqr-family-section.legadoqr-theme-gold,
.legadoqr-family-section.legadoqr-theme-blue {
    background: var(--legadoqr-bg);
    color: var(--legadoqr-text);
}

body.legadoqr-public-clean.legadoqr-theme-classic .legadoqr-public-clean-header a,
body.legadoqr-public-clean.legadoqr-theme-gold .legadoqr-public-clean-header a,
body.legadoqr-public-clean.legadoqr-theme-blue .legadoqr-public-clean-header a,
.legadoqr-theme-classic .legadoqr-family-public-link,
.legadoqr-theme-gold .legadoqr-family-public-link,
.legadoqr-theme-blue .legadoqr-family-public-link,
.legadoqr-theme-classic .memorias-qr-whatsapp,
.legadoqr-theme-gold .memorias-qr-whatsapp,
.legadoqr-theme-blue .memorias-qr-whatsapp {
    background: var(--legadoqr-primary);
    color: var(--legadoqr-primary-contrast);
}

.legadoqr-theme-classic .legadoqr-family-link-actions button,
.legadoqr-theme-gold .legadoqr-family-link-actions button,
.legadoqr-theme-blue .legadoqr-family-link-actions button,
.legadoqr-theme-classic .legadoqr-family-style-form button,
.legadoqr-theme-gold .legadoqr-family-style-form button,
.legadoqr-theme-blue .legadoqr-family-style-form button,
.legadoqr-theme-classic .legadoqr-family-upgrade a,
.legadoqr-theme-gold .legadoqr-family-upgrade a,
.legadoqr-theme-blue .legadoqr-family-upgrade a {
    background: var(--legadoqr-action);
    color: #fff;
}

.legadoqr-theme-classic .legadoqr-family-plan-title,
.legadoqr-theme-gold .legadoqr-family-plan-title,
.legadoqr-theme-blue .legadoqr-family-plan-title {
    border-left-color: var(--legadoqr-primary);
}

.legadoqr-theme-classic .legadoqr-family-summary > div,
.legadoqr-theme-gold .legadoqr-family-summary > div,
.legadoqr-theme-blue .legadoqr-family-summary > div,
.legadoqr-theme-classic .legadoqr-family-upgrade,
.legadoqr-theme-gold .legadoqr-family-upgrade,
.legadoqr-theme-blue .legadoqr-family-upgrade,
.legadoqr-theme-classic .legadoqr-family-notices,
.legadoqr-theme-gold .legadoqr-family-notices,
.legadoqr-theme-blue .legadoqr-family-notices,
.legadoqr-theme-classic .legadoqr-family-style-panel,
.legadoqr-theme-gold .legadoqr-family-style-panel,
.legadoqr-theme-blue .legadoqr-family-style-panel,
body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-details,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-details,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-details,
body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-video-grid > div,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-video-grid > div,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-video-grid > div,
body.legadoqr-public-clean.legadoqr-theme-classic .legadoqr-public-family-card,
body.legadoqr-public-clean.legadoqr-theme-gold .legadoqr-public-family-card,
body.legadoqr-public-clean.legadoqr-theme-blue .legadoqr-public-family-card {
    background: var(--legadoqr-card-bg);
    border-color: var(--legadoqr-border);
}

.legadoqr-theme-classic .legadoqr-family-alert,
.legadoqr-theme-gold .legadoqr-family-alert,
.legadoqr-theme-blue .legadoqr-family-alert {
    background: var(--legadoqr-alert-bg);
    border-color: var(--legadoqr-alert-border);
}

body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-hero h1,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-hero h1,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-hero h1,
body.legadoqr-public-clean.legadoqr-theme-classic .legadoqr-public-family h1,
body.legadoqr-public-clean.legadoqr-theme-gold .legadoqr-public-family h1,
body.legadoqr-public-clean.legadoqr-theme-blue .legadoqr-public-family h1 {
    color: var(--legadoqr-text);
}

body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-kicker,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-kicker,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-kicker,
body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-dates,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-dates,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-dates {
    color: var(--legadoqr-muted);
}

body.legadoqr-public-clean.legadoqr-theme-classic .memorias-qr-hero blockquote,
body.legadoqr-public-clean.legadoqr-theme-gold .memorias-qr-hero blockquote,
body.legadoqr-public-clean.legadoqr-theme-blue .memorias-qr-hero blockquote {
    border-left-color: var(--legadoqr-accent);
}

.legadoqr-family-style-panel {
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    margin: 14px 0;
    padding: 16px;
}

.legadoqr-family-style-panel > div > strong {
    display: block;
    font-size: 18px;
}

.legadoqr-family-style-panel > div > span {
    color: var(--legadoqr-muted, #6f6a61);
}

.legadoqr-family-style-form {
    display: grid;
    gap: 14px;
}

.legadoqr-family-style-options {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legadoqr-family-style-option {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--legadoqr-border, #e2dbcf);
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px;
}

.legadoqr-family-style-option.is-selected {
    border-color: var(--legadoqr-primary, #16794c);
    box-shadow: 0 0 0 2px rgba(22, 121, 76, 0.16);
}

.legadoqr-family-style-option strong,
.legadoqr-family-style-option small {
    display: block;
}

.legadoqr-family-style-option small {
    color: var(--legadoqr-muted, #6f6a61);
}

.legadoqr-family-style-swatch {
    display: inline-flex;
    gap: 4px;
}

.legadoqr-family-style-swatch i {
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    display: block;
    height: 20px;
    width: 20px;
}

.legadoqr-family-style-form button {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    justify-self: start;
    min-height: 42px;
    padding: 0 18px;
}

.legadoqr-family-start-style {
    margin-top: 18px;
}

.legadoqr-delete-request-box {
    background: #fff7f7;
    border: 1px solid #f0c3c3;
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
}

.legadoqr-delete-request-box summary {
    color: #9b1c1c;
    cursor: pointer;
    font-weight: 800;
}

.legadoqr-delete-request-box p {
    color: #6f4f4f;
    margin: 10px 0;
}

.legadoqr-delete-request-box button {
    background: #9b1c1c;
}

@media (max-width: 700px) {
    .legadoqr-family-style-option {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .legadoqr-family-style-swatch {
        grid-column: 2;
    }

    .legadoqr-family-style-form button {
        justify-self: stretch;
    }
}

.legadoqr-public-clean-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #dce7df;
    display: flex;
    justify-content: flex-end;
    min-height: 72px;
    padding: 0 clamp(18px, 5vw, 72px);
}

.legadoqr-public-clean-header a {
    background: #11824f;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    padding: 12px 18px;
    text-decoration: none;
}

.memorias-qr-page {
    --memorias-qr-public-media: clamp(190px, 24vw, 280px);
    color: #262626;
    font-family: inherit;
    margin: 0 auto;
    max-width: 980px;
    padding: 36px 18px 64px;
}

.memorias-qr-hero {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: var(--memorias-qr-public-media) minmax(0, 1fr);
    margin-bottom: 42px;
}

.memorias-qr-hero-media {
    max-width: var(--memorias-qr-public-media);
}

.memorias-qr-hero-media img,
.memorias-qr-hero-media video,
.memorias-qr-photo-placeholder {
    aspect-ratio: 1;
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.memorias-qr-photo-placeholder {
    background: linear-gradient(135deg, #f4f1ec, #ddd8cf);
}

.memorias-qr-kicker {
    color: #6f6a61;
    font-size: 15px;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.memorias-qr-hero h1 {
    color: #171717;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.03;
    margin: 0;
}

.memorias-qr-dates {
    color: #56514a;
    font-size: 20px;
    margin: 16px 0 0;
}

.memorias-qr-hero blockquote {
    border-left: 4px solid #9d7c4f;
    color: #3f3a34;
    font-size: 22px;
    line-height: 1.45;
    margin: 28px 0 0;
    padding-left: 18px;
}

.memorias-qr-content {
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.memorias-qr-story h2,
.memorias-qr-details h2,
.memorias-qr-video h2,
.memorias-qr-gallery h2 {
    color: #171717;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.memorias-qr-story p,
.memorias-qr-details p {
    color: #36322e;
    font-size: 18px;
    line-height: 1.7;
}

.memorias-qr-details {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    height: fit-content;
    padding: 22px;
}

.memorias-qr-whatsapp {
    background: #16794c;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    margin-top: 14px;
    padding: 12px 16px;
    text-decoration: none;
}

.memorias-qr-video,
.memorias-qr-gallery {
    margin-top: 44px;
}

.memorias-qr-video-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.memorias-qr-video-grid > div {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    overflow: hidden;
}

.memorias-qr-video iframe,
.memorias-qr-video video {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0 0 16px;
    max-width: min(100%, 560px);
    width: 100%;
}

.memorias-qr-video-grid iframe,
.memorias-qr-video-grid video {
    border-radius: 0;
    margin: 0;
    max-width: none;
}

.legadoqr-video-embed {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    display: block;
    height: auto;
    width: 100%;
}

.memorias-qr-video-grid .wp-video,
.memorias-qr-video-grid .wp-video-shortcode {
    width: 100% !important;
}

.memorias-qr-video-grid a {
    color: #16794c;
    display: block;
    font-weight: 800;
    padding: 18px;
}

.memorias-qr-gallery > div,
.memorias-qr-listado {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 240px));
    justify-content: start;
}

.memorias-qr-gallery img,
.memorias-qr-gallery video,
.memorias-qr-card img,
.memorias-qr-card video {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.legadoqr-messages {
    margin-top: 48px;
}

.legadoqr-message-ok {
    background: #edf7f0;
    border: 1px solid #b9dfc3;
    border-radius: 8px;
    color: #185f34;
    padding: 12px 14px;
}

.legadoqr-approved-messages {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.legadoqr-approved-messages article {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    padding: 18px;
}

.legadoqr-approved-messages p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.legadoqr-message-form {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legadoqr-message-form label {
    display: grid;
    gap: 7px;
}

.legadoqr-message-form input,
.legadoqr-message-form textarea {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.legadoqr-message-wide {
    grid-column: 1 / -1;
}

.legadoqr-message-form button {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    min-height: 46px;
    padding: 0 18px;
    width: fit-content;
}

.legadoqr-public-family {
    --legadoqr-public-tile: clamp(190px, 24vw, 280px);
    color: #262626;
    margin: 0 auto;
    max-width: 980px;
    padding: 36px 18px 68px;
}

.legadoqr-public-family-hero {
    align-items: center;
    display: grid;
    gap: 38px;
    grid-template-columns: var(--legadoqr-public-tile) minmax(0, 1fr);
    margin-bottom: 46px;
}

.legadoqr-public-family-media {
    max-width: var(--legadoqr-public-tile);
}

.legadoqr-public-family-media img,
.legadoqr-public-family-media video,
.legadoqr-public-family-media .memorias-qr-photo-placeholder {
    aspect-ratio: 1;
    border-radius: 8px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.15);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.legadoqr-public-family-copy h1 {
    color: #171717;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    margin: 0;
}

.legadoqr-public-family-copy > p:not(.memorias-qr-kicker) {
    color: #4a4037;
    font-size: 19px;
    line-height: 1.55;
    margin: 18px 0 0;
    max-width: 680px;
}

.legadoqr-public-family-section {
    margin-top: 48px;
}

.legadoqr-public-family-section h2 {
    color: #171717;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 18px;
}

.legadoqr-public-family-grid,
.legadoqr-public-family-gallery {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, var(--legadoqr-public-tile)));
    justify-content: start;
}

.legadoqr-public-family-grid {
    justify-content: center;
}

.legadoqr-public-family-card {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    color: #171717;
    display: grid;
    gap: 10px;
    padding: 14px;
    text-decoration: none;
}

.legadoqr-public-family-card:hover {
    border-color: #b9a98e;
}

.legadoqr-public-family-card img,
.legadoqr-public-family-card video,
.legadoqr-public-family-card .memorias-qr-photo-placeholder,
.legadoqr-public-family-gallery img,
.legadoqr-public-family-gallery video {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.legadoqr-public-family-card strong {
    font-size: 20px;
    line-height: 1.25;
}

.legadoqr-public-family-card span,
.legadoqr-public-family-card small {
    color: #6f6a61;
}

.legadoqr-public-family-video-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legadoqr-public-family-video-card {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    overflow: hidden;
}

.legadoqr-public-family-video-card iframe,
.legadoqr-public-family-video-card video {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    width: 100%;
}

.legadoqr-public-family-video-card .wp-video,
.legadoqr-public-family-video-card .wp-video-shortcode {
    width: 100% !important;
}

.legadoqr-public-family-video-card a {
    color: #16794c;
    display: block;
    font-weight: 800;
    padding: 18px;
}

.legadoqr-family-panel {
    color: #262626;
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.legadoqr-family-section {
    padding: 0;
}

.legadoqr-panel-body {
    background: #f6f3ee;
    margin: 0;
}

.legadoqr-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.legadoqr-shell-sidebar {
    background: #171717;
    color: #fff;
    padding: 28px 22px;
}

.legadoqr-shell-brand {
    color: #fff;
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 28px;
    text-decoration: none;
}

.legadoqr-shell-sidebar nav {
    display: grid;
    gap: 8px;
}

.legadoqr-shell-sidebar nav a {
    border-radius: 6px;
    color: #f6f3ee;
    padding: 10px 12px;
    text-decoration: none;
}

.legadoqr-shell-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.legadoqr-panel-body.legadoqr-theme-classic,
.legadoqr-panel-body.legadoqr-theme-gold,
.legadoqr-panel-body.legadoqr-theme-blue {
    background: var(--legadoqr-bg);
    color: var(--legadoqr-text);
}

.legadoqr-panel-body.legadoqr-theme-classic .legadoqr-shell-sidebar,
.legadoqr-panel-body.legadoqr-theme-gold .legadoqr-shell-sidebar,
.legadoqr-panel-body.legadoqr-theme-blue .legadoqr-shell-sidebar {
    background: var(--legadoqr-action);
    color: var(--legadoqr-primary-contrast);
}

.legadoqr-panel-body.legadoqr-theme-classic .legadoqr-shell-main,
.legadoqr-panel-body.legadoqr-theme-gold .legadoqr-shell-main,
.legadoqr-panel-body.legadoqr-theme-blue .legadoqr-shell-main {
    background: var(--legadoqr-bg);
}

.legadoqr-shell-main {
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 34px;
    width: 100%;
}

.legadoqr-shell-main .legadoqr-family-panel {
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
}

.legadoqr-login-panel {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(320px, 560px) minmax(360px, 500px);
    justify-content: center;
    margin: 0 auto;
    min-height: calc(100vh - 68px);
    max-width: 1180px;
    width: 100%;
}

.legadoqr-login-kicker {
    color: #8a6a3d;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.legadoqr-login-copy h1 {
    font-size: 54px;
    line-height: 1.02;
    margin: 0 0 18px;
}

.legadoqr-login-copy p {
    color: #4a4037;
    font-size: 23px;
    line-height: 1.55;
    max-width: 720px;
}

.legadoqr-login-card {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    justify-self: center;
    max-width: 500px;
    padding: 28px;
    width: 100%;
}

.legadoqr-login-card h2 {
    font-size: 26px;
    margin: 0 0 18px;
    text-align: center;
}

.legadoqr-login-card form,
.legadoqr-login-card p {
    display: grid;
    gap: 10px;
}

.legadoqr-login-card label {
    font-weight: 700;
}

.legadoqr-login-card input[type="email"],
.legadoqr-login-card input[type="text"],
.legadoqr-login-card input[type="password"] {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
    padding: 8px 10px;
    width: 100%;
}

.legadoqr-login-card input[type="submit"] {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
    padding: 0 18px;
}

.legadoqr-family-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0;
}

.legadoqr-family-plan-title {
    border-left: 4px solid #16794c;
    font-size: 22px;
    margin: 18px 0 8px;
    padding-left: 10px;
}

.legadoqr-family-public-link {
    background: #16794c;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    margin: 0 0 8px;
    padding: 11px 16px;
    text-decoration: none;
}

.legadoqr-family-public-link:hover {
    color: #fff;
    filter: brightness(0.95);
}

.legadoqr-family-link-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
}

.legadoqr-family-link-actions button,
.legadoqr-family-upgrade a,
.legadoqr-family-notices button {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 0 14px;
    align-items: center;
    text-decoration: none;
}

.legadoqr-family-upgrade,
.legadoqr-family-notices {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    margin: 14px 0;
    padding: 16px;
}

.legadoqr-family-upgrade {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
}

.legadoqr-family-tutorial {
    background: #eef7f1;
    border: 1px solid #cfe4d7;
    border-radius: 8px;
    margin: 14px 0;
    padding: 0;
}

.legadoqr-family-tutorial summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    list-style-position: inside;
    padding: 16px;
}

.legadoqr-family-tutorial > div {
    border-top: 1px solid #cfe4d7;
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.legadoqr-family-tutorial p {
    color: #4f5f54;
    margin: 0;
}

.legadoqr-family-tutorial ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
}

.legadoqr-family-tutorial li {
    color: #2f3a33;
}

.legadoqr-family-upgrade strong,
.legadoqr-family-notices > div:first-child strong {
    display: block;
    font-size: 18px;
}

.legadoqr-family-upgrade span,
.legadoqr-family-notices > div:first-child span {
    color: #6f6a61;
}

.legadoqr-family-notice-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.legadoqr-family-notice-grid > div {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.legadoqr-family-notice-grid small {
    color: #6f6a61;
}

.legadoqr-family-fixed-variable {
    display: grid;
    gap: 6px;
}

.legadoqr-family-fixed-variable span {
    color: #6f6a61;
    font-size: 13px;
}

.legadoqr-family-fixed-variable select,
.legadoqr-family-notice-grid textarea {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
}

.legadoqr-family-fixed-variable select {
    min-height: 42px;
    padding: 8px 10px;
}

.legadoqr-family-notice-grid textarea {
    min-height: 110px;
    padding: 8px;
    resize: vertical;
}

.legadoqr-family-notice-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legadoqr-family-notice-actions button {
    font-size: 13px;
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    white-space: nowrap;
}

.legadoqr-family-summary div,
.legadoqr-family-memory,
.legadoqr-family-group,
.legadoqr-family-message {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    padding: 16px;
}

.legadoqr-family-summary strong {
    display: block;
    font-size: 22px;
}

.legadoqr-family-summary span {
    color: #6f6a61;
}

.legadoqr-family-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.legadoqr-family-tabs a {
    background: #fff;
    border: 1px solid #d8cfc2;
    border-radius: 6px;
    color: #171717;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 12px;
    text-decoration: none;
}

.legadoqr-family-tabs a:hover {
    background: #f7f4ef;
    border-color: #b9a98e;
}

.legadoqr-family-top-button {
    align-items: center;
    background: #16794c;
    border-radius: 999px;
    bottom: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    min-height: 44px;
    padding: 0 18px;
    position: fixed;
    right: 22px;
    text-decoration: none;
    z-index: 40;
}

.legadoqr-family-top-button:hover {
    color: #fff;
    filter: brightness(0.95);
}

.legadoqr-family-alert {
    background: #fff7e6;
    border: 1px solid #e5c06d;
    border-radius: 8px;
    color: #674600;
    padding: 12px 14px;
}

.legadoqr-family-memory {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    max-width: 980px;
}

.legadoqr-family-group {
    display: grid;
    gap: 16px;
    margin: 14px 0 22px;
}

.legadoqr-family-group > div:first-child strong {
    display: block;
    font-size: 22px;
}

.legadoqr-family-group > div:first-child span {
    color: #6f6a61;
}

.legadoqr-family-group-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legadoqr-family-group-card {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.legadoqr-family-group-grid .legadoqr-family-group-card > a:first-child {
    align-items: center;
    color: #171717;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.legadoqr-family-group-card:hover {
    border-color: #b9a98e;
}

.legadoqr-family-small-action {
    align-items: center;
    background: #171717;
    border-radius: 6px;
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none;
}

.legadoqr-family-group-grid span {
    color: #6f6a61;
    font-size: 14px;
}

.legadoqr-family-group-photo {
    border-radius: 8px;
    flex: 0 0 58px;
    height: 58px;
    overflow: hidden;
    width: 58px;
}

.legadoqr-family-group-photo img,
.legadoqr-family-group-photo video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.legadoqr-family-group-info {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.legadoqr-family-group-info strong {
    color: #171717;
}

.legadoqr-family-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.legadoqr-family-upload-note {
    align-self: center;
    color: #6f6a61;
    font-size: 13px;
    line-height: 1.45;
}

.legadoqr-family-intro-form {
    align-items: start;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
}

.legadoqr-family-memorial-text-form {
    align-items: start;
    grid-template-columns: 1fr;
    margin: 14px 0;
}

.legadoqr-family-intro-form button {
    justify-self: start;
    min-width: 220px;
}

.legadoqr-family-memorial-text-form button {
    justify-self: start;
    min-width: 220px;
}

.legadoqr-family-memory-form {
    align-items: start;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    margin-bottom: 18px;
}

.legadoqr-family-form-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
}

.legadoqr-family-form-actions button {
    min-width: 280px;
}

.legadoqr-family-memory-preview {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 120px));
}

.legadoqr-family-memory-preview div,
.legadoqr-family-video-preview div {
    display: grid;
    gap: 6px;
}

.legadoqr-family-memory-preview span,
.legadoqr-family-video-preview span {
    color: #6f6a61;
    font-size: 13px;
}

.legadoqr-family-memory-preview img,
.legadoqr-family-memory-preview video {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.legadoqr-family-memory-preview small,
.legadoqr-family-video-preview small {
    color: #6f6a61;
    display: block;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.legadoqr-family-video-preview {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
}

.legadoqr-family-audio-preview,
.legadoqr-public-audio-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legadoqr-family-video-preview > div {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    padding: 10px;
}

.legadoqr-family-audio-preview > div,
.legadoqr-public-audio-card {
    background: var(--legadoqr-card, #fff);
    border: 1px solid var(--legadoqr-border, #e2dbcf);
    border-radius: 8px;
    padding: 14px;
}

.legadoqr-family-video-preview iframe,
.legadoqr-family-video-preview video {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.legadoqr-family-video-preview a {
    color: #16794c;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.legadoqr-family-audio-preview small,
.legadoqr-public-audio-card span {
    color: var(--legadoqr-muted, #6f6a61);
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.legadoqr-media-audio {
    width: 100%;
}

.legadoqr-family-delete-media-form {
    margin: 0;
}

.legadoqr-family-delete-media-form button {
    background: #8f1d1d;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-height: 34px;
    padding: 0 10px;
}

.legadoqr-family-form label {
    box-sizing: border-box;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.legadoqr-family-form input {
    border: 1px solid #cfc7ba;
    box-sizing: border-box;
    border-radius: 6px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.legadoqr-family-form input[type="file"] {
    background: #fff;
    font-size: 15px;
    line-height: 1.35;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legadoqr-family-form textarea {
    border: 1px solid #cfc7ba;
    box-sizing: border-box;
    border-radius: 6px;
    min-height: 94px;
    padding: 8px 10px;
    width: 100%;
}

.legadoqr-family-wide {
    grid-column: 1 / -1;
}

.legadoqr-family-help {
    color: #6f6a61;
    font-size: 14px;
    line-height: 1.5;
}

.legadoqr-family-form button,
.legadoqr-family-message button {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    min-height: 42px;
    padding: 0 14px;
}

.legadoqr-family-form button.legadoqr-is-processing,
.legadoqr-family-message button.legadoqr-is-processing {
    background: #6b7280;
    cursor: wait;
    opacity: 0.9;
}

.legadoqr-form-processing {
    opacity: 0.82;
}

.legadoqr-family-memory-form button {
    align-self: end;
    min-width: 230px;
}

.legadoqr-family-memorial-photo-panel {
    align-items: center;
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: 160px 150px minmax(0, 1fr);
    padding: 14px;
}

.legadoqr-family-memorial-photo-panel > div:first-child {
    display: grid;
    gap: 8px;
}

.legadoqr-family-memorial-photo-panel span {
    color: #6f6a61;
    font-size: 13px;
}

.legadoqr-family-memorial-photo-panel img,
.legadoqr-family-memorial-photo-panel video,
.legadoqr-family-memorial-photo-panel .memorias-qr-photo-placeholder {
    aspect-ratio: 1;
    border-radius: 8px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 150px;
}

.legadoqr-family-memorial-qr {
    align-content: start;
    display: grid;
    gap: 8px;
}

.legadoqr-family-memorial-qr img {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    height: 132px;
    object-fit: contain;
    padding: 8px;
    width: 132px;
}

.legadoqr-family-memorial-qr div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.legadoqr-family-memorial-qr a {
    align-items: center;
    background: #171717;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    text-decoration: none;
}

.legadoqr-family-memorial-photo-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.legadoqr-family-users {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 14px 14px 14px 34px;
}

.legadoqr-family-user-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legadoqr-family-user-form button {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 240px;
}

.legadoqr-family-user-row {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    margin: 8px 0;
    min-width: 0;
}

.legadoqr-family-user-row form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.legadoqr-family-user-password-form input {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    flex: 0 1 220px;
    max-width: 240px;
    min-height: 34px;
    min-width: 0;
    padding: 6px 8px;
    width: 100%;
}

.legadoqr-family-user-row button {
    background: #8f1d1d;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    min-height: 34px;
    padding: 0 12px;
}

.legadoqr-family-user-password-form button {
    background: #171717;
    white-space: nowrap;
}

.legadoqr-family-section > h2 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 18px;
}

.legadoqr-family-section h3 {
    font-size: 24px;
    margin: 28px 0 12px;
}

.legadoqr-family-memory h4 {
    font-size: 20px;
    margin: 0;
}

.legadoqr-family-memory h5 {
    font-size: 16px;
    margin: 8px 0 0;
}

.legadoqr-family-message {
    background: #fff;
}

.legadoqr-family-message-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.legadoqr-family-message-actions form {
    margin: 0;
}

.legadoqr-family-message-actions button {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
}

.legadoqr-family-message-actions .legadoqr-family-danger {
    background: #8f1d1d;
}

.legadoqr-family-messages-panel {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin: 18px 0;
    padding: 16px;
}

.legadoqr-family-messages-panel h3 {
    margin-top: 0;
}

.legadoqr-family-messages-table {
    display: grid;
    gap: 12px;
}

.legadoqr-family-messages-table > div {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.legadoqr-family-message-compact {
    background: transparent;
    border: 0;
    padding: 0;
}

.memorias-qr-card {
    color: #171717;
    display: grid;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

.memorias-qr-search {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
}

.memorias-qr-search input {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
}

.memorias-qr-search button {
    background: #171717;
    border: 0;
    border-radius: 6px;
    color: #fff;
    min-height: 44px;
    padding: 0 18px;
}

.legadoqr-dashboard {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.legadoqr-dashboard div {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    padding: 22px;
}

.legadoqr-dashboard strong {
    color: #171717;
    display: block;
    font-size: 38px;
    line-height: 1;
}

.legadoqr-dashboard span {
    color: #56514a;
    display: block;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .memorias-qr-hero,
    .memorias-qr-content {
        grid-template-columns: 1fr;
    }

    .legadoqr-public-family-hero {
        grid-template-columns: 1fr;
    }

    .memorias-qr-hero-media,
    .legadoqr-public-family-media {
        max-width: min(100%, 280px);
    }

    .memorias-qr-gallery > div,
    .memorias-qr-listado,
    .legadoqr-public-family-grid,
    .legadoqr-public-family-gallery {
        grid-template-columns: 1fr;
    }

    .memorias-qr-gallery img,
    .memorias-qr-gallery video,
    .memorias-qr-card img,
    .memorias-qr-card video,
    .legadoqr-public-family-card img,
    .legadoqr-public-family-card video,
    .legadoqr-public-family-card .memorias-qr-photo-placeholder,
    .legadoqr-public-family-gallery img,
    .legadoqr-public-family-gallery video,
    .memorias-qr-hero h1 {
        font-size: 40px;
    }

    .memorias-qr-search {
        flex-direction: column;
    }

    .legadoqr-message-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-shell {
        grid-template-columns: 1fr;
    }

    .legadoqr-shell-sidebar {
        padding: 18px;
    }

    .legadoqr-shell-sidebar nav {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
    }

    .legadoqr-shell-main {
        padding: 22px 14px;
    }

    .legadoqr-family-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-upgrade {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-tutorial summary {
        font-size: 16px;
    }

    .legadoqr-family-link-actions,
    .legadoqr-family-link-actions button,
    .legadoqr-family-public-link,
    .legadoqr-family-upgrade a {
        width: 100%;
    }

    .legadoqr-family-link-actions button,
    .legadoqr-family-public-link,
    .legadoqr-family-upgrade a {
        justify-content: center;
    }

    .legadoqr-family-tabs a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .legadoqr-family-top-button {
        bottom: 14px;
        min-height: 40px;
        padding: 0 14px;
        right: 14px;
    }

    .legadoqr-family-notice-actions {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-memory-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-form-actions button {
        width: 100%;
    }

    .legadoqr-family-memorial-photo-panel,
    .legadoqr-family-memorial-photo-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-memorial-photo-panel img,
    .legadoqr-family-memorial-photo-panel video,
    .legadoqr-family-memorial-photo-panel .memorias-qr-photo-placeholder {
        width: min(100%, 180px);
    }

    .legadoqr-family-memorial-qr img {
        width: 132px;
    }

    .legadoqr-family-user-form,
    .legadoqr-family-user-row {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-user-row form {
        align-items: stretch;
        flex-direction: column;
    }

    .legadoqr-family-user-password-form input {
        max-width: 100%;
    }

    .legadoqr-login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .legadoqr-login-copy h1 {
        font-size: 38px;
    }

    .legadoqr-login-copy p {
        font-size: 19px;
    }
}

.legadoqr-public-plans {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 44px auto;
    max-width: 1220px;
    padding: 0 18px;
    --legadoqr-plan-accent: #157f54;
    --legadoqr-plan-button: #157f54;
    --legadoqr-plan-button-text: #ffffff;
}

.legadoqr-plan-card {
    background: #fff;
    border: 1px solid #e8e2d8;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(18, 24, 32, .08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    padding: 42px 34px;
    position: relative;
    text-align: left;
}

.legadoqr-plan-featured {
    border: 2px solid var(--legadoqr-plan-accent);
    box-shadow: 0 18px 44px rgba(18, 24, 32, .13);
}

.legadoqr-plan-badge {
    align-self: center;
    background: var(--legadoqr-plan-accent);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    margin-top: -58px;
    padding: 9px 20px;
    text-transform: uppercase;
}

.legadoqr-plan-card h3 {
    color: #14305d;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    text-align: center;
}

.legadoqr-plan-price {
    text-align: center;
}

.legadoqr-plan-price strong {
    color: #244f9e;
    display: block;
    font-size: 46px;
    font-weight: 900;
    line-height: 1.1;
}

.legadoqr-plan-price span {
    color: #5c5c5c;
    display: block;
    margin-top: 10px;
}

.legadoqr-plan-card ul {
    display: grid;
    gap: 15px;
    list-style: none !important;
    margin: 10px 0 22px;
    padding: 0;
}

.legadoqr-plan-card li {
    color: #4c4c4c;
    font-size: 16px;
    padding-left: 28px;
    position: relative;
}

.legadoqr-plan-card li::before {
    color: var(--legadoqr-plan-accent);
    content: "✓";
    font-weight: 800;
    left: 0;
    position: absolute;
}

.legadoqr-plan-button,
.legadoqr-interest-form button {
    align-items: center;
    background: var(--legadoqr-plan-button);
    border: 0;
    border-radius: 8px;
    color: var(--legadoqr-plan-button-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.legadoqr-plan-button {
    align-self: center;
    border-radius: 999px;
    min-width: 190px;
}

.legadoqr-plan-button:hover,
.legadoqr-interest-form button:hover {
    box-shadow: 0 10px 20px rgba(18, 24, 32, .16);
    color: var(--legadoqr-plan-button-text);
    transform: translateY(-1px);
}

.legadoqr-interest-form {
    background: #fff;
    border: 1px solid #e2ddd4;
    border-radius: 8px;
    margin: 36px auto;
    max-width: 980px;
    padding: 32px;
    --legadoqr-plan-accent: #157f54;
    --legadoqr-plan-button: #157f54;
    --legadoqr-plan-button-text: #ffffff;
}

.legadoqr-interest-overlay {
    align-items: center;
    background: rgba(15, 23, 42, .46);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.legadoqr-interest-overlay.legadoqr-interest-hidden {
    display: none;
}

.legadoqr-interest-modal {
    box-shadow: 0 26px 70px rgba(18, 24, 32, .28);
    margin: 0;
    max-height: calc(100vh - 48px);
    overflow: auto;
    position: relative;
    width: min(720px, 100%);
}

.legadoqr-interest-close {
    align-items: center;
    background: #111 !important;
    border-radius: 50% !important;
    color: #fff !important;
    display: inline-flex;
    font-size: 22px !important;
    height: 38px;
    justify-content: center;
    min-height: 38px !important;
    padding: 0 !important;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.legadoqr-selected-plan {
    background: #f2fbf6;
    border: 1px solid var(--legadoqr-plan-accent);
    border-radius: 6px;
    color: #14305d;
    font-weight: 800;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.legadoqr-interest-form h3 {
    color: #14305d;
    padding-right: 48px;
    margin-top: 0;
}

.legadoqr-interest-form form {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legadoqr-interest-form label {
    display: grid;
    gap: 8px;
}

.legadoqr-interest-form input,
.legadoqr-interest-form select,
.legadoqr-interest-form textarea {
    border: 1px solid #d8d1c7;
    border-radius: 6px;
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.legadoqr-interest-wide,
.legadoqr-interest-form button {
    grid-column: 1 / -1;
}

.legadoqr-interest-notice {
    background: #e7f6ed;
    border: 1px solid #8ccba6;
    border-radius: 6px;
    color: #0f6b37;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.legadoqr-interest-error {
    background: #fff4e5;
    border-color: #f0b44c;
    color: #8a5600;
}

.legadoqr-public-empty {
    margin: 40px auto;
    max-width: 980px;
    padding: 0 20px;
}

@media (max-width: 720px) {
    .legadoqr-interest-overlay {
        align-items: flex-start;
        padding: 14px;
    }

    .legadoqr-interest-modal {
        max-height: calc(100vh - 28px);
        padding: 24px;
    }

    .legadoqr-interest-form form {
        grid-template-columns: 1fr;
    }

    .legadoqr-plan-card {
        padding: 24px;
    }
}

/* LegadoQR v0.9.32: privacidad familiar ordenada y responsive */
.legadoqr-family-privacy-card {
    scroll-margin-top: 24px;
}

.legadoqr-family-section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.legadoqr-family-section-heading h4 {
    margin-bottom: 6px;
}

.legadoqr-family-section-heading .legadoqr-family-help {
    margin: 0;
}

.legadoqr-family-privacy-form {
    align-items: end;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    margin-top: 8px;
}

.legadoqr-family-privacy-form select,
.legadoqr-family-privacy-form input[type="text"] {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.legadoqr-family-privacy-form .legadoqr-family-form-actions {
    grid-column: auto;
    justify-content: flex-start;
}

.legadoqr-family-privacy-form .legadoqr-family-form-actions button {
    min-width: 190px;
    width: auto;
}

.legadoqr-family-invite-box {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
}

.legadoqr-family-invite-box label {
    display: grid;
    gap: 6px;
}

.legadoqr-family-invite-box label span {
    font-weight: 800;
}

.legadoqr-family-invite-box textarea {
    border: 1px solid #cfc7ba;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 88px;
    padding: 10px;
    resize: vertical;
    width: 100%;
}

.legadoqr-family-secondary-link {
    background: #fff;
    color: #171717;
}

.legadoqr-family-private-login-page {
    margin: 0 auto;
    max-width: 980px;
    padding: 42px 18px 72px;
}

.legadoqr-family-private-login {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    min-height: 55vh;
}

.legadoqr-family-private-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.legadoqr-family-private-copy p {
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.45;
    margin: 0 0 12px;
}

.legadoqr-family-password-card {
    margin: 0;
    max-width: 420px;
}

.legadoqr-family-password-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .legadoqr-family-privacy-form {
        grid-template-columns: 1fr 1fr;
    }

    .legadoqr-family-privacy-form .legadoqr-family-form-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .legadoqr-family-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .legadoqr-family-privacy-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-privacy-form .legadoqr-family-form-actions button,
    .legadoqr-family-invite-box .legadoqr-family-public-link {
        width: 100%;
    }

    .legadoqr-family-private-login {
        grid-template-columns: 1fr;
        min-height: auto;
        text-align: center;
    }

    .legadoqr-family-password-card {
        justify-self: center;
    }
}

/* LegadoQR v0.9.34: privacidad + invitaciones editables */
.legadoqr-family-privacy-card {
    padding: 22px;
}

.legadoqr-family-privacy-grid,
.legadoqr-family-invite-preview-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
}

.legadoqr-family-privacy-box {
    background: #fff;
    border: 1px solid #e3dccf;
    border-radius: 12px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.legadoqr-family-privacy-box h5 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.legadoqr-family-mini-help {
    color: #6b6258;
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.legadoqr-family-mini-help code {
    background: #f5efe4;
    border-radius: 4px;
    display: inline-block;
    margin: 2px 1px;
    padding: 2px 5px;
}

.legadoqr-family-privacy-form {
    display: block;
    margin-top: 14px;
}

.legadoqr-family-privacy-form label,
.legadoqr-family-invite-box label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.legadoqr-family-privacy-form label span,
.legadoqr-family-invite-box label span {
    font-weight: 800;
}

.legadoqr-family-privacy-form select,
.legadoqr-family-privacy-form input[type="text"],
.legadoqr-family-privacy-form textarea,
.legadoqr-family-invite-box textarea {
    border: 1px solid #cfc7ba;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.45;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.legadoqr-family-privacy-form textarea,
.legadoqr-family-invite-box textarea {
    min-height: 150px;
    resize: vertical;
    white-space: pre-wrap;
}

.legadoqr-family-privacy-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.legadoqr-family-privacy-save button {
    max-width: 360px;
    width: 100%;
}

.legadoqr-family-invite-box {
    margin-top: 18px;
    padding: 18px;
}

.legadoqr-family-invite-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legadoqr-family-invite-actions a,
.legadoqr-family-invite-actions button {
    align-items: center;
    border-radius: 8px;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    text-align: center;
}

.legadoqr-family-private-login-page {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 32px 18px;
}

.legadoqr-family-private-login {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
    max-width: 1020px;
    width: 100%;
}

.legadoqr-family-private-copy h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 0 0 12px;
}

.legadoqr-family-private-copy p {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0;
}

.legadoqr-family-password-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0,0,0,.08);
    box-sizing: border-box;
    padding: 26px;
    width: 100%;
}

@media (max-width: 900px) {
    .legadoqr-family-privacy-grid,
    .legadoqr-family-invite-preview-grid,
    .legadoqr-family-private-login {
        grid-template-columns: 1fr;
    }

    .legadoqr-family-privacy-save {
        justify-content: stretch;
    }

    .legadoqr-family-privacy-save button {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .legadoqr-family-privacy-card {
        padding: 16px;
    }

    .legadoqr-family-privacy-box,
    .legadoqr-family-invite-box,
    .legadoqr-family-password-card {
        padding: 14px;
    }

    .legadoqr-family-invite-actions a,
    .legadoqr-family-invite-actions button {
        width: 100%;
    }

    .legadoqr-family-private-login-page {
        min-height: auto;
        padding: 22px 12px;
    }

    .legadoqr-family-private-login {
        gap: 16px;
        text-align: center;
    }
}

/* v0.9.43 - Formulario de interés mejorado */
.legadoqr-interest-page {
    align-items: flex-start;
    background: transparent;
    bottom: auto;
    display: block;
    justify-content: initial;
    left: auto;
    padding: 86px 20px 56px;
    position: relative;
    right: auto;
    top: auto;
    z-index: 1;
}

.legadoqr-interest-inline {
    box-shadow: 0 18px 50px rgba(18, 24, 32, .08);
    margin: 0 auto;
    max-width: 940px;
}

.legadoqr-interest-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 72px 24px 32px;
}

.legadoqr-interest-form h3 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.1;
    margin-bottom: 22px;
}

.legadoqr-interest-form label span {
    color: #1f2937;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.1;
}

.legadoqr-interest-form input,
.legadoqr-interest-form select,
.legadoqr-interest-form textarea {
    font-size: clamp(16px, 1.7vw, 22px);
    min-height: 58px;
}

.legadoqr-interest-form textarea {
    min-height: 138px;
}

.legadoqr-interest-form button[type="submit"] {
    font-size: 20px;
    margin-top: 8px;
    min-height: 60px;
    width: 100%;
}

.legadoqr-interest-success {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 28px 10px 20px;
    text-align: center;
}

.legadoqr-interest-success-icon {
    align-items: center;
    background: #e7f6ed;
    border: 2px solid #8ccba6;
    border-radius: 50%;
    color: #0f6b37;
    display: inline-flex;
    font-size: 38px;
    font-weight: 900;
    height: 74px;
    justify-content: center;
    margin-bottom: 18px;
    width: 74px;
}

.legadoqr-interest-success h3 {
    margin: 0 0 12px;
    padding: 0;
}

.legadoqr-interest-success p {
    color: #4b5563;
    font-size: 20px;
    line-height: 1.45;
    margin: 6px 0;
    max-width: 680px;
}

.legadoqr-interest-success-button {
    background: var(--legadoqr-plan-button);
    border-radius: 999px;
    color: var(--legadoqr-plan-button-text);
    display: inline-flex;
    font-weight: 800;
    margin-top: 22px;
    padding: 14px 34px;
    text-decoration: none;
}

.legadoqr-interest-success-button:hover {
    color: var(--legadoqr-plan-button-text);
}

@media (max-width: 720px) {
    .legadoqr-interest-page {
        padding: 32px 12px 36px;
    }

    .legadoqr-interest-form {
        border-radius: 12px;
        padding: 22px;
    }

    .legadoqr-interest-form h3 {
        padding-right: 0;
    }

    .legadoqr-interest-form label span {
        font-size: 18px;
    }

    .legadoqr-interest-form input,
    .legadoqr-interest-form select,
    .legadoqr-interest-form textarea {
        font-size: 17px;
        min-height: 52px;
    }
}


/* v0.9.46 - Ajustes formulario de interés y edición de memorial */
.legadoqr-interest-inline {
    max-width: 1120px;
    width: min(1120px, calc(100vw - 40px));
}

.legadoqr-interest-form {
    padding: 34px 42px;
}

.legadoqr-interest-form form {
    column-gap: 28px;
    row-gap: 20px;
}

.legadoqr-interest-deceased span {
    white-space: nowrap;
}

.legadoqr-interest-deceased input {
    max-width: 100%;
}

.legadoqr-family-date-row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    width: 100%;
}

.legadoqr-family-date-row label {
    display: grid;
    gap: 8px;
}

.legadoqr-family-date-row input {
    width: 100%;
}

.legadoqr-family-memorial-photo-form {
    align-items: end;
}

.legadoqr-family-memorial-photo-form label {
    min-width: 0;
}

.legadoqr-family-memorial-photo-form input[type="file"] {
    max-width: 100%;
}

@media (max-width: 900px) {
    .legadoqr-interest-inline {
        width: min(100%, calc(100vw - 24px));
    }

    .legadoqr-interest-form {
        padding: 24px;
    }

    .legadoqr-interest-form form,
    .legadoqr-family-date-row {
        grid-template-columns: 1fr;
    }

    .legadoqr-interest-deceased span {
        white-space: normal;
    }
}

/* v0.9.48 - Ajustes formulario responsive, panel cliente y avisos de peso */
.legadoqr-interest-page {
    display: flex;
    justify-content: center;
    padding: 64px 16px 56px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
.legadoqr-interest-inline {
    box-sizing: border-box;
    max-width: 900px;
    width: min(900px, 100%);
}
.legadoqr-interest-form {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow: hidden;
}
.legadoqr-interest-form form {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.legadoqr-interest-form label,
.legadoqr-interest-form input,
.legadoqr-interest-form select,
.legadoqr-interest-form textarea {
    box-sizing: border-box;
    min-width: 0;
}
.legadoqr-interest-form label span {
    font-size: clamp(17px, 1.55vw, 24px);
}
.legadoqr-interest-deceased span {
    white-space: nowrap;
}

.legadoqr-family-group-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legadoqr-family-view-action {
    background: #157f54 !important;
}
.legadoqr-family-group-info strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legadoqr-family-memorial-photo-panel {
    align-items: center;
    gap: 18px;
}
.legadoqr-family-memorial-photo-form {
    align-items: end;
    grid-template-columns: minmax(220px, 1fr) auto;
}
.legadoqr-family-memorial-photo-form .legadoqr-family-upload-note-wide {
    grid-column: 1 / -1;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #8a4b08;
    padding: 10px 12px;
}
.legadoqr-family-form button,
.legadoqr-family-memorial-photo-form button {
    white-space: normal;
}
.legadoqr-family-upload-note {
    max-width: 100%;
}

@media (max-width: 980px) {
    .legadoqr-family-memorial-photo-panel {
        grid-template-columns: 1fr;
    }
    .legadoqr-family-memorial-photo-form {
        grid-template-columns: 1fr;
    }
    .legadoqr-family-memorial-photo-form button {
        width: 100%;
    }
}
@media (max-width: 760px) {
    .legadoqr-interest-page {
        padding: 28px 12px 36px;
    }
    .legadoqr-interest-form {
        padding: 22px 18px;
    }
    .legadoqr-interest-form form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .legadoqr-interest-deceased span {
        white-space: normal;
    }
    .legadoqr-interest-form button[type="submit"] {
        min-height: 56px;
    }
    .legadoqr-family-group-actions {
        grid-template-columns: 1fr;
    }
    .legadoqr-family-form {
        grid-template-columns: 1fr;
    }
    .legadoqr-family-form button {
        width: 100%;
    }
}


/* v0.9.49 - ajustes de panel familiar y dashboard */
.legadoqr-family-upload-form,
.legadoqr-family-url-video-form {
    align-items: stretch;
    display: grid;
    gap: 10px 14px;
    grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr);
    margin: 18px 0 22px;
    max-width: 980px;
}
.legadoqr-family-upload-form label,
.legadoqr-family-url-video-form label {
    align-self: start;
}
.legadoqr-family-upload-form label span,
.legadoqr-family-url-video-form label span {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 8px;
}
.legadoqr-family-upload-form input[type="file"],
.legadoqr-family-url-video-form input[type="url"] {
    min-height: 48px;
}
.legadoqr-family-upload-form .legadoqr-family-upload-note,
.legadoqr-family-url-video-form .legadoqr-family-upload-note {
    align-self: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    box-sizing: border-box;
    color: #8a4b08;
    display: block;
    padding: 10px 12px;
}
.legadoqr-family-upload-form button,
.legadoqr-family-url-video-form button {
    grid-column: 1 / 2;
    justify-self: stretch;
    min-height: 52px;
    width: 100%;
}
.legadoqr-dashboard-client-details summary {
    cursor: pointer;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}
.legadoqr-dashboard-client-details summary span {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.legadoqr-dashboard-client-details ul {
    margin: 10px 0 0;
    padding-left: 0;
}
.legadoqr-dashboard-client-details li {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    list-style: none;
    padding: 8px 0;
}
@media (max-width: 780px) {
    .legadoqr-family-upload-form,
    .legadoqr-family-url-video-form {
        grid-template-columns: 1fr;
    }
    .legadoqr-family-upload-form button,
    .legadoqr-family-url-video-form button {
        grid-column: auto;
    }
    .legadoqr-dashboard-client-details li {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v0.9.50 - Fix scroll del modal de solicitud de plan */
.legadoqr-interest-modal-overlay {
    align-items: flex-start !important;
    bottom: 0;
    left: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 48px 24px 48px !important;
    position: fixed;
    right: 0;
    top: 0;
}
.legadoqr-interest-modal {
    margin: 0 auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: min(1120px, calc(100vw - 48px)) !important;
}
.legadoqr-interest-modal .legadoqr-interest-close {
    position: sticky;
    float: right;
    top: 12px;
    z-index: 2;
}
@media (max-width: 760px) {
    .legadoqr-interest-modal-overlay {
        padding: 18px 10px 34px !important;
    }
    .legadoqr-interest-modal {
        width: min(100%, calc(100vw - 20px)) !important;
    }
    .legadoqr-interest-modal .legadoqr-interest-close {
        height: 42px;
        min-height: 42px !important;
        width: 42px;
    }
}

/* ==========================================
   LegadoQR - mayúsculas automáticas en formularios
   No afecta correos, contraseñas ni URLs.
========================================== */
.legadoqr-interest-form input[type="text"],
.legadoqr-interest-form textarea,
.legadoqr-family-form input[type="text"],
.legadoqr-family-form textarea,
.legadoqr-public-message-form input[type="text"],
.legadoqr-public-message-form textarea,
.memorias-qr-field input[type="text"],
.memorias-qr-field textarea {
    text-transform: uppercase;
}


/* Campo anti-spam oculto */
.legadoqr-hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* v0.9.57 - Tutorial guiado interactivo del panel familiar */
.legadoqr-onboarding-card {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 16px;
}
.legadoqr-onboarding-card strong,
.legadoqr-help-center strong {
    color: #0f172a;
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}
.legadoqr-onboarding-card span,
.legadoqr-help-center small {
    color: #64748b;
    display: block;
    font-size: 13px;
}
.legadoqr-onboarding-start,
.legadoqr-help-actions button {
    background: #2563eb;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 11px 16px;
    white-space: nowrap;
}
.legadoqr-help-center {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin: 16px 0;
    padding: 16px;
}
.legadoqr-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 8px;
}
.legadoqr-help-actions button {
    background: #0f172a;
    font-size: 13px;
    padding: 9px 12px;
}
.legadoqr-help-actions button:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}
.legadoqr-tour-overlay {
    background: rgba(15, 23, 42, 0.56);
    bottom: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .18s ease;
    z-index: 99990;
}
.legadoqr-tour-overlay.legadoqr-tour-active {
    opacity: 1;
    pointer-events: auto;
}
.legadoqr-tour-highlight {
    border: 3px solid #f59e0b !important;
    border-radius: 12px !important;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.26), 0 18px 40px rgba(15, 23, 42, 0.28) !important;
    position: relative !important;
    z-index: 99992 !important;
}
.legadoqr-tour-popover {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    color: #0f172a;
    max-width: 360px;
    padding: 18px;
    position: fixed;
    width: calc(100vw - 32px);
    z-index: 99993;
}

body.legadoqr-tour-is-running .legadoqr-tour-floating-help {
    display: none !important;
}

.legadoqr-tour-popover h3 {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.legadoqr-tour-popover p {
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 14px;
}
.legadoqr-tour-count {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.legadoqr-tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.legadoqr-tour-actions button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    padding: 10px 14px;
}
.legadoqr-tour-prev,
.legadoqr-tour-skip {
    background: #e2e8f0;
    color: #334155;
}
.legadoqr-tour-next,
.legadoqr-tour-start,
.legadoqr-tour-done {
    background: #2563eb;
    color: #fff;
}
.legadoqr-tour-floating-help {
    align-items: center;
    background: #0f172a;
    border: 0;
    border-radius: 999px;
    bottom: 86px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .28);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 8px;
    padding: 12px 16px;
    position: fixed;
    right: 18px;
    z-index: 99980;
}
@media (max-width: 760px) {
    .legadoqr-onboarding-card {
        align-items: stretch;
        flex-direction: column;
    }
    .legadoqr-onboarding-start,
    .legadoqr-help-actions button {
        width: 100%;
    }
    .legadoqr-tour-popover {
        bottom: 14px !important;
        left: 14px !important;
        max-width: none;
        right: 14px !important;
        top: auto !important;
        width: auto;
    }
    .legadoqr-tour-floating-help {
        bottom: 84px;
        right: 12px;
    }
}

/* v0.9.58 - Academia LegadoQR */
.legadoqr-academia-progress {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin: 14px 0 16px;
    padding: 16px;
}
.legadoqr-academia-progress > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.legadoqr-academia-progress strong {
    color: #0f172a;
    font-size: 15px;
}
.legadoqr-academia-progress [data-legadoqr-progress-percent] {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 800;
    padding: 5px 10px;
}
.legadoqr-academia-progress-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}
.legadoqr-academia-progress-track span {
    background: linear-gradient(90deg, #2563eb, #22c55e);
    display: block;
    height: 100%;
    transition: width .25s ease;
}
.legadoqr-academia-progress small {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-top: 8px;
}
.legadoqr-academia-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}
.legadoqr-academia-list > div {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto auto;
    padding: 12px;
}
.legadoqr-academia-list span {
    color: #0f172a;
    font-weight: 800;
}
.legadoqr-academia-list em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}
.legadoqr-academia-list em.is-done {
    color: #15803d;
}
.legadoqr-academia-list button {
    background: #0f172a;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 12px;
}
.legadoqr-academia-list button:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}
@media (max-width: 760px) {
    .legadoqr-academia-list > div {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
    .legadoqr-academia-list button {
        width: 100%;
    }
}

/* v0.9.61 RC - Academia arriba y tour sin bloqueo */
.legadoqr-family-academia-top {
    margin: 18px 0 22px;
}
.legadoqr-academia-principal {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    padding: 4px;
}
.legadoqr-academia-principal > summary {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    padding: 14px 16px;
}
.legadoqr-tour-overlay.legadoqr-tour-active {
    pointer-events: none;
}
.legadoqr-tour-popover {
    pointer-events: auto;
}
.legadoqr-tour-highlight,
.legadoqr-tour-highlight * {
    pointer-events: auto !important;
}
.legadoqr-tour-floating-help {
    bottom: 24px;
    left: 18px;
    right: auto;
}
.legadoqr-academia-progress small[data-legadoqr-progress-steps] {
    color: #1d4ed8;
    font-weight: 800;
}
@media (max-width: 760px) {
    .legadoqr-family-academia-top {
        margin: 14px 0 18px;
    }
    .legadoqr-tour-floating-help {
        bottom: 14px;
        left: 12px;
        right: auto;
    }
}

/* v0.9.62 RC - Academia conversacional */
.legadoqr-tour-body {
    color: #475569;
    font-size: 14px;
    line-height: 1.48;
    margin: 0 0 14px;
}
.legadoqr-tour-body p {
    margin: 0 0 10px;
}
.legadoqr-tour-body ol,
.legadoqr-tour-body ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}
.legadoqr-tour-body li {
    margin: 4px 0;
}
.legadoqr-tour-body strong {
    color: #0f172a;
}
.legadoqr-tour-popover {
    max-width: 430px;
}
@media (max-width: 760px) {
    .legadoqr-tour-body {
        font-size: 13px;
        max-height: 42vh;
        overflow: auto;
    }
}

.legadoqr-interest-warning{background:#fff8e5;border:1px solid #f0c36d;color:#5f4300;padding:14px 16px;border-radius:12px;margin:12px 0;}

/* v0.9.69 RC - Fase B Academia LegadoQR */
.legadoqr-academia-message {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e3a8a;
    font-weight: 700;
    margin: 12px 0 0;
    padding: 10px 12px;
}
.legadoqr-academia-next-task {
    align-items: flex-start;
    background: linear-gradient(135deg, #fff7ed, #fffaf0);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 14px 0;
    padding: 14px 16px;
}
.legadoqr-academia-next-task span {
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.legadoqr-academia-next-task strong {
    color: #431407;
    font-size: 17px;
}
.legadoqr-academia-diagnostic {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 16px;
}
.legadoqr-diagnostic-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
}
.legadoqr-diagnostic-item span {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 22px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    width: 22px;
}
.legadoqr-diagnostic-item.is-done span {
    background: #dcfce7;
    color: #166534;
}
.legadoqr-diagnostic-item.is-pending span {
    background: #fee2e2;
    color: #991b1b;
}
.legadoqr-diagnostic-item strong {
    color: #0f172a;
    font-size: 13px;
}
.legadoqr-tour-popover-visible,
.legadoqr-tour-popover {
    background: #ffffff !important;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .38) !important;
    max-height: calc(100vh - 32px);
    overflow: auto;
    z-index: 2147483000 !important;
}
.legadoqr-tour-overlay {
    z-index: 2147482990 !important;
}
.legadoqr-tour-highlight {
    z-index: 2147482995 !important;
}
.legadoqr-tour-mini-progress {
    background: #e2e8f0;
    border-radius: 999px;
    height: 8px;
    margin: 10px 0 14px;
    overflow: hidden;
}
.legadoqr-tour-mini-progress span {
    background: linear-gradient(90deg, #2563eb, #22c55e);
    display: block;
    height: 100%;
}
.legadoqr-tour-body ol,
.legadoqr-tour-body ul {
    padding-left: 20px;
}
.legadoqr-tour-body li {
    margin-bottom: 6px;
}
@media (max-width: 760px) {
    .legadoqr-academia-diagnostic {
        grid-template-columns: 1fr;
    }
    .legadoqr-tour-popover-visible,
    .legadoqr-tour-popover {
        max-height: 55vh;
    }
}

/* v0.9.78 - Academia por plan */
.legadoqr-academia-plan-card span b { color: #0f766e; }
.legadoqr-academia-by-plan .legadoqr-academia-plan-summary {
    margin: 8px 0 12px;
    color: #475569;
    font-size: 13px;
}
.legadoqr-academia-tutorial-row span small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}
.legadoqr-academia-tutorial-row.is-locked {
    background: #f8fafc;
    border-style: dashed;
    opacity: .92;
}
.legadoqr-academia-tutorial-row.is-locked > span {
    color: #64748b;
}
.legadoqr-academia-tutorial-row.is-new-unlocked {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
    background: #fffbeb;
}
.legadoqr-academia-unlocked {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ecfeff;
    border: 1px solid #67e8f9;
    color: #155e75;
}
.legadoqr-academia-unlocked p { margin: 4px 0 0; }

/* v0.9.84 - Academia responsive: modal con zona segura estricta */
.legadoqr-tour-popover.legadoqr-tour-popover-bottom-sheet {
    border-radius: 18px 18px 14px 14px;
    max-height: min(42vh, 360px) !important;
    overflow: auto;
    position: fixed !important;
}

.legadoqr-tour-popover.legadoqr-tour-popover-side,
.legadoqr-tour-popover.legadoqr-tour-popover-below,
.legadoqr-tour-popover.legadoqr-tour-popover-above {
    max-height: calc(100vh - 36px) !important;
    overflow: auto;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    body.legadoqr-tour-is-running {
        scroll-padding-bottom: 48vh;
    }
    .legadoqr-tour-popover-visible,
    .legadoqr-tour-popover,
    .legadoqr-tour-popover.legadoqr-tour-popover-bottom-sheet {
        bottom: 12px !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        max-height: 42vh !important;
        overflow: auto !important;
        border-radius: 18px 18px 14px 14px;
    }
    .legadoqr-tour-popover h3 {
        font-size: 16px;
    }
    .legadoqr-tour-popover p,
    .legadoqr-tour-popover li {
        font-size: 13px;
    }
    .legadoqr-tour-actions {
        position: sticky;
        bottom: -18px;
        background: #ffffff;
        padding-top: 8px;
    }
}

@media (min-width: 901px) {
    .legadoqr-tour-popover.legadoqr-tour-popover-bottom-sheet {
        left: 50% !important;
        right: auto !important;
        bottom: 18px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: min(560px, calc(100vw - 32px)) !important;
        max-width: min(560px, calc(100vw - 32px)) !important;
        max-height: 38vh !important;
    }
}

/* v0.9.85 RC - Plan por invitación */
.legadoqr-invited-plan-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 18px 20px;
    margin: 8px 0 4px;
    box-shadow: 0 12px 26px rgba(21, 128, 61, 0.10);
    color: #14532d;
}
.legadoqr-invited-plan-kicker {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    margin-bottom: 8px;
}
.legadoqr-invited-plan-name {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #0f5132;
}
.legadoqr-invited-plan-card p {
    margin: 0;
    color: #166534;
    font-size: 15px;
}
@media (max-width: 640px) {
    .legadoqr-invited-plan-card {
        padding: 16px;
        border-radius: 16px;
    }
}


/* Panel Empresa MVP */
.legadoqr-company-panel{display:grid;gap:24px;margin:0 auto;max-width:1180px;width:100%}.legadoqr-company-hero{background:linear-gradient(135deg,#083c3a,#0f766e);border-radius:26px;color:#fff;padding:28px;box-shadow:0 18px 45px rgba(15,118,110,.22)}.legadoqr-company-identity{align-items:center;display:flex;gap:20px}.legadoqr-company-logo,.legadoqr-company-logo-placeholder{background:#fff;border-radius:22px;box-shadow:0 10px 25px rgba(0,0,0,.12);height:88px;object-fit:contain;padding:10px;width:88px}.legadoqr-company-logo-placeholder{align-items:center;color:#0f766e;display:flex;font-size:42px;justify-content:center}.legadoqr-company-kicker{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);border-radius:999px;display:inline-flex;font-size:12px;font-weight:700;margin-bottom:8px;padding:6px 12px;text-transform:uppercase}.legadoqr-company-hero h2{color:#fff;font-size:32px;line-height:1.15;margin:0 0 8px}.legadoqr-company-hero p{color:rgba(255,255,255,.9);font-size:16px;margin:0 0 10px}.legadoqr-company-type{background:#e6fffa;border-radius:999px;color:#0f766e;display:inline-flex;padding:6px 12px}.legadoqr-company-menu{background:#fff;border:1px solid #dbeafe;border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.08);display:flex;flex-wrap:wrap;gap:10px;padding:14px}.legadoqr-company-menu a{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;color:#0f172a;font-weight:700;padding:10px 12px;text-decoration:none}.legadoqr-company-menu a:hover{background:#ecfeff;border-color:#67e8f9;color:#0e7490}.legadoqr-company-cards{display:grid;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr))}.legadoqr-company-cards>div{background:#fff;border:1px solid #dbeafe;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.08);padding:22px}.legadoqr-company-cards strong{color:#0f766e;display:block;font-size:34px;line-height:1}.legadoqr-company-cards span{color:#475569;display:block;font-size:14px;margin-top:8px}.legadoqr-company-grid{display:grid;gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.legadoqr-company-box{background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.06);padding:22px}.legadoqr-company-box h3{color:#0f172a;font-size:20px;margin:0 0 10px}.legadoqr-company-box p{color:#475569;margin:0 0 14px}.legadoqr-company-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;color:#64748b;padding:16px}.legadoqr-company-table-wrap{overflow:auto}.legadoqr-company-table{border-collapse:collapse;width:100%}.legadoqr-company-table th,.legadoqr-company-table td{border-bottom:1px solid #e2e8f0;padding:10px;text-align:left}.legadoqr-company-table th{color:#334155;font-size:13px;text-transform:uppercase}.legadoqr-company-badges{display:flex;flex-wrap:wrap;gap:8px}.legadoqr-company-badges span{background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;color:#0e7490;font-weight:700;padding:7px 10px}.legadoqr-company-list{display:grid;gap:8px;list-style:none;margin:0;padding:0}.legadoqr-company-list li{background:#f8fafc;border-radius:14px;padding:10px 12px}.legadoqr-company-list small{color:#0f766e;font-weight:700;margin-left:6px}.legadoqr-company-config{display:grid;gap:10px;margin:0}.legadoqr-company-config div{background:#f8fafc;border-radius:14px;padding:12px}.legadoqr-company-config dt{color:#64748b;font-size:12px;font-weight:700;text-transform:uppercase}.legadoqr-company-config dd{color:#0f172a;font-weight:700;margin:4px 0 0}.legadoqr-muted{color:#64748b!important;font-size:14px}@media (max-width:900px){.legadoqr-company-cards,.legadoqr-company-grid{grid-template-columns:1fr 1fr}.legadoqr-company-identity{align-items:flex-start;flex-direction:column}.legadoqr-company-hero h2{font-size:26px}}@media (max-width:640px){.legadoqr-company-cards,.legadoqr-company-grid{grid-template-columns:1fr}.legadoqr-company-menu{display:grid}.legadoqr-company-hero{padding:22px}.legadoqr-company-logo,.legadoqr-company-logo-placeholder{height:72px;width:72px}.legadoqr-company-hero h2{font-size:24px}}

/* v0.9.88 - Panel Empresa demo */
.legadoqr-company-demo-note{margin:18px 0;padding:16px 18px;border:1px solid rgba(20,100,90,.18);background:#f0fdfa;border-radius:18px;color:#134e4a}
.legadoqr-company-demo-note strong{display:block;font-size:18px;margin-bottom:6px}
.legadoqr-company-demo-note p{margin:0;color:#47636b}
.legadoqr-company-plan-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:12px 0}
.legadoqr-company-plan-card{padding:14px;border-radius:16px;background:#f8fafc;border:1px solid #dfe8f1}
.legadoqr-company-plan-card strong{display:block;font-size:18px;color:#0f172a;margin-bottom:6px}
.legadoqr-company-plan-card p{margin:0 0 8px;color:#52667a}
.legadoqr-company-plan-card small{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e8f7ef;color:#0f7a44;font-weight:700}
.legadoqr-company-academy{border:1px solid #99f6e4;background:linear-gradient(180deg,#f0fdfa,#fff)}
.legadoqr-company-academy .legadoqr-company-kicker{background:#ccfbf1;border-color:#5eead4;color:#0f766e}
.legadoqr-company-academy-head h3{font-size:24px;margin:0 0 10px;color:#0f172a}
.legadoqr-company-academy-steps{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
.legadoqr-company-academy-steps>div{background:#fff;border:1px solid #dbeafe;border-radius:18px;box-shadow:0 8px 20px rgba(15,23,42,.05);padding:16px}
.legadoqr-company-academy-steps strong{color:#0f766e;display:block;margin-bottom:6px}
.legadoqr-company-academy-steps span{color:#475569;display:block;font-size:14px;line-height:1.4}
.legadoqr-company-academy-note{background:#ecfeff;border:1px solid #a5f3fc;border-radius:16px;color:#0e7490;font-weight:700;margin-top:16px;padding:14px}
@media (max-width:900px){.legadoqr-company-academy-steps{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.legadoqr-company-academy-steps{grid-template-columns:1fr}}

/* LegadoQR v0.9.90 - Panel Empresa: Familias */
.legadoqr-company-new-family{background:#f8fafc;border:1px solid #dbeafe;border-radius:18px;margin:14px 0 18px;padding:14px}
.legadoqr-company-new-family summary{cursor:pointer;font-weight:800;color:#0f766e;margin-bottom:12px}
.legadoqr-company-family-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.legadoqr-company-family-form label{display:grid;gap:6px;color:#334155;font-weight:700}
.legadoqr-company-family-form input,.legadoqr-company-family-form select,.legadoqr-company-family-form textarea{border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;width:100%}
.legadoqr-company-form-wide,.legadoqr-company-form-actions{grid-column:1/-1}
.legadoqr-company-form-actions button{background:#0f766e;border:0;border-radius:999px;color:#fff;cursor:pointer;font-weight:800;padding:12px 18px}
.legadoqr-company-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:220px}
.legadoqr-company-actions a{background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;color:#0e7490;font-size:12px;font-weight:800;padding:6px 9px;text-decoration:none;white-space:nowrap}
@media (max-width:700px){.legadoqr-company-family-form{grid-template-columns:1fr}.legadoqr-company-actions{min-width:0}}

/* v0.9.91 - Ajustes pre-demo empresa: formularios claros y botones visibles */
.legadoqr-company-family-form{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:18px !important;
  margin-top:16px !important;
  background:#f8fafc !important;
  border:1px solid #e2e8f0 !important;
  border-radius:18px !important;
  padding:18px !important;
}
.legadoqr-company-family-form label{
  display:grid !important;
  gap:8px !important;
  margin:0 !important;
  color:#334155 !important;
  font-weight:800 !important;
}
.legadoqr-company-family-form label span{
  display:block !important;
  margin:0 0 2px !important;
  color:#0f172a !important;
  font-size:14px !important;
  line-height:1.35 !important;
}
.legadoqr-company-family-form input,
.legadoqr-company-family-form select,
.legadoqr-company-family-form textarea{
  background:#fff !important;
  border:1px solid #cbd5e1 !important;
  border-radius:14px !important;
  box-sizing:border-box !important;
  min-height:46px !important;
  padding:12px 14px !important;
  width:100% !important;
}
.legadoqr-company-form-wide{grid-column:auto !important;}
.legadoqr-company-form-actions{
  display:flex !important;
  justify-content:flex-start !important;
  margin-top:4px !important;
}
.legadoqr-company-form-actions button,
.legadoqr-family-form-actions button{
  border-radius:999px !important;
  min-height:46px !important;
  padding:12px 20px !important;
  white-space:normal !important;
}
.legadoqr-company-table-wrap{overflow-x:visible !important;}
.legadoqr-company-actions{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  min-width:0 !important;
}
.legadoqr-company-actions a{
  display:block !important;
  text-align:center !important;
  white-space:normal !important;
}
.legadoqr-family-create-memory h4::after{
  content:' - Datos principales primero';
  color:#64748b;
  font-size:13px;
  font-weight:700;
}
.legadoqr-family-create-form{
  display:grid !important;
  gap:16px !important;
}
.legadoqr-family-create-form label{
  margin:0 !important;
}
.legadoqr-family-create-form input,
.legadoqr-family-create-form textarea,
.legadoqr-family-create-form select{
  min-height:46px !important;
}
@media (max-width:780px){
  .legadoqr-company-table,
  .legadoqr-company-table thead,
  .legadoqr-company-table tbody,
  .legadoqr-company-table th,
  .legadoqr-company-table td,
  .legadoqr-company-table tr{display:block !important; width:100% !important;}
  .legadoqr-company-table thead{display:none !important;}
  .legadoqr-company-table tr{background:#fff;border:1px solid #e2e8f0;border-radius:16px;margin:0 0 14px;padding:12px;}
  .legadoqr-company-table td{border-bottom:0 !important;padding:8px 0 !important;}
  .legadoqr-company-actions{margin-top:8px;}
}

/* v0.9.96 RC - Academia Empresa siempre visible */
.legadoqr-company-academy-start{background:#0f766e;border:0;border-radius:999px;color:#fff;cursor:pointer;font-weight:800;margin-top:10px;padding:12px 18px;box-shadow:0 10px 24px rgba(15,118,110,.18)}
.legadoqr-company-academy-start:hover{background:#115e59}
.legadoqr-company-floating-help{width:auto;min-width:150px;padding-left:14px!important;padding-right:14px!important}
@media(max-width:640px){.legadoqr-company-floating-help{font-size:13px;min-width:130px}}

/* LegadoQR v0.9.98 - memorial público, QR y homenajes */
.legadoqr-biografia {
    white-space: pre-line;
}

.legadoqr-biografia p,
.legadoqr-biografia {
    line-height: 1.85;
}

.legadoqr-public-qr-card {
    border-top: 1px solid #e2dbcf;
    margin-top: 18px;
    padding-top: 18px;
}

.legadoqr-public-qr-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
}

.legadoqr-public-qr-card img {
    background: #fff;
    border: 1px solid #e2dbcf;
    border-radius: 10px;
    display: block;
    height: auto;
    margin: 0 auto 14px;
    max-width: 190px;
    padding: 10px;
    width: 100%;
}

.legadoqr-public-share-actions {
    display: grid;
    gap: 10px;
}

.legadoqr-public-share-actions a,
.memorias-qr-email,
.memorias-qr-copy,
.memorias-qr-download {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: none;
}

.memorias-qr-email,
.memorias-qr-copy,
.memorias-qr-download {
    background: #ffffff;
    border: 1px solid #cfc7ba;
    color: #16794c;
}

.legadoqr-message-intro {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.55;
    margin: -8px 0 22px;
    max-width: 780px;
}

.legadoqr-message-error {
    background: #fff4e5;
    border: 1px solid #f0bd72;
    border-radius: 8px;
    color: #7a3f00;
    padding: 12px 14px;
}

.legadoqr-message-file small {
    color: #5f6b7a;
    font-size: 13px;
    line-height: 1.45;
}

.legadoqr-approved-media {
    margin-bottom: 12px;
}

.legadoqr-approved-media img,
.legadoqr-approved-media video {
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 760px) {
    .legadoqr-message-form {
        grid-template-columns: 1fr;
    }

    .legadoqr-public-share-actions {
        grid-template-columns: 1fr;
    }
}

.legadoqr-message-status {
    border-radius: 12px;
    display: grid;
    gap: 6px;
    margin: 18px 0;
    padding: 14px 16px;
}

.legadoqr-message-status-ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.legadoqr-message-status-error {
    background: #fff4e5;
    border: 1px solid #f0bd72;
    color: #7a3f00;
}

.legadoqr-public-message-overlay {
    align-items: center;
    background: rgba(15, 23, 42, .62);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999999;
}

.legadoqr-public-message-overlay.is-visible {
    display: flex;
}

.legadoqr-public-message-modal {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0,0,0,.22);
    color: #0f172a;
    max-width: 560px;
    padding: 28px;
    text-align: center;
    width: min(94vw, 560px);
}

.legadoqr-public-message-modal h3 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
    margin: 0 0 12px;
}

.legadoqr-public-message-modal p {
    color: #475569;
    font-size: 18px;
    line-height: 1.55;
    margin: 0 0 20px;
}

.legadoqr-public-message-modal button {
    align-items: center;
    background: #0f172a;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
}

.legadoqr-public-message-spinner {
    animation: legadoqrSpin 1s linear infinite;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 999px;
    display: none;
    height: 46px;
    margin: 0 auto 18px;
    width: 46px;
}

.legadoqr-public-message-overlay.is-loading .legadoqr-public-message-spinner {
    display: block;
}

.legadoqr-public-message-overlay.is-ok .legadoqr-public-message-modal {
    border-top: 8px solid #10b981;
}

.legadoqr-public-message-overlay.is-error .legadoqr-public-message-modal {
    border-top: 8px solid #f59e0b;
}

@keyframes legadoqrSpin {
    to { transform: rotate(360deg); }
}

.legadoqr-family-message-media {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
}

.legadoqr-family-message-media img,
.legadoqr-family-message-media video {
    border-radius: 10px;
    display: block;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    width: 100%;
}

.legadoqr-family-message-media a {
    color: #00796b;
    font-weight: 800;
}

@media (max-width: 640px) {
    .legadoqr-public-message-modal {
        border-radius: 18px;
        max-height: 86vh;
        overflow: auto;
        padding: 22px 18px;
    }
}


/* LegadoQR v1.0 - mejoras de recuerdos publicos */
.legadoqr-messages > h2 {
    margin-bottom: 10px;
}

.legadoqr-message-intro {
    margin: 0 0 28px !important;
    max-width: 860px;
}

.legadoqr-approved-messages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 30px;
}

.legadoqr-approved-messages .legadoqr-approved-card {
    background: #f7f4ef;
    border: 1px solid #e2dbcf;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
}

.legadoqr-approved-media {
    appearance: none;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e2dbcf;
    cursor: zoom-in;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.legadoqr-approved-media img,
.legadoqr-approved-media video {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    display: block;
    height: 210px;
    max-height: none;
    object-fit: cover;
    width: 100%;
}

.legadoqr-approved-media span {
    background: rgba(10, 21, 39, 0.78);
    border-radius: 999px;
    bottom: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    left: 50%;
    opacity: 0;
    padding: 7px 12px;
    position: absolute;
    transform: translateX(-50%);
    transition: opacity .2s ease;
    white-space: nowrap;
}

.legadoqr-approved-media:hover span,
.legadoqr-approved-media:focus span {
    opacity: 1;
}

.legadoqr-approved-card p {
    font-size: 15px;
    line-height: 1.55;
    margin: 14px 16px 10px;
}

.legadoqr-approved-card strong {
    display: block;
    font-size: 14px;
    margin: 0 16px 16px;
}

.legadoqr-lightbox-overlay {
    align-items: center;
    background: rgba(10, 21, 39, 0.82);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 22px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999999;
}

.legadoqr-lightbox-overlay.is-visible {
    display: flex;
}

.legadoqr-lightbox-modal {
    max-height: 92vh;
    max-width: 960px;
    position: relative;
    width: min(960px, 96vw);
}

.legadoqr-lightbox-modal img,
.legadoqr-lightbox-modal video {
    background: #000000;
    border-radius: 14px;
    display: block;
    max-height: 88vh;
    object-fit: contain;
    width: 100%;
}

.legadoqr-lightbox-close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: #0a1527;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: -12px;
    top: -12px;
    width: 42px;
}

@media (max-width: 980px) {
    .legadoqr-approved-messages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .legadoqr-approved-messages {
        grid-template-columns: 1fr;
    }

    .legadoqr-approved-media img,
    .legadoqr-approved-media video {
        height: 220px;
    }
}

/* LegadoQR v1.0.01 - layout memorial publico: biografia, formulario + QR y recuerdos en 2 columnas */
.memorias-qr-content.legadoqr-biography-only {
    display: block;
}

.legadoqr-biography-only .memorias-qr-story {
    max-width: 860px;
}

.legadoqr-message-and-qr {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 310px;
    margin: 24px 0 34px;
}

.legadoqr-message-and-qr .legadoqr-message-form {
    margin: 0;
}

.legadoqr-message-qr-card {
    background: #ffffff;
    border: 1px solid #cfdde5;
    border-radius: 12px;
    margin: 0;
    padding: 24px;
    position: sticky;
    top: 22px;
}

.legadoqr-message-qr-card h3 {
    text-align: left;
}

.legadoqr-approved-section {
    margin-top: 34px;
}

.legadoqr-approved-section h3 {
    color: var(--legadoqr-text, #171717);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.legadoqr-approved-messages {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 0 34px !important;
}

.legadoqr-approved-messages .legadoqr-approved-card {
    border-radius: 14px !important;
    overflow: hidden !important;
}

.legadoqr-approved-media img,
.legadoqr-approved-media video {
    aspect-ratio: 16 / 10 !important;
    height: 240px !important;
    object-fit: cover !important;
}

.legadoqr-approved-audio-thumb {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: #eef7f4;
    color: #0f766e;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-height: 180px;
    width: 100%;
}

.legadoqr-lightbox-content audio {
    background: #ffffff;
    border-radius: 12px;
    display: block;
    margin: 60px auto;
    width: min(720px, 90vw);
}

@media (max-width: 980px) {
    .legadoqr-message-and-qr {
        grid-template-columns: 1fr;
    }

    .legadoqr-message-qr-card {
        position: static;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .legadoqr-approved-messages {
        grid-template-columns: 1fr !important;
    }

    .legadoqr-approved-media img,
    .legadoqr-approved-media video {
        height: 220px !important;
    }
}

/* LegadoQR v1.0.02 - orden final memorial publico */
.memorias-qr-content.legadoqr-biography-only {
    display: block !important;
    max-width: 1120px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.legadoqr-biography-only .memorias-qr-story,
.legadoqr-biography-only .legadoqr-biografia {
    max-width: 100% !important;
    width: 100% !important;
}

.legadoqr-biografia {
    white-space: pre-line;
    line-height: 1.9;
}

.legadoqr-resting-place-row {
    align-items: center;
    background: #fffaf2;
    border: 1px solid #e5d5bf;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    justify-content: flex-start;
    margin: 28px auto 34px;
    max-width: 1120px;
    padding: 18px 22px;
    width: 100%;
}

.legadoqr-resting-place-row strong {
    color: var(--legadoqr-text, #101827);
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 900;
}

.legadoqr-resting-place-row span {
    color: var(--legadoqr-muted, #496071);
    font-size: 18px;
    font-weight: 700;
}

.legadoqr-approved-section,
.legadoqr-memorial-media-section,
.legadoqr-messages,
.legadoqr-public-qr-final {
    max-width: 1120px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.legadoqr-approved-section h2,
.legadoqr-memorial-media-section h2,
.legadoqr-messages h2 {
    color: var(--legadoqr-text, #101827);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin: 0 0 18px;
}

.legadoqr-approved-messages,
.legadoqr-memorial-media-grid {
    display: grid !important;
    gap: 22px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin: 0 0 42px !important;
    width: 100% !important;
}

.legadoqr-approved-messages .legadoqr-approved-card,
.legadoqr-memorial-media-grid .legadoqr-approved-card {
    background: #fffaf2 !important;
    border: 1px solid #e2dbcf !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

.legadoqr-approved-media {
    appearance: none !important;
    background: #ffffff !important;
    border: 0 !important;
    cursor: zoom-in !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
}

.legadoqr-approved-media img,
.legadoqr-approved-media video,
.legadoqr-video-url-card iframe,
.legadoqr-video-url-card video {
    aspect-ratio: 16 / 10 !important;
    background: #000 !important;
    border-radius: 0 !important;
    display: block !important;
    height: 220px !important;
    max-height: none !important;
    object-fit: cover !important;
    width: 100% !important;
}

.legadoqr-approved-card p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin: 14px 16px 10px !important;
}

.legadoqr-approved-card strong {
    display: block !important;
    font-size: 14px !important;
    margin: 0 16px 16px !important;
}

.legadoqr-messages {
    margin-top: 36px !important;
}

.legadoqr-message-intro {
    margin: 8px 0 28px !important;
    max-width: 860px !important;
}

.legadoqr-message-form-full {
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
}

.legadoqr-message-form-full .legadoqr-message-wide {
    grid-column: 1 / -1 !important;
}

.legadoqr-public-qr-final {
    display: flex;
    justify-content: center;
    margin-top: 44px;
    margin-bottom: 36px;
}

.legadoqr-public-qr-final .legadoqr-public-qr-card {
    max-width: 420px;
    width: 100%;
}

.legadoqr-lightbox-overlay {
    align-items: center !important;
    background: rgba(10, 21, 39, 0.86) !important;
    bottom: 0 !important;
    display: none;
    justify-content: center !important;
    left: 0 !important;
    padding: 22px !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    z-index: 999999 !important;
}

.legadoqr-lightbox-overlay.is-visible {
    display: flex !important;
}

.legadoqr-lightbox-modal {
    max-height: 92vh !important;
    max-width: 980px !important;
    position: relative !important;
    width: min(980px, 96vw) !important;
}

.legadoqr-lightbox-modal img,
.legadoqr-lightbox-modal video {
    background: #000 !important;
    border-radius: 14px !important;
    display: block !important;
    max-height: 88vh !important;
    object-fit: contain !important;
    width: 100% !important;
}

@media (max-width: 980px) {
    .legadoqr-approved-messages,
    .legadoqr-memorial-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .legadoqr-message-form-full {
        grid-template-columns: 1fr !important;
    }

    .legadoqr-resting-place-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .legadoqr-approved-messages,
    .legadoqr-memorial-media-grid {
        grid-template-columns: 1fr !important;
    }

    .legadoqr-approved-media img,
    .legadoqr-approved-media video,
    .legadoqr-video-url-card iframe,
    .legadoqr-video-url-card video {
        height: 230px !important;
    }

    .legadoqr-public-qr-final {
        justify-content: stretch;
    }
}

/* v1.0.03 RC - Panel Familiar compacto */
.legadoqr-academia-smart-card{
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    margin:18px 0 20px;padding:18px 20px;border:1px solid #bde7db;border-radius:18px;
    background:linear-gradient(135deg,#f0fffb,#f8fbff);box-shadow:0 14px 32px rgba(20,80,80,.08);
}
.legadoqr-academia-smart-card small{display:block;color:#0f766e;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.legadoqr-academia-smart-card strong{display:block;font-size:1.18rem;color:#052033;margin-bottom:6px}
.legadoqr-academia-smart-card p{margin:0 0 8px;color:#526174;line-height:1.55}
.legadoqr-smart-pending{display:inline-flex;background:#fff8e8;border:1px solid #f1c777;color:#8a4b00;border-radius:999px;padding:6px 10px;font-size:.9rem;font-weight:700}
.legadoqr-smart-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:260px}
.legadoqr-smart-actions a{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:11px 16px;background:#087f67;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 8px 20px rgba(8,127,103,.18)}
.legadoqr-smart-actions a.legadoqr-smart-secondary{background:#eef4f8;color:#183044;box-shadow:none}
.legadoqr-panel-accordion-section{margin:18px 0;border:1px solid #cfe3ee;border-radius:16px;background:#fffaf4;overflow:hidden;box-shadow:0 10px 24px rgba(5,32,51,.04)}
.legadoqr-panel-accordion-header{width:100%;display:flex;align-items:center;gap:10px;padding:16px 18px;background:#f4fbff;border:0;border-bottom:1px solid #d7e7ef;color:#052033;text-align:left;cursor:pointer;font-size:1rem}
.legadoqr-panel-accordion-header strong{font-size:1.15rem}
.legadoqr-accordion-arrow{font-weight:900;color:#087f67;min-width:22px}
.legadoqr-panel-accordion-body{display:none;padding:18px}
.legadoqr-panel-accordion-section.is-open>.legadoqr-panel-accordion-body{display:block}
.legadoqr-family-messages-panel .legadoqr-family-messages-table{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
.legadoqr-family-message{height:100%;border:1px solid #d7e2ea;border-radius:14px;padding:12px;background:#fff;box-shadow:0 8px 18px rgba(5,32,51,.04)}
.legadoqr-family-message-media{background:#f5fbff;border:1px solid #d5e8f4;border-radius:12px;padding:8px;margin:8px 0}
.legadoqr-family-message-media img,.legadoqr-family-message-media video{width:100%;max-height:160px;object-fit:cover;border-radius:10px;display:block}
.legadoqr-family-message-media audio{width:100%}
.legadoqr-family-message-actions form{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.legadoqr-family-message-actions button{padding:7px 10px;border-radius:8px;font-size:.85rem}
.legadoqr-family-message-compact p{font-size:.9rem;line-height:1.45;max-height:4.4em;overflow:hidden}
@media (max-width:1100px){.legadoqr-family-messages-panel .legadoqr-family-messages-table{grid-template-columns:repeat(2,minmax(0,1fr));}.legadoqr-academia-smart-card{align-items:flex-start;flex-direction:column}.legadoqr-smart-actions{justify-content:flex-start;min-width:0}}
@media (max-width:640px){.legadoqr-family-messages-panel .legadoqr-family-messages-table{grid-template-columns:1fr}.legadoqr-panel-accordion-body{padding:14px}.legadoqr-smart-actions a{width:100%}}

/* v1.0.04 RC - Academia inteligente y guía de botones */
.legadoqr-academia-card-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.legadoqr-onboarding-secondary{background:#eef6fb!important;color:#0b5f75!important;border:1px solid #cce3ef!important}
.legadoqr-tour-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.legadoqr-tour-choice{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px 14px;border-radius:14px;background:#eef9f7;border:1px solid #b8e5df;color:#067367;font-weight:800;text-decoration:none;cursor:pointer;text-align:center}
.legadoqr-tour-choice:hover{filter:brightness(.97)}
.legadoqr-academia-smart-card{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:20px 0;padding:18px;border-radius:18px;background:#f8fcff;border:1px solid #cfe4f4;box-shadow:0 12px 28px rgba(5,32,51,.05)}
.legadoqr-academia-smart-card small{display:block;text-transform:uppercase;letter-spacing:.04em;color:#61708a;font-weight:800;margin-bottom:4px}
.legadoqr-academia-smart-card strong{display:block;font-size:1.15rem;color:#052033;margin-bottom:6px}
.legadoqr-academia-smart-card p{margin:0;color:#4e5d73;line-height:1.55}
.legadoqr-smart-pending{display:inline-block;margin-top:10px;padding:8px 10px;border-radius:10px;background:#fff8e9;color:#955b00;border:1px solid #ffd794;font-weight:700}
.legadoqr-smart-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:260px}
.legadoqr-smart-actions a{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;border-radius:12px;background:#0f866d;color:#fff;text-decoration:none;font-weight:800}
.legadoqr-smart-actions a.legadoqr-smart-secondary{background:#eef6fb;color:#0a5870;border:1px solid #cce3ef}
@media(max-width:700px){.legadoqr-tour-choice-grid{grid-template-columns:1fr}.legadoqr-academia-card-actions{justify-content:flex-start}.legadoqr-academia-smart-card{flex-direction:column;align-items:flex-start}.legadoqr-smart-actions{min-width:0;width:100%}.legadoqr-smart-actions a{width:100%}}

/* LegadoQR v1.0.10 - Boton Inicio siempre clickable */
.legadoqr-family-top-button{
    z-index: 999999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
