: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 {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(10, 10, 79, 0.06);
    color: inherit;
}

.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: space-between;
    gap: 24px;
}

.site-footer h3 {
    margin: 0 0 8px;
    font-family: "Sora", sans-serif;
}

.site-footer p,
.footer-link {
    color: rgba(255, 255, 255, 0.82);
}

.footer-link {
    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 {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    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.home-page .main-nav .nav-user {
        color: #ffffff;
    }

    .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);
}

.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-note p,
    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;
}

.workspace-module-nav strong,
.workspace-sidebar-note strong {
    color: #ffffff;
}

.workspace-module-nav strong {
    display: block;
    min-width: 0;
    font-size: 0.78rem;
    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-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(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    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(980px, 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;
}

.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 .field {
    margin: 0;
}

.workspace-form-grid .field input,
.workspace-form-grid .field select {
    min-height: 48px;
}

.full-span {
    grid-column: 1 / -1;
}

.compact-form .btn {
    grid-column: 1 / -1;
    width: 100%;
}

.table-shell {
    overflow: auto;
    border-radius: 18px;
}

.workspace-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.workspace-table-wide {
    min-width: 760px;
}

.workspace-table th,
.workspace-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(10, 10, 79, 0.08);
}

.workspace-table th {
    color: #6d7390;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.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;
}

.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;
    }
}

@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;
    }
}
