* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --text: #18202a;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #b42318;
    --danger-bg: #fff5f4;
    --success: #087443;
    --success-bg: #ecfdf3;
    --warning: #98620a;
    --warning-bg: #fff8e7;
    --radius: 18px;
    --shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .2);
    outline-offset: 2px;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--primary);
    font-size: .94rem;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 34px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    color: #475467;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.nav-item.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 750;
}

.nav-item:disabled {
    opacity: .48;
    cursor: default;
}

.nav-icon {
    width: 18px;
    text-align: center;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 10px;
}

.small-label {
    font-size: .78rem;
    font-weight: 750;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.business-select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: var(--text);
}

.business-select.compact {
    max-width: 48%;
    min-height: 38px;
}

.sidebar-user {
    padding-top: 8px;
    color: var(--muted);
    font-size: .9rem;
}

.logout-button {
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    text-align: left;
}

.main-content {
    margin-left: 252px;
    min-height: 100vh;
    padding: 34px 32px 70px;
}

.page-section {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.mobile-topbar {
    display: none;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.page-subtitle {
    margin-bottom: 0;
    color: var(--muted);
}

.identity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.identity-column {
    display: grid;
    gap: 16px;
}

.card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.muted-card {
    background: #fbfcfd;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.card-heading h2 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.card-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .9rem;
}

.text-button {
    border: 0;
    padding: 4px 0;
    color: var(--primary);
    background: transparent;
    font-weight: 750;
    cursor: pointer;
}

.identity-summary {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
}

.identity-summary > div:last-child {
    display: grid;
    gap: 3px;
}

.identity-summary span {
    color: var(--muted);
    font-size: .92rem;
}

.avatar-placeholder {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: #eaf2ff;
    font-weight: 850;
    font-size: 1.2rem;
}

.content-text {
    margin: 18px 0 0;
    color: #475467;
    line-height: 1.6;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.contact-list > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
}

.contact-list dt {
    color: var(--muted);
    font-size: .88rem;
}

.contact-list dd {
    margin: 0;
    font-weight: 650;
    word-break: break-word;
}

.editor {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

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

.form-grid label,
.editor > label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: .9rem;
    font-weight: 700;
}

.full-width {
    grid-column: 1 / -1;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    padding: 11px 12px;
    color: var(--text);
    background: #fff;
}

textarea {
    resize: vertical;
    min-height: 118px;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}

.button:disabled {
    opacity: .58;
    cursor: wait;
}

.button-primary {
    color: #fff;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border-color: var(--border);
    color: #344054;
    background: #fff;
}

.button-ghost {
    border-color: var(--border);
    color: #475467;
    background: transparent;
}

.button-danger {
    border-color: #f0c4c0;
    color: var(--danger);
    background: var(--danger-bg);
}

.full-button {
    width: 100%;
}

.is-disabled {
    pointer-events: none;
    opacity: .45;
}

.save-status {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.save-status.success {
    color: var(--success);
}

.save-status.error {
    color: var(--danger);
}

.image-placeholder-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    margin-top: 18px;
}

.image-placeholder {
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    color: #667085;
    background: #f8fafc;
    text-align: center;
    font-size: .84rem;
}

.coming-soon {
    padding: 5px 8px;
    border-radius: 999px;
    color: #667085;
    background: #f2f4f7;
    font-size: .72rem;
    font-weight: 800;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    background: #f2f4f7;
    color: #475467;
}

.status-badge.published {
    color: var(--success);
    background: var(--success-bg);
}

.status-badge.draft {
    color: var(--warning);
    background: var(--warning-bg);
}

.status-badge.paused {
    color: #475467;
    background: #f2f4f7;
}

.publication-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.preview-sticky {
    position: sticky;
    top: 28px;
}

.preview-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #475467;
    font-weight: 750;
}

.preview-heading small {
    color: var(--muted);
    font-weight: 600;
}

.phone-preview {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.preview-hero {
    height: 110px;
    background:
        radial-gradient(circle at 70% 30%, rgba(255,255,255,.5), transparent 18%),
        linear-gradient(135deg, #dbeafe, #ede9fe 48%, #dcfce7);
}

.preview-avatar {
    display: grid;
    width: 76px;
    height: 76px;
    margin: -38px auto 0;
    position: relative;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    color: var(--primary);
    background: #eaf2ff;
    font-size: 1.4rem;
    font-weight: 900;
}

.preview-body {
    padding: 14px 20px 22px;
    text-align: center;
}

.preview-body h2 {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.preview-body > p {
    margin-bottom: 4px;
    color: var(--muted);
}

.preview-location {
    font-size: .9rem;
}

.preview-action {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    color: #475467;
    font-weight: 750;
}

.preview-action.primary {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.preview-about {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.preview-about p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: .88rem;
}

.preview-sticky > .button {
    margin-top: 12px;
}

.loading-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid #dbe1ea;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

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

.global-message {
    display: none;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    line-height: 1.45;
}

.global-message.visible {
    display: block;
}

.global-message.error {
    color: var(--danger);
    background: var(--danger-bg);
}

.global-message.success {
    color: var(--success);
    background: var(--success-bg);
}

.mobile-nav {
    display: none;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 18px 18px 90px;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 24px;
    }

    .mobile-brand .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .identity-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .preview-column {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid var(--border);
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(12px);
    }

    .mobile-nav button {
        display: grid;
        justify-items: center;
        gap: 2px;
        border: 0;
        padding: 6px 2px;
        color: #98a2b3;
        background: transparent;
        font-size: 1rem;
    }

    .mobile-nav span {
        font-size: .68rem;
    }

    .mobile-nav button.active {
        color: var(--primary);
        font-weight: 750;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding-inline: 12px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .page-header .button {
        width: 100%;
    }

    .card {
        padding: 18px;
        border-radius: 15px;
        box-shadow: none;
    }

    .card-heading {
        gap: 10px;
    }

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

    .full-width {
        grid-column: auto;
    }

    .contact-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .image-placeholder-row {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        min-height: 90px;
    }

    .editor-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .publication-actions .button {
        width: 100%;
    }
}


/* =========================================================
   INICIO — Dashboard V1
   Referencia visual: wireframe aprobado 27/09/2026
   ========================================================= */

.home-page {
    --home-navy: #111a2e;
    --home-navy-soft: #18243d;
    --home-blue-soft: #eef4ff;
    --home-lilac: #f2efff;
    --home-mint: #eaf8f1;
    --home-peach: #fff0ea;
    --home-gold: #fff7df;
    --home-purple: #6558d3;
    --home-purple-dark: #5144bf;
    --home-card-border: #e8ebf2;
}

.home-page .sidebar {
    color: #fff;
    border-right-color: transparent;
    background: var(--home-navy);
}

.home-page .sidebar .brand {
    color: #fff;
}

.home-page .sidebar .brand-mark {
    background: #fff;
    color: var(--home-navy);
}

.home-page .sidebar .nav-item {
    color: #b9c1d1;
    text-decoration: none;
}

.home-page .sidebar .nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.home-page .sidebar .nav-item.active {
    color: #fff;
    background: rgba(255,255,255,.11);
}

.home-page .sidebar .small-label,
.home-page .sidebar .sidebar-user,
.home-page .sidebar .logout-button {
    color: #aeb8ca;
}

.home-page .sidebar .business-select {
    color: #fff;
    border-color: rgba(255,255,255,.14);
    background: var(--home-navy-soft);
}

.home-page .main-content {
    background: #f7f8fb;
}

.nav-item-link {
    text-decoration: none;
}

.home-shell {
    display: grid;
    gap: 22px;
}

.home-mobile-topbar {
    display: none;
}

.home-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.home-welcome h1 {
    margin-bottom: 7px;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
}

.home-welcome p {
    margin-bottom: 0;
    color: var(--muted);
}

.home-business-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--home-card-border);
    border-radius: 999px;
    background: #fff;
    color: #4b5565;
    font-size: .88rem;
    box-shadow: 0 6px 18px rgba(17, 24, 39, .04);
}

.home-business-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #32b67a;
}

.home-primary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 20px;
}

.home-identity-card,
.home-status-card,
.home-shortcut,
.home-summary-card,
.home-next-step {
    border: 1px solid var(--home-card-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(17, 24, 39, .055);
}

.home-identity-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    isolation: isolate;
}

.home-identity-hero {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(120deg, #eef2f9 0%, #f8f7fb 58%, #ece7ff 100%);
    background-size: cover;
    background-position: center;
}

.home-identity-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 44%, rgba(255,255,255,.62) 68%, rgba(255,255,255,.22) 100%);
}

