﻿:root {
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --border: rgba(10, 10, 79, 0.12);
    --text: #14142f;
    --muted: #5f637c;
    --primary: #0a0a4f;
    --accent: #ffb901;
    --accent-soft: rgba(255, 185, 1, 0.14);
    --shadow: 0 24px 70px rgba(10, 10, 79, 0.12);
    --radius: 24px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
}

body::before {
    top: -10rem;
    right: -8rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(255, 185, 1, 0.2), rgba(255, 185, 1, 0));
}

body::after {
    bottom: -14rem;
    left: -6rem;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(10, 10, 79, 0.1), rgba(10, 10, 79, 0));
}

.page-background {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(10, 10, 79, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 79, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 92%);
    z-index: -3;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(10, 10, 79, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(10, 10, 79, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
}

.brand-mark img {
    width: 158px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    color: var(--primary);
}

.main-nav .nav-user,
.nav-user-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(10, 10, 79, 0.06);
    color: inherit;
}

.reportes-clean-page > .module-one-column > article[hidden] + article.module-card {
    display: none;
}

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(10, 10, 79, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-user-menu:hover .nav-user-dropdown,
.nav-user-menu:focus-within .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown a {
    width: 100%;
    border-radius: 12px;
    white-space: nowrap;
}

.main-nav .nav-logout {
    background: rgba(10, 10, 79, 0.08);
}

.main-nav a {
    padding: 12px 18px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    background: rgba(10, 10, 79, 0.06);
    transform: translateY(-1px);
}

.main-nav .nav-cta {
    background: var(--primary);
    color: #ffffff;
}

.main-nav .nav-cta:hover {
    background: #111169;
}

.flash-stack {
    display: grid;
    gap: 12px;
    padding-top: 20px;
}

.flash {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 700;
}

.flash.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.24);
    color: #0b7a34;
}

.flash.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.18);
    color: #a11a1a;
}

.flash.info {
    background: rgba(10, 10, 79, 0.08);
    border-color: rgba(10, 10, 79, 0.14);
    color: var(--primary);
}

.hero-section,
.value-section,
.pricing-section,
.contact-section,
.auth-section {
    padding: 56px 0 88px;
}

.hero-grid,
.contact-grid,
.auth-shell {
    display: grid;
    gap: 28px;
}

.hero-grid,
.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.auth-shell {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
}

.auth-single {
    max-width: 620px;
    margin: 0 auto;
    grid-template-columns: 1fr;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.hero-copy h1,
.auth-card h1,
.section-header h2,
.contact-copy h2 {
    margin: 18px 0 14px;
    font-family: "Sora", sans-serif;
    line-height: 1.08;
    color: var(--primary);
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    max-width: 12ch;
}

.hero-copy p,
.auth-card p,
.section-header p,
.contact-copy p,
.pricing-card p,
.feature-card p,
.panel-card p,
.site-footer p,
.form-note {
    color: var(--muted);
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(10, 10, 79, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ffce4d);
    color: var(--primary);
}

.btn-secondary {
    background: rgba(10, 10, 79, 0.06);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hero-metrics article,
.feature-card,
.pricing-card,
.contact-card,
.auth-card,
.form-card,
.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-metrics article {
    padding: 20px;
}

.hero-metrics strong,
.pricing-card strong {
    display: block;
    font-size: 1.75rem;
    font-family: "Sora", sans-serif;
    color: var(--primary);
}

.hero-panel {
    display: grid;
    gap: 18px;
}

.panel-card {
    padding: 28px;
}

.panel-card.large {
    min-height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 255, 0.96));
}

.panel-card.large ul,
.pricing-card ul,
.check-list {
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.panel-card.large li,
.pricing-card li,
.check-list li {
    position: relative;
    padding-left: 26px;
}

.panel-card.large li::before,
.pricing-card li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.panel-label,
.plan-name,
.contact-card span,
.field span {
    font-weight: 800;
    color: var(--primary);
}

.panel-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.panel-card.accent {
    background: linear-gradient(135deg, rgba(255, 185, 1, 0.18), rgba(255, 255, 255, 0.94));
}

.panel-card.dark {
    background: linear-gradient(160deg, rgba(10, 10, 79, 0.96), rgba(24, 24, 117, 0.94));
    color: #ffffff;
}

.panel-card.dark .panel-label,
.panel-card.dark p {
    color: #ffffff;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.section-header.split {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.feature-grid,
.pricing-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.pricing-card,
.contact-card,
.auth-card,
.form-card {
    padding: 28px;
}

.pricing-card.featured {
    position: relative;
    transform: translateY(-8px);
    border-color: rgba(255, 185, 1, 0.5);
}

.pricing-card.featured::before {
    content: "Más elegido";
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
}

.contact-card {
    display: grid;
    gap: 22px;
}

.contact-card a {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-card.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 255, 0.95));
}

.auth-card.compact {
    padding: 38px;
}

.auth-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 10px;
}

.field strong {
    color: var(--accent);
}

.field input,
.field select {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(10, 10, 79, 0.16);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field.large input,
.field.large select {
    min-height: 64px;
    border-radius: 10px;
}

.field input::placeholder {
    color: #9497ac;
}

.field input:focus,
.field select:focus {
    border-color: rgba(255, 185, 1, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 185, 1, 0.18);
}

.select-field {
    position: relative;
}

.select-field::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 26px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #2f3b7e;
    border-bottom: 2px solid #2f3b7e;
    transform: rotate(45deg);
    pointer-events: none;
}

.field select {
    appearance: none;
}

.auth-helper,
.form-note {
    margin-top: 16px;
    font-size: 0.96rem;
}

.auth-helper a,
.form-note a {
    color: var(--primary);
    font-weight: 800;
}

.site-footer {
    padding: 26px 0 34px;
    background: var(--primary);
    color: #ffffff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.site-footer h3 {
    margin: 0 0 8px;
    font-family: "Sora", sans-serif;
}

.site-footer p,
.footer-link {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
    margin: 0;
}

.footer-link {
    font-weight: 800;
}

.super-admin-shell,
.account-shell {
    padding: 54px 0 78px;
}

.super-admin-hero,
.account-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.super-admin-hero h1,
.account-card h1 {
    margin: 8px 0 10px;
    font-family: "Sora", sans-serif;
    font-size: 2rem;
    color: var(--primary);
}

.super-admin-hero p,
.account-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.super-admin-card,
.account-card {
    padding: 20px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(10, 10, 79, 0.08);
}

.account-card {
    display: block;
    max-width: 760px;
}

.account-card .btn {
    margin-top: 22px;
}

.super-admin-table {
    min-width: 1120px;
}

.compact-field {
    gap: 5px;
    min-width: 150px;
}

.compact-field span {
    font-size: 0.72rem;
}

.compact-field input,
.compact-field select,
.admin-plan-select {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.86rem;
}

.admin-plan-select {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--primary);
    font-weight: 800;
}

@media (max-width: 960px) {
    .hero-grid,
    .contact-grid,
    .auth-shell,
    .feature-grid,
    .pricing-grid,
    .section-header.split {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-metrics,
    .panel-row {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        padding: 14px 0;
    }

    .main-nav a {
        text-align: center;
    }

    .hero-section,
    .value-section,
    .pricing-section,
    .contact-section,
    .auth-section {
        padding: 44px 0 70px;
    }

    .hero-copy h1,
    .auth-card h1,
    .section-header h2,
    .contact-copy h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .feature-card,
    .pricing-card,
    .contact-card,
    .auth-card,
    .form-card,
    .panel-card,
    .hero-metrics article {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .main-nav {
        grid-template-columns: 1fr;
    }
}

body.auth-page::before,
body.auth-page::after,
body.auth-page .page-background {
    display: none;
}

body.auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 185, 1, 0.16), transparent 20%),
        radial-gradient(circle at 88% 82%, rgba(255, 185, 1, 0.14), transparent 18%),
        linear-gradient(135deg, #05071d 0%, #090b2b 44%, #0a0a4f 100%);
}

body.auth-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    padding: 22px 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

body.auth-page .main-nav {
    color: rgba(255, 255, 255, 0.92);
}

body.auth-page .main-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.auth-page .main-nav .nav-cta {
    background: var(--accent);
    color: var(--primary);
}

body.auth-page .main-nav .nav-user,
body.home-page .main-nav .nav-user {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.auth-page .main-nav .nav-logout,
body.home-page .main-nav .nav-logout {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.auth-page .nav-toggle,
body.home-page .nav-toggle {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

body.auth-page .flash-stack {
    position: relative;
    z-index: 6;
    padding-top: 110px;
}

.auth-stage {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 120px);
    padding: 124px 0 82px;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.76;
    pointer-events: none;
}

.auth-orb-left {
    top: 18%;
    left: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 185, 1, 0.3), rgba(255, 185, 1, 0));
}

.auth-orb-right {
    right: -100px;
    bottom: 10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 185, 1, 0.24), rgba(255, 185, 1, 0));
}

.auth-shell-modern {
    position: relative;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 390px);
    gap: 28px;
    align-items: center;
    z-index: 1;
}

.register-shell {
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 420px);
}

.auth-spotlight-card,
.auth-form-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 84px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(22px);
}

.auth-card.auth-spotlight-card {
    background: linear-gradient(160deg, rgba(15, 18, 56, 0.88), rgba(10, 12, 42, 0.74));
}

.auth-spotlight-card {
    max-width: 540px;
    padding: 28px;
    color: #ffffff;
}

.auth-spotlight-card h1 {
    margin: 14px 0 12px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.04;
    color: #ffffff;
}

.auth-spotlight-card p,
.auth-note-card p,
.auth-form-card p,
body.auth-page .auth-helper,
body.auth-page .form-note {
    color: rgba(255, 255, 255, 0.72);
}

.auth-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.auth-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-mini-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.auth-mini-metrics article {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-mini-metrics strong,
.auth-note-card strong,
.auth-form-header h2,
.auth-form-kicker,
body.auth-page .field span,
.auth-benefit-list li {
    color: #ffffff;
}

.auth-mini-metrics strong {
    display: block;
    margin-bottom: 6px;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
}

.auth-mini-metrics span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-benefit-list {
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-benefit-list li {
    position: relative;
    padding-left: 24px;
}

.auth-benefit-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.auth-note-card {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-note-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.auth-form-card {
    width: 100%;
    margin-left: auto;
    padding: 22px;
    border-radius: 24px;
}

.compact-auth-card {
    max-width: 380px;
}

.register-auth-card {
    max-width: 420px;
}

.auth-form-header {
    display: grid;
    gap: 8px;
}

.auth-form-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

.auth-form-header h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.45rem, 2.8vw, 1.95rem);
}

.auth-compact-form {
    gap: 12px;
    margin-top: 16px;
}

.register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.register-form .btn,
.register-form .form-note {
    grid-column: 1 / -1;
}

body.auth-page .field {
    gap: 8px;
}

body.auth-page .field span {
    font-size: 0.92rem;
    font-weight: 700;
}

body.auth-page .field input,
body.auth-page .field select {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.96rem;
}

body.auth-page .field.large input,
body.auth-page .field.large select {
    min-height: 48px;
    border-radius: 14px;
}

body.auth-page .field input::placeholder {
    color: rgba(255, 255, 255, 0.46);
}

body.auth-page .field input:focus,
body.auth-page .field select:focus {
    border-color: rgba(255, 185, 1, 0.95);
    box-shadow: 0 0 0 4px rgba(255, 185, 1, 0.16);
}

body.auth-page .select-field::after {
    right: 18px;
    bottom: 20px;
    border-right-color: rgba(255, 255, 255, 0.84);
    border-bottom-color: rgba(255, 255, 255, 0.84);
}

body.auth-page .auth-helper a,
body.auth-page .form-note a {
    color: var(--accent);
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowSweep {
    0% {
        box-shadow: 0 0 0 rgba(255, 185, 1, 0);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 185, 1, 0.03);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 185, 1, 0);
    }
}