.home-identity-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 310px;
    padding: 28px;
}

.home-card-kicker {
    margin: 0 0 18px;
    color: #677085;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.home-profile-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-profile-avatar {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,.92);
    border-radius: 24px;
    color: #fff;
    background: var(--home-purple);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(31, 41, 55, .14);
    font-size: 1.5rem;
    font-weight: 850;
}

.home-profile-copy h2 {
    margin-bottom: 4px;
    font-size: 1.55rem;
}

.home-profile-copy p {
    margin: 0 0 5px;
    color: #596274;
}

.home-location {
    font-size: .88rem;
    color: #7b8494;
}

.home-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.home-category-tag {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #5e6677;
    font-size: .76rem;
    font-weight: 700;
}

.home-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 780;
    cursor: pointer;
}

.home-button.primary {
    color: #fff;
    background: var(--home-purple);
}

.home-button.primary:hover {
    background: var(--home-purple-dark);
}

.home-button.secondary {
    color: #3d4656;
    border: 1px solid #dfe3eb;
    background: rgba(255,255,255,.9);
}

.home-button.is-disabled {
    pointer-events: none;
    opacity: .48;
}

.home-status-card {
    padding: 25px;
}

.home-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.home-section-title h2 {
    margin: 0;
    font-size: 1.08rem;
}

.home-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf9f3;
    color: #18724c;
    font-size: .75rem;
    font-weight: 800;
}

.home-status-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.home-status-pill.draft {
    color: #8a6413;
    background: #fff7e2;
}

.home-status-pill.paused {
    color: #9b3b32;
    background: #fff0ee;
}

.home-checklist {
    display: grid;
    gap: 10px;
}

.home-check-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 36px;
    color: #4c5566;
    font-size: .91rem;
}

.home-check-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #32b67a;
    font-size: .72rem;
    font-weight: 900;
}

.home-check-item.pending .home-check-icon {
    color: #8a6413;
    background: #fff0b8;
}

.home-check-item.pending {
    color: #7d7360;
}

.home-check-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
    color: #7c8493;
    font-size: .82rem;
}

.home-shortcuts-wrap h2,
.home-summary-wrap h2 {
    margin-bottom: 13px;
    font-size: 1.05rem;
}

.home-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-shortcut {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: var(--text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.home-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, .08);
}

.home-shortcut.identity { background: var(--home-blue-soft); }
.home-shortcut.actions { background: var(--home-lilac); }
.home-shortcut.offers { background: var(--home-mint); }
.home-shortcut.card-view { background: var(--home-peach); }

.home-shortcut-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    font-size: 1.1rem;
}

.home-shortcut strong {
    display: block;
    margin-bottom: 3px;
}

.home-shortcut small {
    color: #6f7787;
}

.home-shortcut.disabled {
    cursor: default;
    opacity: .76;
}

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

.home-summary-card {
    padding: 19px;
}

.home-summary-label {
    display: block;
    margin-bottom: 10px;
    color: #788190;
    font-size: .78rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.home-summary-value {
    font-size: 1.48rem;
    font-weight: 850;
}

.home-summary-note {
    display: block;
    margin-top: 4px;
    color: #8b93a1;
    font-size: .8rem;
}

.home-next-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    background: linear-gradient(115deg, #f3efff 0%, #fbfaff 100%);
}

.home-next-step-copy {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.home-next-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--home-purple);
    font-size: 1.08rem;
}

.home-next-step h2 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.home-next-step p {
    margin: 0;
    color: #697284;
    font-size: .91rem;
}

.home-empty-metric {
    color: #9ba2af;
}

.home-loading {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .home-primary-grid {
        grid-template-columns: 1fr;
    }

    .home-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .home-page .main-content {
        padding-top: 16px;
    }

    .home-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 22px;
    }

    .home-mobile-topbar .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .home-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-welcome .home-business-pill {
        display: none;
    }

    .home-page .mobile-nav {
        background: rgba(255,255,255,.98);
    }

    .home-page .mobile-nav a,
    .home-page .mobile-nav button {
        color: #98a2b3;
        text-decoration: none;
    }

    .home-page .mobile-nav .active {
        color: var(--home-purple);
    }
}