body.home-page .hero-story,
body.home-page .hero-visual,
body.auth-page .auth-spotlight-card,
body.auth-page .auth-form-card {
    animation: fadeRise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home-page .hero-visual,
body.auth-page .auth-form-card {
    animation-delay: 0.08s;
}

.detail-card,
.showcase-card,
.testimonial-card,
.pricing-showcase .tabbed-pricing-card,
.auth-form-card,
.auth-spotlight-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.detail-card:hover,
.showcase-card:hover,
.testimonial-card:hover,
.pricing-showcase .tabbed-pricing-card:hover,
.auth-form-card:hover,
.auth-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 86px rgba(0, 0, 0, 0.18);
}

.btn,
.nav-toggle,
.main-nav a,
.main-nav .nav-logout {
    animation: glowSweep 0.7s ease both;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 980px) {
    .auth-shell-modern,
    .register-shell {
        grid-template-columns: 1fr;
    }

    .auth-form-card {
        max-width: 100%;
        margin-left: 0;
    }

    .login-shell .auth-form-card,
    .register-shell .auth-form-card {
        order: -1;
    }

    .auth-mini-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body.auth-page .site-header {
        position: relative;
        background: #080b28;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.auth-page .header-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    body.auth-page .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
        gap: 8px;
    }

    body.auth-page .main-nav a {
        width: auto;
        padding: 10px 14px;
    }

    body.auth-page .flash-stack {
        padding-top: 26px;
    }

    .auth-stage {
        min-height: auto;
        padding: 46px 0 74px;
    }
}

@media (max-width: 700px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        display: none !important;
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(10, 10, 79, 0.08);
        box-shadow: 0 18px 42px rgba(10, 10, 79, 0.16);
        gap: 10px;
    }

    .site-header.is-open .main-nav {
        display: grid !important;
    }

    .main-nav a,
    .main-nav .nav-user,
    .nav-user-menu,
    .nav-user-trigger {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-user-menu {
        display: grid;
        gap: 8px;
    }

    .nav-user-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        box-shadow: none;
        border-radius: 16px;
    }

    body.auth-page .main-nav,
    body.home-page .main-nav {
        background: rgba(8, 11, 40, 0.96);
        border-color: rgba(255, 255, 255, 0.12);
    }

    body.auth-page .main-nav a,
    body.home-page .main-nav a,
    body.auth-page .main-nav .nav-user,
    body.auth-page .nav-user-trigger,
    body.home-page .nav-user-trigger,
    body.home-page .main-nav .nav-user {
        color: #ffffff;
    }

    body.auth-page .nav-user-dropdown a,
    body.home-page .nav-user-dropdown a {
        color: var(--primary);
    }

    .auth-spotlight-card,
    .auth-form-card {
        padding: 20px;
    }

    .auth-spotlight-card h1 {
        font-size: clamp(1.7rem, 8vw, 2.45rem);
    }
}

@media (max-width: 560px) {
    .auth-stage {
        padding: 34px 0 62px;
    }

    .auth-chip-row,
    .auth-mini-metrics {
        gap: 10px;
    }

    body.auth-page .field input,
    body.auth-page .field select,
    body.auth-page .field.large input,
    body.auth-page .field.large select {
        min-height: 44px;
    }

    .auth-spotlight-card {
        display: none;
    }

    .register-form {
        grid-template-columns: 1fr;
    }
}

body.home-page::before,
body.home-page::after,
body.home-page .page-background {
    display: none;
}

body.home-page {
    background: #f8f8fd;
}

body.home-page .site-header {
    position: absolute;
    inset: 0 0 auto;
    padding: 22px 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
}

body.home-page .main-nav {
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.home-page .main-nav .nav-cta {
    background: var(--accent);
    color: var(--primary);
}

body.home-page .nav-user-dropdown a,
body.auth-page .nav-user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--primary);
    text-decoration: none;
}

body.home-page .nav-user-dropdown a:hover,
body.auth-page .nav-user-dropdown a:hover {
    background: rgba(10, 10, 79, 0.06);
}

body.home-page .nav-user-dropdown .nav-logout,
body.auth-page .nav-user-dropdown .nav-logout {
    color: var(--primary);
    background: rgba(10, 10, 79, 0.08);
}

.home-hero-plan {
    position: relative;
    overflow: hidden;
    padding: 120px 0 96px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 185, 1, 0.18), transparent 24%),
        radial-gradient(circle at 88% 86%, rgba(255, 185, 1, 0.16), transparent 20%),
        linear-gradient(135deg, #05071d 0%, #090b2b 46%, #0a0a4f 100%);
    color: #ffffff;
}

.hero-plan-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 34px;
    align-items: center;
    z-index: 1;
}

.hero-plan-copy {
    max-width: 560px;
}

.hero-plan-copy h1 {
    margin: 12px 0 16px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1.02;
    color: #ffffff;
}

.hero-plan-copy p {
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.8);
}

.hero-plan-visual {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.home-hero-plan .hero-visual {
    min-height: 480px;
}

.hero-plan-board {
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(17, 19, 54, 0.98), rgba(6, 8, 31, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
}

.hero-plan-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-plan-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-plan-pill.is-active {
    background: linear-gradient(135deg, var(--accent), #ffd970);
    color: var(--primary);
}

.hero-plan-floor {
    position: relative;
    min-height: 360px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 48px);
    overflow: hidden;
}

.hero-plan-room-kitchen {
    position: absolute;
    left: 8%;
    top: 8%;
    width: 22%;
    height: 28%;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.hero-plan-table {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.hero-plan-table strong {
    font-size: 1.1rem;
}

.hero-plan-table.table-green {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.72));
}

.hero-plan-table.table-yellow {
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.92), rgba(234, 179, 8, 0.72));
    color: #1f2937;
}

.hero-plan-table.table-accent {
    background: linear-gradient(180deg, rgba(255, 185, 1, 0.96), rgba(255, 185, 1, 0.72));
    color: var(--primary);
}

.hero-plan-table.table-warning {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.92), rgba(249, 115, 22, 0.72));
}

.hero-plan-table.table-muted {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.92), rgba(100, 116, 139, 0.72));
}

.hero-side-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-booking-card,
.hero-times-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-side-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-booking-card h3,
.hero-times-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
}

.hero-booking-grid,
.hero-calendar-grid,
.hero-time-list {
    display: grid;
    gap: 8px;
}

.hero-booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

.hero-booking-actions {
    display: flex;
    gap: 10px;
}

.hero-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 12px;
}

.hero-calendar-grid span,
.hero-time-list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-calendar-grid span.is-active,
.hero-time-list span.is-active {
    background: linear-gradient(135deg, var(--accent), #ffd970);
    color: var(--primary);
}

.hero-time-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

input[name="csrf_token"] {
    display: none;
}

@media (max-width: 980px) {
    .hero-plan-shell {
        grid-template-columns: 1fr;
    }

    .hero-side-stack {
        grid-template-columns: 1fr;
    }
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 140px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 185, 1, 0.18), transparent 24%),
        radial-gradient(circle at 88% 86%, rgba(255, 185, 1, 0.16), transparent 20%),
        linear-gradient(135deg, #05071d 0%, #090b2b 46%, #0a0a4f 100%);
    color: #ffffff;
}

.hero-orbit {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

.hero-orbit-left {
    top: 18%;
    left: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 185, 1, 0.26), rgba(255, 185, 1, 0));
}

.hero-orbit-right {
    right: -120px;
    bottom: 6%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 185, 1, 0.24), rgba(255, 185, 1, 0));
}

.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 34px;
    align-items: center;
    z-index: 1;
}

.hero-story {
    max-width: 540px;
}

.hero-tag {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-size: 0.88rem;
}

.hero-story h1 {
    margin: 12px 0 16px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4.3vw, 3.75rem);
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-story h1 span {
    color: var(--accent);
}

.hero-line {
    width: 92px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 185, 1, 0));
}

.hero-text {
    max-width: 48ch;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: 0.96rem;
}

.hero-keywords span {
    position: relative;
    padding-right: 16px;
}

.hero-keywords span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--accent);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-outline-light:hover {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.hero-metrics-dark {
    margin-top: 30px;
}

.hero-metrics-dark article {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.hero-metrics-dark strong,
.hero-metrics-dark span {
    color: #ffffff;
}

.hero-metrics-dark strong {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-screen {
    position: absolute;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(17, 19, 54, 0.98), rgba(6, 8, 31, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
}

.laptop-screen {
    inset: 20px 72px 70px 0;
    padding: 20px;
}

.laptop-screen::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -24px;
    height: 24px;
    border-radius: 0 0 34px 34px;
    background: linear-gradient(180deg, #d6d7df, #8f94aa);
}

.screen-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.screen-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
}

.screen-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 22px;
    align-items: end;
    height: calc(100% - 28px);
}

.screen-copy span,
.phone-header span,
.showcase-visual span {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.screen-copy h2 {
    margin: 10px 0 12px;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 1.8vw, 1.95rem);
    line-height: 1.08;
    color: #ffffff;
}

.screen-copy p,
.phone-screen,
.showcase-card p,
.detail-card p,
.benefit-item p,
.testimonial-card p,
.cta-contact-card p,
.price-detail p {
    color: rgba(255, 255, 255, 0.72);
}

.mini-cta {
    display: inline-flex;
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ffd970);
    color: var(--primary);
    font-weight: 800;
}

.screen-chart {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 150px;
}

.chart-bars span {
    flex: 1;
    border-radius: 12px 12px 6px 6px;
    background: linear-gradient(180deg, rgba(255, 185, 1, 0.92), rgba(255, 185, 1, 0.28));
}

.chart-bars span:nth-child(1) {
    height: 52px;
}

.chart-bars span:nth-child(2) {
    height: 94px;
}

.chart-bars span:nth-child(3) {
    height: 126px;
}

.chart-bars span:nth-child(4) {
    height: 82px;
}

.chart-note {
    color: #ffffff;
    font-weight: 700;
}

.phone-screen {
    right: 0;
    top: 52px;
    width: 228px;
    padding: 18px;
    border-radius: 34px;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 14px;
    color: #ffffff;
}

.phone-header strong,
.phone-kpis strong,
.cta-contact-card h2,
.detail-card h3,
.showcase-card h3,
.pricing-showcase .pricing-card strong,
.testimonial-card strong,
.benefit-item h3 {
    color: #ffffff;
}

.phone-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.phone-kpis article {
    padding: 12px 10px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
}

.phone-kpis span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
}

.phone-cta {
    display: block;
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 185, 1, 0.98), rgba(255, 215, 113, 0.98));
    color: var(--primary);
    text-align: center;
    font-weight: 800;
}

.phone-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.phone-grid span {
    padding: 14px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-align: center;
    font-weight: 700;
}

.hero-curve {
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: -92px;
    height: 190px;
    background: #f8f8fd;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.section-heading.centered {
    text-align: center;
    align-items: center;
}

.section-heading h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.04;
    color: var(--primary);
}

.section-heading p {
    margin: 0;
    max-width: 68ch;
    color: var(--muted);
}

.details-section,
.pricing-showcase,
.showcase-section,
.testimonial-section,
.cta-contact-section {
    padding: 34px 0 90px;
}