@media (max-width: 640px) {
    .home-shell {
        gap: 17px;
    }

    .home-welcome h1 {
        font-size: 1.75rem;
    }

    .home-primary-grid {
        gap: 14px;
    }

    .home-identity-card,
    .home-status-card,
    .home-shortcut,
    .home-summary-card,
    .home-next-step {
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(17,24,39,.045);
    }

    .home-identity-card,
    .home-identity-content {
        min-height: 360px;
    }

    .home-identity-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.93) 55%, rgba(255,255,255,.70) 100%);
    }

    .home-identity-content,
    .home-status-card {
        padding: 20px;
    }

    .home-profile-row {
        align-items: flex-start;
    }

    .home-profile-avatar {
        width: 66px;
        height: 66px;
        border-radius: 20px;
    }

    .home-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-button {
        width: 100%;
    }

    .home-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-shortcut {
        min-height: 118px;
        padding: 15px;
    }

    .home-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .home-summary-card:last-child {
        grid-column: 1 / -1;
    }

    .home-next-step {
        grid-template-columns: 1fr;
        padding: 19px;
    }

    .home-next-step .home-button {
        width: 100%;
    }
}


.mobile-nav a {
    display: grid;
    justify-items: center;
    gap: 2px;
    border: 0;
    padding: 6px 2px;
    color: #98a2b3;
    background: transparent;
    font-size: 1rem;
    text-decoration: none;
}

.mobile-nav a span {
    font-size: .68rem;
}

.mobile-nav a.active {
    color: var(--primary);
    font-weight: 750;
}

/* =========================================================
   INICIO V2 — Ajuste visual de "Tu identidad digital"
   Añadir AL FINAL de estilos.css
   ========================================================= */

.home-identity-card-v2 {
    position: relative;
    overflow: visible;
    min-height: 0;
    padding: 18px;
    border: 1px solid #e2e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 35, 60, .07);
}

.home-identity-card-v2::before,
.home-identity-card-v2 .home-identity-overlay {
    display: none !important;
}

.home-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-card-topline .home-card-kicker {
    margin: 0;
}

.home-card-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-card-edit-link {
    color: #2f62e9;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.home-card-edit-link:hover {
    text-decoration: underline;
}

.home-identity-hero-v2 {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 185px;
    border-radius: 14px;
    background-color: #eef2f7;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 55, .04);
}

.home-identity-body-v2 {
    position: relative;
    padding: 0 2px 2px;
}

.home-profile-block-v2 {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: -40px;
}

.home-profile-avatar-v2 {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    border: 5px solid #fff;
    border-radius: 50%;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 22px rgba(23, 35, 60, .13);
    font-size: 1.8rem;
}

.home-profile-copy-v2 {
    min-width: 0;
    padding-top: 47px;
}

.home-profile-copy-v2 h2 {
    margin: 0 0 3px;
    font-size: 1.55rem;
    line-height: 1.1;
}

.home-profile-copy-v2 > p {
    margin: 0 0 7px;
    color: #536078;
    font-size: .97rem;
}

.home-profile-copy-v2 .home-location {
    display: block;
    margin: 0 0 9px;
    color: #667085;
    font-size: .9rem;
}

.home-category-list-v2 {
    margin-top: 6px;
}

.home-card-actions-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.home-card-actions-v2 .home-button {
    min-height: 46px;
}

.home-card-actions-v2 .primary {
    background: #2f62e9;
    border-color: #2f62e9;
}

.home-card-actions-v2 .primary:hover {
    background: #2855ca;
}

@media (max-width: 720px) {
    .home-identity-card-v2 {
        padding: 14px;
        border-radius: 18px;
    }

    .home-card-topline {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .home-card-top-actions {
        gap: 8px;
    }

    .home-card-edit-link {
        display: none;
    }

    .home-identity-hero-v2 {
        height: 138px;
        border-radius: 12px;
    }

    .home-profile-block-v2 {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
        margin-top: -32px;
    }

    .home-profile-avatar-v2 {
        width: 82px;
        height: 82px;
        border-width: 4px;
    }

    .home-profile-copy-v2 {
        padding-top: 38px;
    }

    .home-profile-copy-v2 h2 {
        font-size: 1.35rem;
    }

    .home-profile-copy-v2 > p {
        font-size: .9rem;
    }

    .home-profile-copy-v2 .home-location {
        font-size: .84rem;
    }

    .home-category-list-v2 {
        grid-column: 1 / -1;
    }

    .home-card-actions-v2 {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .home-card-actions-v2 .home-button {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 430px) {
    .home-identity-hero-v2 {
        height: 126px;
    }

    .home-profile-block-v2 {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        margin-top: -28px;
    }

    .home-profile-avatar-v2 {
        width: 74px;
        height: 74px;
    }

    .home-profile-copy-v2 {
        padding-top: 34px;
    }
}

/* =========================================================
   INICIO V3 — Accesos rápidos: colores + iconos del wireframe
   Añadir AL FINAL de estilos.css
   ========================================================= */

.home-shortcuts-v2 {
    gap: 14px;
}

.home-shortcuts-v2 .home-shortcut {
    position: relative;
    min-height: 126px;
    padding: 18px 44px 18px 18px;
    border: 1px solid transparent;
    border-radius: 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-shortcuts-v2 .home-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 41, 55, .08);
}

.home-shortcuts-v2 .home-shortcut.identity {
    background: #dfe9ff;
    border-color: #bfd2ff;
}

.home-shortcuts-v2 .home-shortcut.actions {
    background: #dcf5e6;
    border-color: #bce7cc;
}

.home-shortcuts-v2 .home-shortcut.offers {
    background: #ffe6d6;
    border-color: #ffc9a8;
}

.home-shortcuts-v2 .home-shortcut.card-view {
    background: #fbdde9;
    border-color: #f4bfd3;
}

.home-shortcuts-v2 .home-shortcut-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #fff;
}

.home-shortcuts-v2 .home-shortcut-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-shortcuts-v2 .identity .home-shortcut-icon,
.home-shortcuts-v2 .identity .home-shortcut-arrow {
    color: #1d4ed8;
}

.home-shortcuts-v2 .actions .home-shortcut-icon,
.home-shortcuts-v2 .actions .home-shortcut-arrow {
    color: #15803d;
}

.home-shortcuts-v2 .offers .home-shortcut-icon,
.home-shortcuts-v2 .offers .home-shortcut-arrow {
    color: #ea580c;
}

.home-shortcuts-v2 .card-view .home-shortcut-icon,
.home-shortcuts-v2 .card-view .home-shortcut-arrow {
    color: #be185d;
}

.home-shortcuts-v2 .home-shortcut-copy {
    display: block;
}

.home-shortcuts-v2 .home-shortcut-copy strong {
    display: block;
    margin-bottom: 5px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.home-shortcuts-v2 .home-shortcut-copy small {
    display: block;
    color: #5f6b7a;
    font-size: .88rem;
    line-height: 1.35;
}

.home-shortcuts-v2 .home-shortcut-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.home-shortcuts-v2 .home-shortcut.disabled {
    opacity: 1;
}

@media (max-width: 720px) {
    .home-shortcuts-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-shortcuts-v2 .home-shortcut {
        min-height: 110px;
        padding: 14px 34px 14px 14px;
        border-radius: 16px;
    }

    .home-shortcuts-v2 .home-shortcut-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .home-shortcuts-v2 .home-shortcut-icon svg {
        width: 21px;
        height: 21px;
    }

    .home-shortcuts-v2 .home-shortcut-copy strong {
        font-size: .94rem;
    }

    .home-shortcuts-v2 .home-shortcut-copy small {
        font-size: .8rem;
    }

    .home-shortcuts-v2 .home-shortcut-arrow {
        right: 13px;
        bottom: 13px;
        font-size: 1.75rem;
    }
}

/* =========================================================
   INICIO V7 — Resumen visual alineado con Accesos rápidos
   ========================================================= */

.home-summary-grid .home-summary-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid transparent;
    box-shadow: none;
}

.home-summary-grid .home-summary-card:nth-child(1) {
    background: #dcf5e6;
    border-color: #bce7cc;
}

.home-summary-grid .home-summary-card:nth-child(1) .home-summary-label,
.home-summary-grid .home-summary-card:nth-child(1) .home-summary-value {
    color: #15803d;
}

.home-summary-grid .home-summary-card:nth-child(2) {
    background: #ffe6d6;
    border-color: #ffc9a8;
}

.home-summary-grid .home-summary-card:nth-child(2) .home-summary-label,
.home-summary-grid .home-summary-card:nth-child(2) .home-summary-value {
    color: #ea580c;
}

.home-summary-grid .home-summary-card:nth-child(3) {
    background: #dfe9ff;
    border-color: #bfd2ff;
}

.home-summary-grid .home-summary-card:nth-child(3) .home-summary-label,
.home-summary-grid .home-summary-card:nth-child(3) .home-summary-value {
    color: #1d4ed8;
}

.home-summary-grid .home-summary-label {
    display: block;
    margin-bottom: 16px;
    font-size: .92rem;
    font-weight: 800;
}

.home-summary-grid .home-summary-value {
    display: block;
    margin-bottom: 10px;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.home-summary-grid .home-summary-note {
    display: block;
    color: #536078;
    font-size: .88rem;
    line-height: 1.4;
}

.home-summary-grid .home-summary-card:nth-child(3) .home-summary-value {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

@media (max-width: 720px) {
    .home-summary-grid .home-summary-card {
        min-height: 128px;
        padding: 16px;
        border-radius: 16px;
    }

    .home-summary-grid .home-summary-label {
        margin-bottom: 12px;
        font-size: .86rem;
    }

    .home-summary-grid .home-summary-value {
        margin-bottom: 8px;
        font-size: 2rem;
    }

    .home-summary-grid .home-summary-card:nth-child(3) .home-summary-value {
        font-size: 1.3rem;
    }

    .home-summary-grid .home-summary-note {
        font-size: .8rem;
    }
}

/* =========================================================
   INICIO V8 — Resumen con iconos y alturas igualadas
   ========================================================= */

.home-summary-grid-v2 {
    align-items: stretch;
}

.home-summary-grid-v2 .home-summary-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 156px;
}

.home-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.home-summary-grid-v2 .home-summary-label {
    margin-bottom: 0;
}

.home-summary-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.86);
}