.details-grid,
.benefit-grid,
.showcase-grid,
.testimonial-grid {
    display: grid;
    gap: 24px;
}

.details-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card,
.showcase-card,
.testimonial-card,
.cta-contact-card,
.pricing-showcase .pricing-card {
    border-radius: 30px;
}

.detail-card {
    padding: 28px;
    background: linear-gradient(180deg, #0c1037 0%, #0a0a4f 100%);
    box-shadow: 0 26px 64px rgba(10, 10, 79, 0.16);
}

.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #ffd76c);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 18px;
}

.detail-card h3 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
}

.detail-list,
.detail-benefits ul {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.detail-list li,
.detail-benefits li {
    position: relative;
    padding-left: 22px;
    color: rgba(255, 255, 255, 0.84);
}

.detail-list li::before,
.detail-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.detail-benefits {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-benefits span,
.price-detail span {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.benefit-band {
    padding: 0 0 82px;
}

.benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 26px;
    background: linear-gradient(135deg, #090b25, #0a0a4f);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(10, 10, 79, 0.18);
}

.benefit-item {
    padding: 14px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-item:last-child {
    border-right: 0;
}

.benefit-item strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: "Sora", sans-serif;
    font-size: 1.4rem;
}

.pricing-tabs-shell {
    display: grid;
    gap: 22px;
}

.pricing-tab-controls,
.billing-tab-controls {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    background: rgba(10, 10, 79, 0.08);
    border: 1px solid rgba(10, 10, 79, 0.08);
    border-radius: 999px;
    width: fit-content;
}

.pricing-tab-button,
.billing-tab-button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pricing-tab-button:hover,
.billing-tab-button:hover {
    transform: translateY(-1px);
}

.pricing-tab-button.is-active,
.billing-tab-button.is-active {
    background: linear-gradient(135deg, var(--primary), #18267f);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(10, 10, 79, 0.18);
}

.pricing-panel,
.billing-panel {
    display: block;
}

.pricing-panel[hidden],
.billing-panel[hidden] {
    display: none;
}

.tabbed-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.pricing-showcase .tabbed-pricing-card.light-pricing-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid rgba(10, 10, 79, 0.08);
    box-shadow: 0 26px 60px rgba(10, 10, 79, 0.1);
}

.pricing-showcase .tabbed-pricing-card.featured {
    transform: translateY(-8px);
    border-color: rgba(255, 185, 1, 0.5);
    box-shadow: 0 30px 74px rgba(10, 10, 79, 0.14);
}

.pricing-showcase .tabbed-pricing-card.featured::before {
    content: "Recomendado";
    background: rgba(255, 185, 1, 0.18);
    color: var(--primary);
}

.plan-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pricing-showcase .plan-name {
    color: var(--primary);
    font-size: 1.1rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 185, 1, 0.18);
    color: #9b6200;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-documents {
    margin-top: 18px;
    color: #52607f;
    font-weight: 700;
}

.plan-price-row {
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 12px;
}

.pricing-showcase .plan-price-row strong {
    color: var(--primary);
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1;
}

.plan-price-row small {
    margin-bottom: 6px;
    color: #5d6a86;
    font-size: 1rem;
    font-weight: 800;
}

.plan-summary {
    margin: 18px 0 0;
    color: var(--muted);
}

.btn-plan-primary {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary), #183192);
    color: #ffffff;
}

.btn-plan-primary:hover {
    box-shadow: 0 18px 36px rgba(10, 10, 79, 0.16);
}

.plan-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.plan-list li {
    position: relative;
    padding-left: 24px;
    color: #2a395d;
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.plan-feature-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f3f5fb;
    border: 1px solid rgba(10, 10, 79, 0.06);
}

.plan-list-secondary {
    margin-top: 0;
}

.plan-list-secondary li.is-disabled {
    color: #9da6be;
}

.plan-list-secondary li.is-disabled::before {
    background: #c9cfdf;
}

.plan-terms {
    margin-top: 18px;
    color: #5d6a86;
    font-size: 0.92rem;
}

.accounting-card .plan-feature-box {
    max-height: 360px;
    overflow: auto;
}

.showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.showcase-card {
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 22px 54px rgba(10, 10, 79, 0.1);
}

.showcase-visual {
    min-height: 170px;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(10, 10, 79, 1), rgba(18, 23, 82, 0.96)),
        radial-gradient(circle at 78% 20%, rgba(255, 185, 1, 0.34), transparent 24%);
    display: flex;
    align-items: flex-end;
}

.showcase-body {
    padding: 22px;
}

.showcase-card h3 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    color: var(--primary);
}

.showcase-card p {
    color: var(--muted);
}

.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(10, 10, 79, 0.08);
}

.quote-mark {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 3rem;
    font-family: "Sora", sans-serif;
    line-height: 1;
}

.testimonial-card p {
    margin: 0 0 22px;
    color: var(--muted);
}

.testimonial-card strong {
    display: block;
    color: var(--primary);
}

.testimonial-card span {
    color: #6d7390;
    font-size: 0.94rem;
}

.cta-contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 34px;
    background: linear-gradient(135deg, #07091f 0%, #0a0a4f 100%);
    box-shadow: 0 28px 80px rgba(10, 10, 79, 0.18);
}

.eyebrow-dark {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.cta-contact-card h2 {
    margin: 14px 0 12px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-contact-actions {
    display: grid;
    gap: 18px;
    justify-items: end;
}

.contact-chip-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 12px;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .details-grid,
    .pricing-showcase .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefit-item:nth-child(2) {
        border-right: 0;
    }

    .hero-visual {
        min-height: 620px;
    }

    .cta-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-contact-actions,
    .contact-chip-group {
        justify-items: start;
        justify-content: flex-start;
    }
}

@media (max-width: 960px) and (min-width: 701px) {
    body.home-page .header-inner {
        flex-direction: row;
        align-items: center;
    }

    body.home-page .brand-mark img {
        width: 134px;
    }

    body.home-page .main-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        width: auto;
        gap: 6px;
    }

    body.home-page .main-nav a {
        width: auto;
        padding: 10px 12px;
        font-size: 0.95rem;
        text-align: center;
    }
}

@media (max-width: 760px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 640px;
    }
}

@media (max-width: 820px) {
    body.home-page .site-header {
        position: relative;
        background: #080b28;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.home-page .header-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    body.home-page .main-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
        gap: 8px;
    }

    body.home-page .main-nav a {
        width: auto;
        padding: 10px 14px;
    }

    .home-hero {
        padding-top: 54px;
    }

    .laptop-screen {
        position: relative;
        inset: auto;
    }

    .phone-screen {
        top: auto;
        bottom: -10px;
    }

    .hero-visual {
        min-height: 720px;
    }

    .screen-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body.home-page .header-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 40px 0 102px;
    }

    .hero-story h1 {
        font-size: clamp(1.8rem, 9vw, 2.7rem);
    }

    .hero-metrics,
    .showcase-grid,
    .benefit-grid,
    .testimonial-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .benefit-item:last-child {
        border-bottom: 0;
    }

    .hero-visual {
        min-height: 760px;
    }

    .laptop-screen {
        padding: 16px;
    }

    .phone-screen {
        position: relative;
        width: min(100%, 280px);
        margin: 18px auto 0;
        right: auto;
        bottom: auto;
    }

    .cta-contact-card,
    .detail-card,
    .testimonial-card,
    .showcase-body,
    .showcase-visual,
    .pricing-showcase .pricing-card {
        padding-left: 22px;
        padding-right: 22px;
    }
}

body.dashboard-page::before,
body.dashboard-page::after,
body.dashboard-page .page-background {
    display: none;
}

body.dashboard-page {
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 185, 1, 0.14), transparent 18%),
        radial-gradient(circle at 92% 8%, rgba(10, 10, 79, 0.08), transparent 24%),
        linear-gradient(180deg, #f4f7ff 0%, #edf1ff 100%);
}

body.dashboard-page .site-header {
    width: calc(100% - 332px);
    margin-left: 332px;
    background: rgba(244, 247, 255, 0.92);
}

body.dashboard-page .header-inner {
    justify-content: flex-end;
}

body.dashboard-page .site-header .container,
body.dashboard-page .site-footer .container,
body.dashboard-page .flash-stack.container {
    width: calc(100% - 32px);
    max-width: none;
}

body.dashboard-page .flash-stack.container {
    padding-left: 376px;
}

body.dashboard-page .site-footer {
    margin-top: 0;
}

.billing-workspace {
    padding: 24px 0 84px;
}

.workspace-shell {
    position: relative;
}

.workspace-frame {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 180px);
    padding-right: 24px;
}

.workspace-mobile-bar {
    display: none;
    align-items: center;
    gap: 16px;
    margin: 0 16px 18px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(10, 10, 79, 0.08);
    box-shadow: 0 20px 48px rgba(10, 10, 79, 0.08);
}

.workspace-mobile-bar strong {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-family: "Sora", sans-serif;
}

.workspace-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(10, 10, 79, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    cursor: pointer;
}

.workspace-sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.workspace-shell.is-sidebar-open .workspace-sidebar-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.workspace-shell.is-sidebar-open .workspace-sidebar-toggle span:nth-child(2) {
    opacity: 0;
}

.workspace-shell.is-sidebar-open .workspace-sidebar-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.workspace-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 332px;
    display: grid;
    gap: 24px;
    padding: 28px 24px 28px 28px;
    border-radius: 0 30px 30px 0;
    background:
        radial-gradient(circle at top right, rgba(255, 185, 1, 0.18), transparent 26%),
        linear-gradient(180deg, #06091f 0%, #0a0a4f 100%);
    color: #ffffff;
    box-shadow: 0 32px 80px rgba(10, 10, 79, 0.24);
    overflow-y: auto;
    z-index: 18;
}

.workspace-kicker {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-sidebar-head {
    display: grid;
    gap: 14px;
}

.workspace-sidebar-brand {
    width: min(100%, 158px);
    height: auto;
}

.workspace-sidebar-head h2 {
    margin: 0;
    color: #ffffff;
    font-family: "Sora", sans-serif;
    font-size: clamp(2.3rem, 2vw, 3rem);
    line-height: 1.08;
}

.workspace-sidebar-head p,
.workspace-sidebar-note p,
.workspace-module-nav a > span:last-child,
.workspace-hero-card p,
.workspace-hero-meta p,
.workspace-summary-card p,
.workspace-health-card p,
.module-panel-header p,
.module-card p,
.detail-metadata-grid p,
.automation-log-card p,
.notification-card p,
.contact-item p,
.empty-state-inline p,
.alert-card p {
    margin: 0;
    color: var(--muted);
}

.workspace-module-nav {
    display: grid;
    gap: 8px;
}

.workspace-module-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.workspace-module-nav a:hover,
.workspace-module-nav a.is-active {
    transform: translateX(4px);
    background: rgba(255, 185, 1, 0.14);
    border-color: rgba(255, 185, 1, 0.3);
}

.module-link-line,
.module-link-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
}

.module-link-title {
    justify-content: flex-start;
    flex: 1;
}

.module-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.98rem;
}

.module-emoji img {
    width: 19px;
    height: 19px;
    display: block;
}

.workspace-module-nav strong,
.workspace-sidebar-note strong {
    color: #ffffff;
}

.workspace-module-nav strong {
    display: block;
    min-width: 0;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ffd85e);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.workspace-main {
    display: grid;
    gap: 24px;
    min-width: 0;
    margin-left: 348px;
    padding-left: 24px;
}