.home-summary-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-summary-grid-v2 .home-summary-card:nth-child(1) .home-summary-icon {
    color: #15803d;
}

.home-summary-grid-v2 .home-summary-card:nth-child(2) .home-summary-icon {
    color: #ea580c;
}

.home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-icon {
    color: #1d4ed8;
}

.home-summary-content {
    margin-top: 18px;
}

.home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 66px;
}

.home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-value {
    font-size: 1.7rem;
    line-height: 1.05;
}

@media (max-width: 720px) {
    .home-summary-grid-v2 .home-summary-card {
        min-height: 136px;
    }

    .home-summary-icon {
        width: 38px;
        height: 38px;
    }

    .home-summary-icon svg {
        width: 20px;
        height: 20px;
    }

    .home-summary-content {
        margin-top: 14px;
    }
}

/* =========================================================
   INICIO V9 — Loader compacto + Publicación móvil compacta
   ========================================================= */

/* El loader no debe reservar media pantalla */
.home-loading {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 0 12px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: .9rem;
}

/* Evitar espacios heredados de loaders anteriores */
.home-loading[hidden] {
    display: none !important;
}

/* Cuando el contenido todavía no está visible, no forzar altura */
.home-shell:has(#homeContent[hidden]) {
    min-height: auto;
}

@media (max-width: 720px) {
    .home-loading {
        padding: 12px 0 8px !important;
        font-size: .86rem;
    }

    /* Publicación más compacta en móvil */
    .home-summary-grid-v2 .home-summary-card:nth-child(3) {
        min-height: 118px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-content {
        min-height: 0;
        margin-top: 10px;
    }

    .home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-value {
        margin-bottom: 6px;
        font-size: 1.55rem;
    }

    .home-summary-grid-v2 .home-summary-card:nth-child(3) .home-summary-note {
        line-height: 1.3;
    }
}