.workspace-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    padding: 30px;
    border-radius: 32px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 185, 1, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.96));
    box-shadow: 0 26px 62px rgba(10, 10, 79, 0.08);
}

.workspace-hero-card h1 {
    margin: 10px 0 14px;
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 3vw, 2.95rem);
    line-height: 1.04;
    color: var(--primary);
}

.workspace-hero-meta,
.connectivity-metadata,
.detail-metadata-grid,
.workspace-health-grid,
.workspace-summary-grid,
.tax-grid {
    display: grid;
    gap: 16px;
}

.workspace-hero-meta {
    grid-template-columns: 1fr;
}

.workspace-hero-meta article,
.workspace-health-card,
.workspace-summary-card,
.tax-card,
.detail-metadata-grid article,
.connectivity-metadata article {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.workspace-hero-meta span,
.workspace-health-card span,
.workspace-summary-card span,
.tax-card span,
.detail-metadata-grid span,
.connectivity-metadata span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.workspace-hero-meta strong,
.workspace-health-card strong,
.workspace-summary-card strong,
.tax-card strong,
.detail-metadata-grid strong,
.connectivity-metadata strong {
    display: block;
    margin-top: 8px;
    color: var(--primary);
}

.workspace-summary-grid,
.workspace-health-grid,
.tax-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-summary-card,
.workspace-health-card,
.tax-card {
    box-shadow: 0 18px 44px rgba(10, 10, 79, 0.06);
}

.workspace-summary-card strong,
.tax-card strong {
    font-family: "Sora", sans-serif;
}

.workspace-summary-card strong {
    font-size: 1.8rem;
}

.workspace-health-card strong {
    font-size: 1.16rem;
}

.tone-accent {
    background: linear-gradient(180deg, rgba(255, 185, 1, 0.2), rgba(255, 255, 255, 0.96));
}

.tone-dark {
    background: linear-gradient(180deg, #0b0d3a 0%, #0a0a4f 100%);
}

.tone-dark span,
.tone-dark strong,
.tone-dark p {
    color: #ffffff;
}

.tone-warning {
    background: linear-gradient(180deg, rgba(255, 185, 1, 0.22), rgba(255, 251, 240, 0.96));
}

.module-panel {
    display: grid;
    gap: 22px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 60px rgba(10, 10, 79, 0.08);
}

.module-page-shell {
    min-height: 420px;
}

.module-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.module-panel-copy {
    display: grid;
    gap: 8px;
}

.module-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.integration-flow-list {
    display: grid;
    gap: 12px;
    margin: 12px 0 20px;
}

.integration-flow-list div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    border-radius: 8px;
    background: rgba(10, 10, 79, 0.04);
}

.integration-flow-list strong {
    color: var(--primary);
}

.integration-flow-list span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.woo-product-thumb {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(10, 10, 79, 0.1);
    background: #ffffff;
}

.module-panel-header h2,
.module-card h3,
.permission-lock-card h3,
.connectivity-card h3 {
    margin: 8px 0 0;
    color: var(--primary);
    font-family: "Sora", sans-serif;
}

.module-panel-header p {
    margin: 0;
    max-width: 54ch;
}

.workspace-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 9, 31, 0.56);
    z-index: 60;
}

.workspace-modal[hidden] {
    display: none !important;
}

.workspace-modal-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
    box-shadow: 0 32px 88px rgba(10, 10, 79, 0.22);
}

.workspace-modal-card-wide {
    width: min(1120px, 100%);
}

.workspace-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.workspace-modal-head h3 {
    margin: 8px 0 0;
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.workspace-modal-copy {
    margin: 0;
    color: var(--muted);
}

.modal-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.field input[type="file"] {
    min-height: auto;
    padding: 12px 14px;
    line-height: 1.4;
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: rgba(10, 10, 79, 0.08);
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

body.is-modal-open {
    overflow: hidden;
}

.sri-preview-sheet {
    display: grid;
    gap: 16px;
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background: #ffffff;
}

.sri-preview-top,
.sri-preview-meta-grid,
.sri-preview-bottom {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sri-preview-panel,
.sri-preview-tax-box,
.sri-access-box,
.sri-info-card,
.sri-additional-box,
.sri-total-box {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(10, 10, 79, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.96));
}

.sri-preview-panel h4,
.sri-preview-tax-box strong,
.sri-access-box strong,
.sri-info-card strong,
.sri-total-box strong {
    margin: 0;
    color: var(--primary);
    font-family: "Sora", sans-serif;
}

.sri-preview-panel p,
.sri-preview-tax-box p,
.sri-access-box p,
.sri-info-card p,
.sri-additional-box p {
    margin: 0;
    color: var(--muted);
}

.sri-preview-tax-box {
    align-content: start;
    border-color: rgba(10, 10, 79, 0.24);
}

.sri-preview-tax-box span,
.sri-access-box span,
.sri-info-card span,
.sri-additional-box span,
.sri-total-box span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6d7390;
}

.sri-access-box {
    grid-template-columns: 1fr;
    background: rgba(10, 10, 79, 0.04);
}

.sri-access-box strong {
    font-size: 0.96rem;
    line-height: 1.4;
    word-break: break-all;
}

.sri-preview-table {
    min-width: 100%;
}

.sri-total-box {
    align-content: start;
}

.sri-total-box > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.sri-total-box .total-emphasis {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(10, 10, 79, 0.12);
}

.sri-total-box .total-emphasis strong {
    font-size: 1.3rem;
}

.modal-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;
    background: rgba(10, 10, 79, 0.12);
}

.compact-head {
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 12px;
}

.compact-head h4 {
    margin: 0 0 4px;
    color: var(--primary);
    font-size: 1rem;
}

.compact-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.compact-select {
    min-width: 170px;
}

.sequence-config-form {
    display: grid;
    gap: 14px;
}

.sequence-environment-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.sequence-environment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.sequence-environment-head strong {
    color: var(--primary);
    font-size: 0.98rem;
}

.sequence-environment-head span {
    color: var(--muted);
    font-size: 0.82rem;
}

.sequence-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 8px;
}

.sequence-table {
    min-width: 760px;
}

.sequence-table th,
.sequence-table td {
    white-space: nowrap;
}

.sequence-table input {
    width: 100%;
    min-width: 88px;
    border: 1px solid rgba(10, 10, 79, 0.12);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--primary);
    font: inherit;
}

.sequence-next {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--primary);
    font-weight: 800;
}

.payment-choice-field {
    align-content: start;
}

.payment-choice-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-choice-row .checkbox-field {
    min-height: 46px;
    padding: 10px 12px;
}

.insight-list {
    display: grid;
    gap: 10px;
}

.insight-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.insight-item strong {
    color: var(--primary);
    font-size: 0.92rem;
}

.insight-item span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.invoice-lines-panel {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.invoice-issue-card {
    width: min(1120px, calc(100vw - 36px));
    padding: 28px 34px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(10, 10, 79, 0.14);
}

.invoice-issue-card .workspace-modal-head {
    align-items: start;
}

.invoice-issue-card .workspace-kicker {
    display: none;
}

.invoice-issue-card #invoice-create-title {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 4.8vw, 4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.invoice-issue-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 46px;
}

.invoice-issue-form > .field:has(input[readonly]),
.invoice-customer-search-field,
.invoice-issue-form > .field:has(#create-customer-search) {
    display: none;
}

.invoice-issue-form .payment-choice-field {
    display: none !important;
}

.invoice-issue-form > .field:has(input[name="new_customer_tax_id"]) {
    order: 1;
}

.invoice-issue-form > .field:has(input[name="new_customer_name"]) {
    order: 2;
}

.invoice-issue-form > .field:has(input[name="new_customer_address"]) {
    order: 3;
}

.invoice-issue-form > .field:has(input[name="new_customer_email"]) {
    order: 4;
}

.invoice-issue-form > .field:has(input[name="new_customer_phone"]) {
    order: 5;
}

.invoice-issue-form > .invoice-issue-section {
    order: 6;
}

.invoice-issue-form > .invoice-lines-panel {
    order: 7;
}

.invoice-issue-form > .invoice-payments-section {
    order: 8;
}

.invoice-issue-form > .form-actions {
    order: 10;
}

.invoice-issue-form > .field span {
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 1.03rem;
    font-weight: 900;
}

.invoice-issue-form > .field input {
    min-height: 70px;
    padding: 0 18px;
    border: 1.5px solid rgba(13, 16, 84, 0.48);
    border-radius: 11px;
    font-size: 1rem;
    font-style: italic;
}

.invoice-issue-form > .field input::placeholder {
    color: #6f7078;
}

.invoice-issue-section {
    display: grid;
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.invoice-section-title h4 {
    display: none;
    margin: 0;
    color: var(--primary);
    font-family: "Sora", sans-serif;
}

.invoice-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.invoice-product-picker {
    position: relative;
}

.invoice-product-picker > span {
    display: none;
}

.invoice-product-picker::before {
    content: "";
    position: absolute;
    right: 70px;
    top: 18px;
    width: 15px;
    height: 15px;
    border: 2.5px solid #5b6270;
    border-radius: 50%;
    pointer-events: none;
}

.invoice-product-picker input {
    min-height: 68px;
    padding: 0 74px 0 38px;
    border: 1.5px solid rgba(13, 16, 84, 0.48);
    border-radius: 11px 11px 0 0;
    font-style: italic;
    font-weight: 700;
}

.invoice-product-picker::after {
    content: "";
    position: absolute;
    right: 62px;
    top: 32px;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: #5b6270;
    pointer-events: none;
    transform: rotate(45deg);
}

.invoice-product-toggle {
    position: absolute;
    right: 18px;
    top: 15px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(10, 10, 79, 0.06);
    color: var(--primary);
    cursor: pointer;
    transition: background 0.18s ease;
}

.invoice-product-toggle::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.invoice-product-toggle[aria-expanded="true"] {
    background: rgba(255, 185, 1, 0.2);
}

.invoice-product-toggle[aria-expanded="true"]::before {
    transform: rotate(-135deg) translateY(-1px);
}

.invoice-product-results {
    position: static;
    display: grid;
    gap: 0;
    max-height: 370px;
    overflow: auto;
    border: 1px solid rgba(13, 16, 84, 0.18);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
}

.invoice-product-results::before {
    content: "\00DA ltimos 10 productos";
    display: block;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(13, 16, 84, 0.18);
    color: #777982;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 800;
}

.invoice-product-option {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(230px, 1fr) auto;
    gap: 10px;
    width: 100%;
    min-height: 34px;
    padding: 6px 14px;
    border: 0;
    border-bottom: 1px solid rgba(13, 16, 84, 0.14);
    border-radius: 0;
    background: #ffffff;
    color: #11131e;
    text-align: left;
    cursor: pointer;
}

.invoice-product-option:hover {
    background: rgba(255, 185, 1, 0.12);
}

.invoice-product-option span {
    color: var(--muted);
    font-size: 0.8rem;
    align-self: center;
}

.invoice-product-option em {
    grid-row: auto;
    grid-column: auto;
    align-self: center;
    font-style: normal;
    font-weight: 800;
}

.invoice-lines-list {
    display: grid;
    gap: 0;
}

.invoice-lines-list::before {
    content: none;
    display: none;
}

.invoice-line-head {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(96px, 0.4fr) minmax(110px, 0.5fr) minmax(110px, 0.5fr) minmax(120px, 0.5fr) 48px;
    gap: 22px;
    margin: 0 0 6px;
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.invoice-lines-panel .module-card-head {
    display: none;
}

.invoice-line-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(96px, 0.4fr) minmax(110px, 0.5fr) minmax(110px, 0.5fr) minmax(120px, 0.5fr) 48px;
    gap: 22px;
    align-items: end;
    padding: 6px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.invoice-line-row .field span,
.invoice-line-row .field:has(.line-discount),
.invoice-line-row .invoice-product-field > span {
    display: none;
}

.invoice-line-row input,
.line-subtotal-box {
    min-height: 60px;
    border: 1.5px solid rgba(13, 16, 84, 0.48);
    border-radius: 11px;
    background: #ffffff;
    text-align: center;
}

.invoice-line-row .line-item-search {
    text-align: left;
}

.invoice-line-row .remove-invoice-line {
    min-width: 36px;
    min-height: 56px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    position: relative;
}

.invoice-line-row .remove-invoice-line::before {
    content: "â–¥";
    color: #0750ad;
    font-size: 2rem;
    line-height: 1;
}

.invoice-payments-section {
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 22px 34px;
    align-items: start;
}

.invoice-payments-list {
    display: grid;
    gap: 0;
    grid-column: 1;
    border: 1px solid rgba(13, 16, 84, 0.16);
}

.invoice-payment-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 95px 75px 85px 90px;
    gap: 0;
    align-items: center;
}

.invoice-payment-row input,
.invoice-payment-row select {
    min-height: 38px;
    border: 0;
    border-right: 1px solid rgba(13, 16, 84, 0.16);
    border-radius: 0;
    padding: 0 10px;
    color: var(--primary);
    font: inherit;
}

.invoice-line-row .remove-invoice-line,
.invoice-payment-row .remove-payment-row {
    display: grid;
    place-items: center;
    min-width: 36px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0750ad;
    overflow: visible;
}

.invoice-line-row .remove-invoice-line::before,
.invoice-payment-row .remove-payment-row::before {
    content: none;
}

.remove-invoice-line span[aria-hidden="true"],
.remove-payment-row span[aria-hidden="true"] {
    color: #0750ad;
    font-size: 1.55rem;
    line-height: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.line-subtotal-box {
    display: grid;
    gap: 0;
    min-height: 60px;
    align-content: center;
    color: var(--primary);
    font-size: 0.82rem;
}

.line-subtotal-box span {
    display: none;
}

.line-subtotal-box strong {
    color: var(--primary);
    font-size: 0.92rem;
}

.invoice-live-total {
    display: grid;
    grid-column: 2;
    gap: 0;
    align-self: start;
    border: 1px solid rgba(13, 16, 84, 0.16);
    color: var(--primary);
    font-size: 0.86rem;
}

.invoice-live-total span {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
    min-width: 0;
    padding: 5px 8px;
    border-bottom: 1px solid rgba(13, 16, 84, 0.12);
    border-radius: 0;
    background: #ffffff;
}

.invoice-live-total span:last-child {
    margin-top: 26px;
    padding-top: 14px;
    border: 0;
    border-top: 1.5px solid rgba(10, 87, 190, 0.4);
    background: #ffffff;
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
}

.invoice-submit-btn {
    min-height: 74px;
    border-radius: 22px;
    background: var(--accent);
    color: var(--primary);
    font-family: "Sora", sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
}

.access-key-cell {
    display: inline-block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.report-documents-table {
    min-width: 1280px;
}

@media (max-width: 900px) {
    .invoice-line-row {
        grid-template-columns: 1fr;
    }

    .invoice-client-grid,
    .invoice-payment-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive específico para el modal de emitir factura (robusto para móviles) */
@media (max-width: 780px) {
    /* Padding general del overlay del modal */
    .workspace-modal {
        padding: 14px;
        align-items: flex-start;
        min-height: 100dvh;
        overflow-y: auto;
    }

    /* Contenedor del modal de emisión: ocupar todo el ancho disponible en móvil */
    .workspace-modal-card-wide.invoice-issue-card {
        width: 100% !important;
        max-width: none;
        padding: 14px 12px;
        border-radius: 16px;
        margin: 0;
    }

    /* Cabecera más compacta y en columna */
    .invoice-issue-card .workspace-modal-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Formulario a 1 columna con gaps optimizados */
    .invoice-issue-form {
        grid-template-columns: 1fr;
        gap: 10px 12px;
    }

    .invoice-issue-form > .field input,
    .invoice-issue-form > .field select {
        min-height: 52px;
    }

    /* Buscador de productos */
    .invoice-product-picker input {
        min-height: 54px;
        padding-right: 78px; /* espacio para icono y toggle */
    }

    .invoice-product-picker::before {
        right: 62px;
        top: 16px;
        width: 14px;
        height: 14px;
    }

    .invoice-product-picker::after {
        right: 55px;
        top: 29px;
        width: 9px;
    }

    .invoice-product-toggle {
        top: 10px;
        right: 10px;
    }

    .invoice-product-results {
        max-height: 280px;
        overflow: auto;
    }

    /* Ocultar encabezado de columnas de detalle en móvil */
    .invoice-issue-card .invoice-line-head {
        display: none !important;
    }

    /* Detalle por fila apilado con etiquetas visibles */
    .invoice-line-row {
        grid-template-columns: 1fr !important;
        gap: 8px 10px;
    }

    .invoice-line-row .field span,
    .invoice-line-row .invoice-product-field > span {
        display: block !important;
        color: var(--muted);
        font-weight: 700;
    }

    .invoice-line-row input,
    .line-subtotal-box {
        min-height: 46px;
    }

    /* Pagos y totales apilados */
    .invoice-payments-section {
        grid-template-columns: 1fr !important;
    }

    .invoice-payment-row {
        grid-template-columns: 1fr !important;
        gap: 8px 10px;
    }

    .invoice-live-total {
        grid-template-columns: 1fr;
        gap: 8px;
        grid-column: 1 !important;
    }

    /* Botón de emitir ocupa ancho completo */
    .invoice-submit-btn {
        width: 100%;
        min-height: 56px;
    }
}

@media (max-width: 640px) {
    .workspace-modal {
        padding: 10px;
        min-height: 100dvh;
        overflow-y: auto;
    }

    .workspace-modal-card-wide.invoice-issue-card {
        padding: 12px 10px;
        border-radius: 14px;
        margin: 0;
    }
}

/* Ajustes adicionales específicos del modal de emisión para asegurar diseño responsive sólido */
@media (max-width: 820px) {
    /* Evitar límites heredados de otros modales */
    .workspace-modal-card.invoice-issue-card,
    .workspace-modal-card-wide.invoice-issue-card {
        width: 100% !important;
        max-width: none !important;
    }

    .invoice-issue-form {
        grid-template-columns: 1fr !important;
        gap: 10px 12px;
    }

    .invoice-client-grid {
        grid-template-columns: 1fr !important;
        gap: 8px 10px;
    }

    .invoice-lines-panel {
        padding: 8px;
    }

    .invoice-issue-card #invoice-create-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 12px;
    }
}

/* Fallback general para navegadores que no soportan dvh (aplicar altura mínima razonable) */
.workspace-modal {
    /* 100dvh cubrirá móviles modernos; en otros, 100vh seguirá aplicando como alternativa del UA */
    min-height: 100vh;
}

.module-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wide-asymmetric-grid {
    grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
}

.module-card,
.permission-lock-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background: #fbfbff;
}

.permission-lock-card {
    align-content: start;
    min-height: 220px;
    background: linear-gradient(180deg, rgba(10, 10, 79, 0.05), rgba(255, 255, 255, 0.96));
}

.module-card-head,
.split-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.split-head {
    align-items: flex-start;
}

.status-chip,
.mini-chip-row span,
.contact-tags span,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.status-chip,
.mini-chip-row span,
.contact-tags span {
    background: rgba(10, 10, 79, 0.08);
    color: var(--primary);
}

.mini-chip-row,
.table-action-row,
.detail-action-row,
.contact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.workspace-form-grid.compact-form {
    gap: 10px 12px;
}

.workspace-form-grid .field {
    margin: 0;
}

.workspace-form-grid .field input,
.workspace-form-grid .field select {
    min-height: 48px;
}

.compact-form .field {
    gap: 6px;
}

.compact-form .field span {
    font-size: 0.82rem;
    line-height: 1.25;
}

.compact-form .field input,
.compact-form .field select {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.compact-form .field textarea {
    min-height: 76px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.filters-form {
    grid-template-columns: 130px 130px minmax(150px, 1fr) minmax(150px, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.filters-form .field span {
    font-size: 0.72rem;
}

.filters-form .field input,
.filters-form .field select {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.filters-form .actions-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.filters-form .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
}

.full-span {
    grid-column: 1 / -1;
}

.compact-form .btn {
    grid-column: 1 / -1;
    width: 100%;
}

.table-shell {
    overflow: auto;
    border: 1px solid #cfd7ea;
    border-radius: 8px;
    background: #ffffff;
}

.workspace-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: #ffffff;
}

.workspace-table-wide {
    min-width: 760px;
}

.workspace-table th,
.workspace-table td {
    padding: 12px 12px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #d7deee;
}

.workspace-table th {
    background: #0f4fa8;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.workspace-table tbody tr:nth-child(even) td {
    background: #f7f9fd;
}

.workspace-table tbody tr:hover td {
    background: #fff8df;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.table-page-numbers {
    display: flex;
    gap: 4px;
}

.table-page-btn,
.table-page-number {
    min-height: 32px;
    border: 1px solid #cfd7ea;
    background: #ffffff;
    color: var(--primary);
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 700;
    cursor: pointer;
}

.table-page-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.table-page-number[aria-current="page"] {
    background: #0f4fa8;
    color: #ffffff;
    border-color: #0f4fa8;
}

.table-pagination-info {
    color: #5d6683;
    font-size: 0.82rem;
    font-weight: 700;
}

.workspace-table td strong,
.contact-item strong,
.list-row-card strong,
.insight-list strong,
.empty-state-inline strong,
.automation-log-card strong,
.notification-card strong {
    display: block;
    color: var(--primary);
}

.workspace-table td span,
.list-row-card p,
.automation-log-card p,
.notification-card p,
.detail-metadata-grid p,
.insight-list p,
.empty-state-inline p,
.alert-card p,
.contact-item p {
    display: block;
    margin-top: 4px;
}

.status-pill {
    background: rgba(10, 10, 79, 0.08);
    color: var(--primary);
}

.status-pill.is-pendiente {
    background: rgba(255, 185, 1, 0.2);
    color: #8d5d00;
}

.status-pill.is-cobrado,
.status-pill.is-pagado,
.automation-log-card.is-enviado {
    background: rgba(34, 197, 94, 0.12);
    color: #0b7a34;
}

.status-pill.is-anulado {
    background: rgba(220, 38, 38, 0.12);
    color: #a11a1a;
}

.table-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 999px;
    background: rgba(10, 10, 79, 0.06);
    color: var(--primary);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.table-link-btn.secondary {
    background: rgba(255, 185, 1, 0.18);
    border-color: rgba(255, 185, 1, 0.24);
}

.table-link-btn.danger {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.16);
    color: #a11a1a;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.contact-list,
.alert-stack,
.list-stack,
.notification-stack,
.insight-list,
.log-stack,
.connectivity-metadata,
.detail-metadata-grid {
    display: grid;
    gap: 12px;
}

.contact-item,
.list-row-card,
.insight-list article,
.automation-log-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    background: #ffffff;
}

.automation-log-card {
    align-items: center;
}

.automation-log-card span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(10, 10, 79, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
}

.automation-log-card.is-fallido {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.14);
}

.automation-log-card.is-fallido span {
    background: rgba(220, 38, 38, 0.12);
    color: #a11a1a;
}

.alert-card,
.notification-card,
.empty-state-inline {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.alert-card.warning,
.notification-card.tone-warning {
    background: rgba(255, 185, 1, 0.14);
    border-color: rgba(255, 185, 1, 0.24);
}

.alert-card.success,
.notification-card.tone-accent {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.18);
}

.notification-card.tone-dark {
    background: rgba(10, 10, 79, 0.08);
    border-color: rgba(10, 10, 79, 0.14);
}

.empty-state-inline {
    background: rgba(10, 10, 79, 0.04);
    border-style: dashed;
    border-color: rgba(10, 10, 79, 0.16);
}

.btn-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.tax-card strong {
    font-size: 1.55rem;
}

.workspace-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    align-items: end;
    gap: 14px;
    min-height: 250px;
}

.chart-column {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.chart-bar {
    display: block;
    width: min(100%, 52px);
    min-height: 22px;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(180deg, var(--accent), #ffd669);
    box-shadow: inset 0 -12px 16px rgba(255, 255, 255, 0.18);
}

.chart-column strong {
    color: var(--primary);
}

.chart-column small {
    color: var(--muted);
}

.connectivity-card {
    background:
        radial-gradient(circle at top right, rgba(255, 185, 1, 0.18), transparent 28%),
        linear-gradient(180deg, #0b0d3a 0%, #111a70 100%);
    color: #ffffff;
}

.connectivity-card h3,
.connectivity-card strong {
    color: #ffffff;
}

.connectivity-card p,
.connectivity-card .workspace-kicker,
.connectivity-metadata span {
    color: rgba(255, 255, 255, 0.76);
}

.connectivity-metadata article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.connectivity-metadata strong {
    word-break: break-word;
}

.module-title-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-title-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.whatsapp-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.facebook-sdk-status {
    font-size: 0.9rem;
    font-weight: 700;
}

.whatsapp-template-action {
    display: flex;
    margin-top: -6px;
}

.workspace-tabs {
    display: block;
}

.workspace-tab-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(10, 10, 79, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 14px 34px rgba(10, 10, 79, 0.08);
    backdrop-filter: blur(12px);
}

.workspace-tab {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.workspace-tab:hover {
    background: rgba(10, 10, 79, 0.06);
}

.workspace-tab.is-active {
    background: linear-gradient(135deg, var(--primary), #273075);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(10, 10, 79, 0.18);
    transform: translateY(-1px);
}

.workspace-tab-panel {
    display: grid;
    gap: 18px;
}

.workspace-tab-panel[hidden] {
    display: none;
}

body.dashboard-page .whatsapp-module-shell > .whatsapp-connect-actions,
body.dashboard-page .whatsapp-module-shell > .facebook-sdk-status,
body.dashboard-page .whatsapp-module-shell > .whatsapp-template-action,
body.dashboard-page .whatsapp-module-shell > .workspace-tabs {
    padding-left: 32px;
    padding-right: 32px;
}

body.dashboard-page .whatsapp-module-shell > .whatsapp-connect-actions {
    padding-top: 18px;
}

body.dashboard-page .whatsapp-module-shell > .facebook-sdk-status,
body.dashboard-page .whatsapp-module-shell > .whatsapp-template-action,
body.dashboard-page .whatsapp-module-shell > .workspace-tabs {
    margin-top: 14px;
}

.payroll-tabs {
    margin-bottom: 16px;
}

.payroll-tab-shell .workspace-tab-panel {
    min-width: 0;
}

.bulk-recipient-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow: auto;
    padding: 4px;
}

.bulk-recipient {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(10, 10, 79, 0.08);
    border-radius: 12px;
    background: #ffffff;
}

.bulk-recipient input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.bulk-recipient span {
    display: grid;
    gap: 2px;
}

.bulk-recipient small {
    color: var(--muted);
    font-weight: 700;
}

body.whatsapp-chat-page {
    min-height: 100vh;
    background: #e9edef;
}

body.whatsapp-chat-page::before,
body.whatsapp-chat-page::after,
body.whatsapp-chat-page .page-background,
body.whatsapp-chat-page .site-header,
body.whatsapp-chat-page .site-footer {
    display: none;
}

.chat-app-shell {
    min-height: 100vh;
    padding: 18px;
    background: linear-gradient(180deg, #00a884 0 130px, #e9edef 130px 100%);
}

.chat-app {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    width: min(1500px, 100%);
    height: calc(100vh - 36px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(17, 27, 33, 0.1);
    border-radius: 8px;
    background: #f0f2f5;
    box-shadow: 0 22px 55px rgba(17, 27, 33, 0.18);
}

.chat-sidebar {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    background: #ffffff;
    border-right: 1px solid #d1d7db;
}

.chat-sidebar-head,
.chat-thread-head {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 12px 16px;
    background: #f0f2f5;
}

.chat-sidebar-head {
    justify-content: space-between;
}

.chat-sidebar-head h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.chat-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #ffffff;
    color: #111b21;
    font-size: 1.4rem;
    font-weight: 800;
}

.chat-search {
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #eef0f1;
}

.chat-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f0f2f5;
    padding: 0 16px;
    color: #111b21;
    font: inherit;
    outline: none;
}

.chat-list {
    overflow: auto;
    background: #ffffff;
}

.chat-list-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #111b21;
}

.chat-list-item:hover,
.chat-list-item.is-active {
    background: #f0f2f5;
}

.chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.chat-unread-badge[hidden] {
    display: none;
}

.chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #dfe5e7;
    color: #54656f;
    font-weight: 900;
}

.chat-avatar.large {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.chat-list-copy {
    display: grid;
    min-width: 0;
}

.chat-list-copy strong,
.chat-thread-head strong {
    color: #111b21;
    font-size: 0.96rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-copy small,
.chat-thread-head small,
.chat-list-item time {
    color: #667781;
    font-size: 0.78rem;
}

.chat-empty-list,
.chat-empty-thread,
.chat-thread-placeholder {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 28px;
    text-align: center;
    color: #667781;
}

.chat-empty-list strong,
.chat-empty-thread strong,
.chat-thread-placeholder h2 {
    margin: 0;
    color: #111b21;
}

.chat-thread {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    background: #efeae2;
}

.chat-thread-head {
    gap: 12px;
    border-left: 1px solid #d1d7db;
}

.chat-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: #111b21;
    font-size: 1.9rem;
    font-weight: 800;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding: 24px clamp(14px, 4vw, 72px);
}

.chat-bubble {
    width: fit-content;
    max-width: min(680px, 76%);
    padding: 8px 10px 6px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(17, 27, 33, 0.12);
}

.chat-bubble p {
    margin: 0;
    color: #111b21;
    line-height: 1.45;
    white-space: pre-wrap;
}

.chat-bubble span {
    display: block;
    margin-top: 2px;
    color: #667781;
    font-size: 0.7rem;
    text-align: right;
}

.chat-bubble.incoming {
    align-self: flex-start;
    background: #ffffff;
    border-top-left-radius: 2px;
}

.chat-bubble.outgoing {
    align-self: flex-end;
    background: #d9fdd3;
    border-top-right-radius: 2px;
}

.chat-status-line {
    align-self: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #667781;
    font-size: 0.74rem;
}

.chat-composer {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px 16px;
    background: #f0f2f5;
}

.chat-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #54656f;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.chat-tool-btn:hover,
.chat-tool-btn.is-recording {
    background: #dfe5e7;
    color: #00a884;
}

.chat-input-wrap {
    position: relative;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.chat-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: min(320px, 78vw);
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 27, 33, 0.18);
}

.chat-emoji-panel[hidden] {
    display: none;
}

.chat-emoji-panel button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f0f2f5;
    cursor: pointer;
    font-size: 1rem;
}

.chat-attachment-name {
    width: fit-content;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #d9fdd3;
    color: #111b21;
    font-size: 0.76rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-composer textarea {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    resize: vertical;
    border: 0;
    border-radius: 22px;
    padding: 11px 16px;
    background: #ffffff;
    color: #111b21;
    font: inherit;
    line-height: 1.35;
    outline: none;
}

.chat-send-btn {
    min-width: 86px;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #00a884;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.chat-thread-placeholder {
    align-content: center;
    background: #f7f8fa;
    border-bottom: 6px solid #25d366;
}

.chat-thread-placeholder img {
    width: 74px;
    height: 74px;
}

.workspace-overlay {
    display: none;
}

@media (max-width: 1400px) {
    .workspace-summary-grid,
    .workspace-health-grid,
    .tax-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-hero-card {
        grid-template-columns: 1fr;
    }

    .module-two-column,
    .wide-asymmetric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    body.dashboard-page .site-header {
        width: calc(100% - 316px);
        margin-left: 316px;
    }

    body.dashboard-page .flash-stack.container {
        padding-left: 352px;
    }

    .workspace-sidebar {
        width: 316px;
    }

    .workspace-main {
        margin-left: 332px;
    }
}

@media (max-width: 980px) {
    body.dashboard-page .site-header {
        width: 100%;
        margin-left: 0;
    }

    body.dashboard-page .header-inner {
        justify-content: space-between;
    }

    body.dashboard-page .flash-stack.container {
        width: calc(100% - 24px);
        padding-left: 0;
    }

    .billing-workspace {
        padding-top: 18px;
    }

    .workspace-frame {
        padding: 0 16px;
    }

    .workspace-mobile-bar,
    .workspace-sidebar-toggle {
        display: inline-flex;
    }

    .workspace-mobile-bar {
        display: flex;
        margin-left: 0;
        margin-right: 0;
    }

    .workspace-sidebar {
        inset: 0 auto 0 0;
        width: min(86vw, 320px);
        border-radius: 0 28px 28px 0;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        z-index: 40;
        padding-top: 28px;
    }

    .workspace-shell.is-sidebar-open .workspace-sidebar {
        transform: translateX(0);
    }

    .workspace-overlay {
        position: fixed;
        inset: 0;
        background: rgba(7, 9, 31, 0.46);
        z-index: 35;
    }

    .workspace-main {
        margin-left: 0;
        padding-left: 0;
    }

    .module-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-modal {
        padding: 16px;
    }

    .modal-action-row {
        justify-content: flex-start;
    }
}

@media (max-width: 780px) {
    .workspace-summary-grid,
    .workspace-health-grid,
    .tax-grid,
    .workspace-form-grid,
    .detail-metadata-grid {
        grid-template-columns: 1fr;
    }

    .sri-preview-top,
    .sri-preview-meta-grid,
    .sri-preview-bottom {
        grid-template-columns: 1fr;
    }

    .full-span {
        grid-column: auto;
    }

    .contact-item,
    .list-row-card,
    .insight-list article,
    .automation-log-card {
        flex-direction: column;
    }
}

/* ============
   Móvil: Emitir factura (modal)
   Ajustes responsive específicos para el flujo de emisión en pantallas pequeñas
   ============ */
@media (max-width: 780px) {
    /* Contenedor del modal de emisión: ocupar ancho completo cómodo en móvil */
    .workspace-modal-card-wide.invoice-issue-card {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 16px;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(10, 10, 79, 0.18);
    }

    /* Título más compacto en móvil */
    .invoice-issue-card #invoice-create-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.05;
        margin-bottom: 8px;
    }

    /* Formulario en 1 columna y controles menos altos para mejor densidad */
    .invoice-issue-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .invoice-issue-form > .field input {
        min-height: 52px;
        font-style: normal;
    }

    /* Buscador de productos: iconos y alturas ajustadas */
    .invoice-product-picker input {
        min-height: 54px;
        padding: 0 52px 0 40px;
        border-radius: 10px 10px 0 0;
    }

    .invoice-product-picker::before {
        right: 52px;
        top: 15px;
        width: 12px;
        height: 12px;
    }

    .invoice-product-picker::after {
        right: 47px;
        top: 25px;
        width: 8px;
        height: 3px;
    }

    .invoice-product-toggle {
        top: 10px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .invoice-product-results {
        max-height: 280px;
    }

    /* Opción de producto: apilar datos para caber mejor */
    .invoice-product-option {
        grid-template-columns: 1fr;
        gap: 2px;
        align-items: start;
    }

    /* Encabezado de columnas del detalle: oculto en móvil */
    .invoice-line-head {
        display: none;
    }

    /* Fila de producto: apilar campos y mostrar etiquetas para claridad */
    .invoice-line-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
    }

    .invoice-line-row input,
    .line-subtotal-box {
        min-height: 50px;
        text-align: left;
    }

    /* Prioridad sobre reglas que ocultan labels en desktop */
    .invoice-line-row .field span,
    .invoice-line-row .invoice-product-field > span {
        display: block !important;
        font-size: 0.78rem;
        color: #6d7390;
        font-weight: 800;
    }

    /* Si se desea mostrar el descuento en móvil, re-habilitar el campo */
    .invoice-line-row .field:has(.line-discount) {
        display: grid;
    }

    /* Pagos y totales: apilar y ajustar rejillas */
    .invoice-payments-section {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .invoice-payments-list {
        grid-column: auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .invoice-payment-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    .invoice-live-total {
        grid-column: auto;
        font-size: 0.92rem;
    }

    .invoice-live-total span {
        grid-template-columns: 1fr auto;
        padding: 8px 10px;
    }

    .invoice-live-total span:last-child {
        margin-top: 12px;
        padding-top: 12px;
    }

    /* Botón de enviar: ancho completo y menos alto en móvil */
    .invoice-submit-btn {
        width: 100%;
        min-height: 58px;
        font-size: 1.2rem;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    /* Afinar padding general del modal en pantallas muy pequeñas */
    .workspace-modal-card-wide.invoice-issue-card {
        padding: 14px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    body.dashboard-page .site-header .container,
    body.dashboard-page .site-footer .container,
    body.dashboard-page .flash-stack.container {
        width: calc(100% - 20px);
    }

    .billing-workspace {
        padding: 16px 0 62px;
    }

    .workspace-mobile-bar,
    .workspace-hero-card,
    .module-panel,
    .module-card,
    .permission-lock-card {
        padding: 20px;
    }

    .workspace-table,
    .workspace-table-wide {
        min-width: 520px;
    }

    .workspace-summary-card,
    .workspace-health-card,
    .tax-card,
    .workspace-hero-meta article {
        padding: 18px;
    }
}

@media (max-width: 780px) {
    .chat-app-shell {
        padding: 0;
        background: #e9edef;
    }

    .chat-app {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .chat-app:not(.has-active-chat) .chat-thread {
        display: none;
    }

    .chat-app.has-active-chat .chat-sidebar {
        display: none;
    }

    .chat-app.has-active-chat .chat-thread {
        display: grid;
    }

    .chat-sidebar {
        grid-template-rows: auto auto minmax(0, 1fr);
        border-right: 0;
    }

    .chat-list {
        display: block;
        overflow-y: auto;
        padding: 0;
    }

    .chat-list-item {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto auto;
        min-width: 0;
        min-height: 68px;
        border: 0;
        border-bottom: 1px solid #eef0f1;
        border-radius: 0;
    }

    .chat-list-item time {
        display: none;
    }

    .chat-thread-head {
        border-left: 0;
    }

    .chat-back-btn {
        display: inline-flex;
    }

    .chat-messages {
        padding: 16px 10px;
    }

    .chat-bubble {
        max-width: 86%;
    }

    .chat-composer {
        grid-template-columns: auto auto auto minmax(0, 1fr) auto;
        gap: 6px;
        padding: 8px;
    }

    .chat-tool-btn {
        width: 36px;
        height: 42px;
    }

    .chat-send-btn {
        min-width: 68px;
    }
}

/* ==========================================================
   Nuevo estilo dashboard - integrado desde /nuevo-estilo
   Mantiene el HTML y la lógica Flask actuales.
   ========================================================== */

body.dashboard-page {
    --dash-bg: #f1f4f8;
    --dash-sidebar: #0a0a4f;
    --dash-sidebar-active: #10106c;
    --dash-text: #071832;
    --dash-muted: #8190aa;
    --dash-line: #e1e7ef;
    --dash-blue: #1683f7;
    --dash-blue-dark: #0f72dc;
    background: var(--dash-bg);
    color: var(--dash-text);
    font-family: Arial, sans-serif;
}

body.dashboard-page .billing-workspace {
    min-height: 100vh;
    background: var(--dash-bg);
}

body.dashboard-page .workspace-shell {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.dashboard-page .workspace-frame {
    display: block;
    min-height: 100vh;
}

body.dashboard-page .workspace-sidebar {
    width: 288px;
    padding: 0;
    gap: 0;
    border-radius: 0;
    border-right: 1px solid #243447;
    background: var(--dash-sidebar);
    box-shadow: none;
}

body.dashboard-page .workspace-sidebar-head {
    padding: 25px 18px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

body.dashboard-page .workspace-sidebar-brand {
    width: 190px;
    max-width: 100%;
}

body.dashboard-page .workspace-sidebar-head h2 {
    margin: 0;
    max-width: 250px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

body.dashboard-page .workspace-sidebar-head .workspace-kicker {
    display: none;
}

body.dashboard-page .workspace-module-nav {
    display: block;
    flex: 1;
    overflow-y: auto;
    padding: 15px 8px 12px;
}

body.dashboard-page .workspace-module-nav::-webkit-scrollbar {
    width: 5px;
}

body.dashboard-page .workspace-module-nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 20px;
}

body.dashboard-page .workspace-module-nav a {
    min-height: 44px;
    margin: 0 0 3px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    transform: none;
}

body.dashboard-page .workspace-module-nav a:hover,
body.dashboard-page .workspace-module-nav a.is-active {
    background: var(--dash-sidebar-active);
    color: #ffffff;
    transform: none;
}

body.dashboard-page .module-link-line,
body.dashboard-page .module-link-title {
    width: 100%;
    gap: 11px;
}

body.dashboard-page .module-emoji {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 17px;
}

body.dashboard-page .workspace-module-nav strong {
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
}

body.dashboard-page .workspace-main {
    display: block;
    min-height: 100vh;
    margin-left: 288px;
    padding: 72px 0 0;
    background: var(--dash-bg);
}

body.dashboard-page .workspace-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 288px;
    z-index: 24;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    margin-left: 0;
    padding: 0 32px;
    background: var(--dash-sidebar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dashboard-page .workspace-topbar-copy {
    min-width: 0;
}

body.dashboard-page .workspace-topbar-copy strong {
    display: block;
    color: #ffffff;
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

body.dashboard-page .workspace-topbar-copy span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.35;
}

body.dashboard-page .workspace-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

body.dashboard-page .workspace-topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

body.dashboard-page .workspace-topbar-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.dashboard-page .workspace-user-menu .nav-user-trigger {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dashboard-page .workspace-user-menu .nav-user-dropdown {
    z-index: 40;
}

body.dashboard-page .workspace-user-menu .nav-user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--primary);
    text-decoration: none;
}

body.dashboard-page .workspace-user-menu .nav-user-dropdown a:hover {
    background: rgba(10, 10, 79, 0.06);
}

body.dashboard-page .workspace-user-menu .nav-user-dropdown .nav-logout {
    color: var(--primary);
    background: rgba(10, 10, 79, 0.08);
}

body.dashboard-page .workspace-user-menu.is-open .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.dashboard-page .module-panel,
body.dashboard-page .module-page-shell {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.dashboard-page .module-panel-header {
    min-height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ffffff;
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #e4e9f1;
    border-radius: 0;
    box-shadow: none;
}

body.dashboard-page .module-panel-copy .workspace-kicker {
    display: none;
}

body.dashboard-page .module-panel-header h2 {
    margin: 0;
    color: var(--dash-text);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

body.dashboard-page .module-panel-header p {
    margin: 2px 0 0;
    color: var(--dash-muted);
    font-size: 13px;
}

body.dashboard-page .module-one-column,
body.dashboard-page .module-grid,
body.dashboard-page .tax-grid,
body.dashboard-page .workspace-summary-grid {
    padding: 22px 32px;
    gap: 18px;
}

body.dashboard-page .module-card,
body.dashboard-page .tax-card,
body.dashboard-page .workspace-summary-card,
body.dashboard-page .workspace-health-card {
    border: 1px solid var(--dash-line);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.dashboard-page .module-card {
    padding: 0;
    overflow: hidden;
}

body.dashboard-page .module-card-head {
    min-height: 56px;
    padding: 14px 22px;
    border-bottom: 1px solid #e7ecf3;
    background: #ffffff;
}

body.dashboard-page .module-card-head h3 {
    color: var(--dash-text);
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
}

body.dashboard-page .module-card > form,
body.dashboard-page .module-card > .workspace-form-grid,
body.dashboard-page .module-card > p,
body.dashboard-page .module-card > .settings-grid,
body.dashboard-page .module-card > .payroll-tab-shell,
body.dashboard-page .module-card > .api-key-panel,
body.dashboard-page .module-card > .table-shell,
body.dashboard-page .module-card > .payroll-work-panel,
body.dashboard-page .module-card > .cards-grid,
body.dashboard-page .module-card > .insight-list,
body.dashboard-page .module-card > .bulk-recipient-list,
body.dashboard-page .module-card > .inventory-filters-bar,
body.dashboard-page .module-card > .inventory-actions-row {
    margin: 18px;
}

body.dashboard-page .filters-form {
    min-height: 50px;
    margin: 0 !important;
    padding: 10px 18px;
    display: flex;
    align-items: end;
    gap: 12px;
    overflow-x: auto;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

body.dashboard-page .field span,
body.dashboard-page .checkbox-field span {
    color: #5a6d86;
    font-size: 13px;
    font-weight: 600;
}

body.dashboard-page .field input,
body.dashboard-page .field select,
body.dashboard-page .field textarea,
body.dashboard-page .compact-field input,
body.dashboard-page .compact-field select {
    min-height: 34px;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    background: #ffffff;
    color: var(--dash-text);
    font-size: 14px;
    box-shadow: none;
}

body.dashboard-page .btn {
    min-height: 38px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}

body.dashboard-page .btn-primary {
    border-color: var(--dash-blue);
    background: var(--dash-blue);
    color: #ffffff;
}

body.dashboard-page .btn-primary:hover {
    background: var(--dash-blue-dark);
    border-color: var(--dash-blue-dark);
}

body.dashboard-page .btn-secondary,
body.dashboard-page .btn-outline,
body.dashboard-page .btn-ghost {
    border: 1px solid #73849b;
    background: #ffffff;
    color: #4b5d75;
}

body.dashboard-page .table-shell {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.dashboard-page .workspace-table {
    min-width: 1150px;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d4dce7;
}

body.dashboard-page .workspace-table th {
    padding: 14px 16px;
    border: 1px solid #d4dce7;
    background: var(--dash-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

body.dashboard-page .workspace-table td {
    padding: 14px 16px;
    border: 1px solid #e3e8f0;
    background: #ffffff;
    color: #061730;
    font-size: 14px;
    vertical-align: middle;
}

body.dashboard-page .workspace-table tbody tr:nth-child(even) td,
body.dashboard-page .workspace-table tbody tr:hover td {
    background: #f8fbff;
}

body.dashboard-page .status-chip {
    border-radius: 999px;
    border: 1px solid #d8e0ea;
    background: #f8fafc;
    color: #4b5d75;
    font-size: 12px;
}

body.dashboard-page .table-link-btn,
body.dashboard-page .inline-action-form button {
    min-height: 32px;
    border-radius: 4px;
    border: 1px solid #9badc4;
    background: #ffffff;
    color: #4b5d75;
    font-size: 13px;
}

body.dashboard-page .workspace-modal {
    background: rgba(15, 23, 42, 0.55);
}

body.dashboard-page .workspace-modal-card {
    border-radius: 6px;
    border: 1px solid #dfe6f2;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.25);
}

body.dashboard-page .workspace-modal-head {
    min-height: 70px;
    border-bottom: 1px solid #e4e9f1;
}

body.dashboard-page .workspace-modal-head h3 {
    color: var(--dash-text);
    font-size: 22px;
}

body.dashboard-page .table-pagination {
    padding: 14px 22px 22px;
    background: #ffffff;
    border-top: 0;
}

body.dashboard-page .inventory-workspace-card {
    overflow: hidden;
}

body.dashboard-page .inventory-filters-bar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

body.dashboard-page .inventory-filter-field {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #dde4ee;
    white-space: nowrap;
}

body.dashboard-page .inventory-filter-field span {
    color: #5a6d86;
    font-size: 13px;
    font-weight: 600;
}

body.dashboard-page .inventory-filter-field input,
body.dashboard-page .inventory-filter-field select {
    height: 34px;
    min-width: 130px;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    padding: 0 9px;
    background: #ffffff;
    color: #071832;
    font-size: 14px;
}

body.dashboard-page .inventory-clear-btn {
    margin-left: auto;
    min-height: 58px;
    padding: 0 25px;
    border: 0;
    border-left: 1px solid #dde4ee;
    background: #ffffff;
    color: #4c5d75;
    font-size: 14px;
    font-weight: 700;
}

body.dashboard-page .inventory-actions-row {
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #e7ecf3;
    background: #ffffff;
}

body.dashboard-page .inventory-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body.dashboard-page .inventory-table {
    min-width: 1380px;
}

body.dashboard-page .inventory-thumb-wrap,
body.dashboard-page .inventory-thumb-placeholder {
    width: 42px;
    height: 42px;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #f1f4f8;
}

body.dashboard-page .inventory-thumb-wrap {
    overflow: hidden;
}

body.dashboard-page .inventory-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

body.dashboard-page .inventory-thumb-placeholder {
    display: grid;
    place-items: center;
    color: #607086;
    font-size: 11px;
    font-weight: 800;
}

body.dashboard-page .inventory-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

body.dashboard-page .inventory-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.dashboard-page .inventory-status-disponible {
    color: #14823b;
}

body.dashboard-page .inventory-status-disponible::before {
    background: #22c55e;
}

body.dashboard-page .inventory-status-bajo-stock {
    color: #9a6a00;
}

body.dashboard-page .inventory-status-bajo-stock::before {
    background: #f4b400;
}

body.dashboard-page .inventory-status-agotado {
    color: #c51b1b;
}

body.dashboard-page .inventory-status-agotado::before {
    background: #ef4444;
}

body.dashboard-page .inventory-dots-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #9badc4;
    border-radius: 4px;
    background: #ffffff;
    color: #4b5d75;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

body.dashboard-page .table-page-btn,
body.dashboard-page .table-page-number {
    border-radius: 4px;
    border: 1px solid #d8e0ea;
    background: #ffffff;
    color: #66758b;
}

body.dashboard-page .table-page-number.is-active {
    background: var(--dash-blue);
    border-color: var(--dash-blue);
    color: #ffffff;
}

@media (max-width: 980px) {
    body.dashboard-page .workspace-mobile-bar {
        display: flex;
        min-height: 64px;
        padding: 10px 16px 10px 70px;
        border-bottom: 1px solid #e4e9f1;
        border-radius: 0;
    }

    body.dashboard-page .workspace-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 12px;
        left: 14px;
        z-index: 30;
        width: 42px;
        height: 42px;
        border-radius: 8px;
        background: var(--dash-sidebar);
        color: #ffffff;
    }

    body.dashboard-page .workspace-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.dashboard-page .workspace-shell.is-sidebar-open .workspace-sidebar {
        transform: translateX(0);
    }

    body.dashboard-page .workspace-main {
        margin-left: 0;
        padding-top: 64px;
    }

    body.dashboard-page .workspace-topbar {
        left: 0;
        padding: 0 16px 0 70px;
        min-height: 64px;
    }

    body.dashboard-page .workspace-topbar-copy span {
        display: none;
    }

    body.dashboard-page .module-panel-header {
        padding: 14px 18px;
    }

    body.dashboard-page .module-one-column,
    body.dashboard-page .module-grid,
    body.dashboard-page .tax-grid,
    body.dashboard-page .workspace-summary-grid {
        padding: 15px;
    }

    body.dashboard-page .whatsapp-module-shell > .whatsapp-connect-actions,
    body.dashboard-page .whatsapp-module-shell > .facebook-sdk-status,
    body.dashboard-page .whatsapp-module-shell > .whatsapp-template-action,
    body.dashboard-page .whatsapp-module-shell > .workspace-tabs {
        padding-left: 15px;
        padding-right: 15px;
    }

    body.dashboard-page .filters-form {
        flex-wrap: wrap;
        align-items: stretch;
    }

    body.dashboard-page .inventory-filters-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.dashboard-page .inventory-filter-field {
        border-right: 0;
        border-bottom: 1px solid #dde4ee;
    }

    body.dashboard-page .inventory-clear-btn {
        width: 100%;
        border-left: 0;
    }
}

/* Corrección visual dashboard según nuevo-estilo */
body.dashboard-page .site-header,
body.dashboard-page .site-footer {
    display: none !important;
}

body.dashboard-page main {
    padding: 0;
}

body.dashboard-page .workspace-sidebar {
    width: 288px;
}

body.dashboard-page .workspace-main {
    margin-left: 288px;
}

body.dashboard-page .workspace-sidebar-head {
    padding: 25px 18px 17px;
    gap: 18px;
}

body.dashboard-page .workspace-sidebar-brand {
    width: 190px;
}

body.dashboard-page .workspace-sidebar-head h2 {
    max-width: 250px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

body.dashboard-page .workspace-module-nav a {
    min-height: 44px;
    padding: 0 12px;
    gap: 11px;
    margin-bottom: 4px;
    color: #ffffff;
}

body.dashboard-page .module-emoji {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 18px;
}

body.dashboard-page .module-emoji img {
    width: 21px;
    height: 21px;
}

body.dashboard-page .workspace-module-nav strong {
    font-size: 15px;
    line-height: 1.15;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

body.dashboard-page .payroll-flow {
    min-height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    border-bottom: 1px solid #e3e8ef;
    background: #ffffff;
}

body.dashboard-page .flow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #607086;
    font-weight: 700;
    white-space: nowrap;
}

body.dashboard-page .flow-step.active {
    color: var(--dash-blue);
}

body.dashboard-page .flow-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e0ea;
    border-radius: 50%;
    background: #ffffff;
}

body.dashboard-page .flow-step.active .flow-icon {
    border-color: var(--dash-blue);
    background: var(--dash-blue);
    color: #ffffff;
}

body.dashboard-page .flow-line {
    width: 60px;
    height: 1px;
    flex: 0 0 60px;
    margin: 0 14px;
    background: #d8e0ea;
}

body.dashboard-page .payroll-dashboard-main {
    padding: 22px 32px 0;
}

body.dashboard-page .payroll-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 18px;
}

body.dashboard-page .payroll-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

body.dashboard-page .payroll-summary-card,
body.dashboard-page .payroll-design-card {
    border: 1px solid #e1e7ef;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body.dashboard-page .payroll-summary-card {
    padding: 18px;
}

body.dashboard-page .payroll-summary-card span,
body.dashboard-page .payroll-design-head span,
body.dashboard-page .payroll-result-box span,
body.dashboard-page .payroll-calc-box span,
body.dashboard-page .payroll-breakdown span,
body.dashboard-page .payroll-totals-box span {
    display: block;
    color: #8796b1;
    font-size: 13px;
}

body.dashboard-page .payroll-summary-card strong {
    display: block;
    margin-top: 5px;
    color: #071832;
    font-size: 20px;
}

body.dashboard-page .payroll-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

body.dashboard-page .payroll-design-card {
    padding: 18px;
}

body.dashboard-page .payroll-design-card.wide {
    grid-column: 1 / -1;
}

body.dashboard-page .payroll-design-head {
    margin-bottom: 16px;
}

body.dashboard-page .payroll-design-head h3 {
    margin: 0 0 5px;
    color: #071832;
    font-size: 16px;
}

body.dashboard-page .payroll-form-row,
body.dashboard-page .payroll-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.dashboard-page .payroll-calc-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
    border: 1px solid #e1e7ef;
}

body.dashboard-page .payroll-calc-box div {
    padding: 14px;
    border-right: 1px solid #e1e7ef;
}

body.dashboard-page .payroll-calc-box div:last-child {
    border-right: 0;
}

body.dashboard-page .payroll-result-box {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #e1e7ef;
    border-radius: 4px;
    background: #f8fafc;
}

body.dashboard-page .payroll-result-box strong,
body.dashboard-page .payroll-calc-box strong {
    display: block;
    margin-top: 5px;
    color: var(--dash-blue);
}

body.dashboard-page .payroll-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.dashboard-page .payroll-breakdown div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 10px;
}

body.dashboard-page .payroll-breakdown input {
    width: 100%;
    min-height: 36px;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    padding: 0 10px;
}

body.dashboard-page .payroll-totals-box {
    margin-top: 16px;
    border: 1px solid #e1e7ef;
}

body.dashboard-page .payroll-totals-box div {
    min-height: 40px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf1f6;
}

body.dashboard-page .payroll-totals-box .net {
    background: #f8fafc;
    font-size: 18px;
    font-weight: 800;
}

body.dashboard-page .payroll-report-actions {
    display: grid;
    gap: 10px;
}

body.dashboard-page .payroll-report-actions button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #73849b;
    border-radius: 4px;
    background: #ffffff;
    color: #4b5d75;
    text-align: left;
    font-weight: 700;
}

body.dashboard-page .payroll-alert-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.dashboard-page .payroll-alert-list li {
    padding: 12px 0;
    border-bottom: 1px solid #edf1f6;
    color: #4b5d75;
}

body.dashboard-page .payroll-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.dashboard-page .payroll-benefits-grid label {
    padding: 12px;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    background: #f8fafc;
    color: #4b5d75;
}

@media (max-width: 980px) {
    body.dashboard-page .workspace-sidebar-head h2 {
        font-size: 38px;
    }

    body.dashboard-page .payroll-flow {
        padding: 14px 70px;
    }

    body.dashboard-page .payroll-dashboard-main {
        padding: 15px;
    }

    body.dashboard-page .payroll-summary-grid,
    body.dashboard-page .payroll-module-grid,
    body.dashboard-page .payroll-form-row,
    body.dashboard-page .payroll-breakdown,
    body.dashboard-page .payroll-calc-box,
    body.dashboard-page .payroll-benefits-grid {
        grid-template-columns: 1fr;
    }

    body.dashboard-page .payroll-design-card.wide {
        grid-column: auto;
    }

    body.dashboard-page .payroll-breakdown div {
        grid-template-columns: 1fr;
    }
}
