 :root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;

    /* OperoApp — Paleta oficial */
    --color-bg: #FDF6EE;           /* Crema — fondo principal */
    --color-bg-soft: #F5E6D8;      /* Cálido — alternancia de secciones */
    --color-surface: #FFFFFF;
    --color-surface-strong: #FFFFFF;
    --color-surface-muted: #FDF6EE;
    --color-text: #1A1A1A;         /* Noche */
    --color-text-soft: #3D3D3D;
    --color-text-muted: #757575;
    --color-border: rgba(26, 26, 26, 0.10);
    --color-border-strong: rgba(26, 26, 26, 0.18);

    --color-navy-900: #1A1A1A;     /* Noche — sidebar */
    --color-navy-800: #2A2A2A;
    --color-primary-600: #0D9488;  /* Teal */
    --color-primary-700: #0B7A6E;
    --color-primary-soft: #CCFBF1;
    --color-accent: #0D9488;
    --color-accent-soft: #CCFBF1;
    --color-success-700: #16A34A;
    --color-success-soft: #DCFCE7;
    --color-warning-700: #D97706;
    --color-warning-soft: #FEF3C7;
    --color-danger-700: #DC2626;
    --color-danger-soft: #FEE2E2;
    --color-info-soft: #F5E6D8;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 20px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.12);

    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 40px;
    --space-10: 48px;

    --text-xs: 12px;
    --text-sm: 13px;
    --text-md: 14px;
    --text-lg: 16px;
    --text-xl: 20px;
    --text-2xl: 28px;
    --text-3xl: 42px;

    --container-max: 1200px;
    --input-height: 48px;
    --button-height: 44px;
    --table-cell-y: 14px;
    --table-cell-x: 16px;
}

.tax-preview-grid,
.tax-summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Grupos fiscales organizados */
.tax-group {
    margin-bottom: 20px;
}

.tax-group:last-child {
    margin-bottom: 0;
}

.tax-group-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.tax-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tax-summary-item {
    border: 1px solid #d6dae8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tax-summary-item span {
    color: #5b6478;
    font-size: 12px;
    font-weight: 600;
}

.tax-summary-item strong {
    color: #122033;
    font-size: 1rem;
    font-weight: 700;
}

.tax-summary-item-highlight {
    border-color: #8ec5a4;
    background: linear-gradient(180deg, #f8fffa 0%, #eefbf1 100%);
}

.tax-summary-item-highlight strong {
    color: #166534;
}

.tax-preview-grid {
    margin-top: 1.25rem;
}

.tax-preview-card,
.tax-summary-grid > div {
    border: 1px solid #d6dae8;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tax-preview-card span,
.tax-summary-grid span {
    color: #5b6478;
    font-size: 0.9rem;
}

.tax-preview-card strong,
.tax-summary-grid strong {
    color: #122033;
    font-size: 1.05rem;
}

.tax-preview-card-highlight {
    border-color: #8ec5a4;
    background: linear-gradient(180deg, #f8fffa 0%, #eefbf1 100%);
}

.tax-transaction-form {
    gap: 1rem;
}

/* Design System: base reset and layout */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
}

body.modal-open {
    overflow: hidden;
}

body.dashboard-body {
    overflow-x: hidden;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container-max), calc(100% - 40px));
    margin: 0 auto;
}

.app-shell {
    padding-bottom: 44px;
}

.project-context-banner {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    font-size: 14px;
    line-height: 1.6;
}

.project-context-banner strong {
    font-weight: 800;
}

.project-context-banner.is-global {
    background: var(--color-warning-soft);
    color: var(--color-warning-700);
    border-color: rgba(180, 83, 9, 0.18);
}

.project-context-banner.is-specific {
    background: var(--color-primary-soft);
    color: var(--color-primary-700);
    border-color: rgba(13, 148, 136, 0.22);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 16px 20px;
    background: var(--color-navy-900);
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 18px 0 38px rgba(15, 23, 42, 0.08);
    overflow-y: auto;
    z-index: 30;
}

.sidebar-brand {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: white;
}

.sidebar-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.sidebar-brand-gear {
    width: 36px;
    height: 36px;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sidebar-brand-name {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
}

.sidebar-brand-name .brand-o {
    color: #0D9488;
}

.sidebar-brand-name .brand-app {
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.50);
    letter-spacing: 0;
    margin-left: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-section-user {
    border-bottom: 0;
}

.sidebar-logout-form {
    margin-top: 2px;
}

.sidebar-logout-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: rgba(248, 113, 113, 0.85);
}

.sidebar-logout-btn:hover {
    background: rgba(248, 113, 113, 0.12) !important;
    color: #fca5a5 !important;
}

.sidebar-section-title {
    margin: 0 0 4px 4px;
    color: rgba(226, 232, 240, 0.42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
    color: rgba(241, 245, 249, 0.55);
    transition: color 0.2s ease;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(241, 245, 249, 0.78);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-link span {
    flex: 1;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.sidebar-link:hover .sidebar-icon {
    color: var(--color-primary-600);
}

.sidebar-link.is-active {
    background: rgba(13, 148, 136, 0.16);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.30);
}

.sidebar-link.is-active .sidebar-icon {
    color: var(--color-primary-600);
}

.sidebar-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-primary-600);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    margin-left: auto;
}

.app-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 28px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.topbar-left,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-page {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-page-label {
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar-page strong {
    font-size: 18px;
    letter-spacing: -0.03em;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.topbar-project-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-usage-chip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.plan-usage-chip-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.plan-usage-chip-label {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-usage-chip-header strong {
    font-size: 14px;
    letter-spacing: -0.02em;
}

.plan-usage-chip-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-usage-metric {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.75);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan-usage-metric strong {
    color: var(--color-text);
    font-size: 12px;
    font-weight: 800;
}

.plan-usage-metric.is-near {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6700;
}

.plan-usage-metric.is-limit {
    background: rgba(239, 68, 68, 0.14);
    color: #b42318;
}

.app-content {
    padding: 28px;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font-size: 20px;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.20);
    padding: 18px 0;
    margin-bottom: 34px;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-block h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.brand-block h1 a {
    color: white;
    text-decoration: none;
}

.brand-subtitle {
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar nav > a {
    color: rgba(241, 245, 249, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar nav > a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-1px);
}

.nav-logout-form,
.inline-form {
    margin: 0;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 600;
}

.nav-notification-link {
    position: relative;
}

.notification-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
}

/* Design System: reusable surfaces */
.ds-card,
.ds-panel,
.ds-section,
.card,
.hero,
.form-card,
.detail-card,
.financial-card,
.card-link,
.calendar-day,
.operational-alert-card,
.chart-card {
    background: var(--color-surface);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.hero {
    padding: 32px;
    margin-bottom: 26px;
}

.hero h2,
h2,
h3 {
    margin-top: 0;
    letter-spacing: -0.04em;
}

.hero h2,
h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
}

.hero p {
    margin: 0;
    max-width: 760px;
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.cards-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.card-link {
    display: block;
    padding: 22px;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.22);
}

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

.compact-header {
    margin-bottom: 14px;
}

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

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: stretch;
}

.workspace-hero-main,
.workspace-hero-side,
.workspace-panel,
.workspace-action-card,
.workspace-collapse,
.workspace-stats-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    border-radius: 18px;
}

.workspace-hero-main,
.workspace-hero-side {
    padding: 24px 26px;
}

.workspace-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--color-primary-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.workspace-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.workspace-title-row h1,
.workspace-title-row h2,
.workspace-title-row h3 {
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.workspace-subtitle {
    margin: 12px 0 0;
    max-width: 780px;
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.workspace-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.workspace-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.workspace-stats-card {
    padding: 18px 18px 16px;
}

.workspace-stats-card strong {
    display: block;
    margin-top: 8px;
    color: var(--color-text);
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.workspace-stats-card small {
    display: block;
    margin-top: 8px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.workspace-side-list {
    display: grid;
    gap: 14px;
}

.workspace-side-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-side-item span,
.workspace-side-item p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.55;
}

.workspace-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(248, 250, 252, 0.9);
    border-radius: 16px;
}

.workspace-tab {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text-soft);
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.workspace-tab.is-active {
    background: #ffffff;
    color: var(--color-text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.workspace-panel {
    display: none;
    padding: 24px 26px;
}

.workspace-panel.is-active {
    display: block;
}

.workspace-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.workspace-panel-header h3 {
    margin: 0;
}

.workspace-panel-header p {
    margin: 8px 0 0;
    color: var(--color-text-soft);
}

.workspace-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.workspace-kv-item {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.workspace-kv-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-kv-item span,
.workspace-kv-item p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.6;
}

.workspace-action-grid {
    display: grid;
    gap: 14px;
}

.workspace-action-card {
    overflow: hidden;
}

.workspace-collapse > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text);
}

.workspace-collapse > summary::-webkit-details-marker {
    display: none;
}

.workspace-collapse > summary::after {
    content: "+";
    font-size: 18px;
    color: var(--color-text-soft);
}

.workspace-collapse[open] > summary::after {
    content: "−";
}

.workspace-collapse-body {
    padding: 0 18px 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.82);
}

.workspace-action-card .form-card,
.workspace-action-card .detail-card,
.workspace-collapse .form-card,
.workspace-collapse .detail-card {
    padding: 0;
    max-width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.workspace-table-shell {
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 14px;
    background: #ffffff;
}

.workspace-table-shell table {
    min-width: 720px;
}

.flight-panel-helper {
    display: block;
    margin-top: 6px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.flight-table-card {
    padding: 0;
    overflow: hidden;
}

.flight-table-shell {
    border: 0;
    border-radius: 0;
}

.flight-table-shell table {
    min-width: 980px;
}

.flight-time-list,
.flight-location-list,
.flight-location-list > div {
    display: grid;
    gap: 5px;
}

.flight-time-list small,
.flight-location-list small {
    color: var(--color-text-soft);
    line-height: 1.35;
}

.flight-time-list strong,
.flight-location-list strong {
    color: var(--color-text);
    font-weight: 700;
}

.flight-location-list {
    gap: 10px;
}

.flight-provider-note {
    display: inline-block;
    margin-top: 5px;
    color: var(--color-danger-700);
    line-height: 1.35;
}

@media (max-width: 720px) {
    .flight-table-card {
        margin-left: -8px;
        margin-right: -8px;
    }

    .flight-table-shell {
        border-radius: 10px;
    }

    .flight-table-shell table {
        min-width: 900px;
    }
}

.workspace-empty {
    padding: 22px;
    color: var(--color-text-muted);
    text-align: center;
}

/* Design System: section scaffolds */
.section,
.ds-section {
    margin-bottom: var(--space-8);
}

.section-title,
.ds-section-title {
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin: 0 0 var(--space-4);
}

.section-subtitle,
.ds-section-subtitle {
    margin: 0;
    color: var(--color-text-soft);
    font-size: var(--text-lg);
    line-height: 1.65;
}

/* Design System: buttons */
.btn,
.ds-btn {
    min-height: var(--button-height);
}

.btn-sm,
.ds-btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: var(--text-sm);
}

/* Design System: form controls */
.input,
.select,
.textarea,
.ds-input,
.ds-select,
.ds-textarea {
    width: 100%;
    min-height: var(--input-height);
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-text);
}

/* Design System: badges */
.badge,
.ds-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid transparent;
}

/* Design System: tables */
.table-shell,
.ds-table-shell {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

/* Design System: alerts */
.alert,
.ds-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid transparent;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 18px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: white;
    background: var(--color-primary-600);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--color-primary-700);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.30);
}

.btn-secondary {
    color: var(--color-text);
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn-danger {
    background: var(--color-danger-700);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.14);
}

.btn-nav {
    padding: 10px 14px;
}

.btn-icon {
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
}

.calendar-invite-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-700));
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.18);
}

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

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

th {
    background: #f8fafc;
    color: var(--color-text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tr:hover td {
    background: rgba(248, 250, 252, 0.82);
}

.form-card,
.detail-card {
    padding: 28px;
    max-width: 760px;
}

.form-card-wide,
.detail-card-wide,
.chart-card {
    max-width: 100%;
    margin-top: 20px;
}

.form-card label,
.dashboard-filter-grid label {
    display: block;
    margin-top: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-soft);
}

.form-card input,
.form-card select,
.form-card textarea,
.dashboard-filter-grid select,
.dashboard-filter-grid input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.dashboard-filter-grid select:focus,
.dashboard-filter-grid input:focus {
    border-color: rgba(13, 148, 136, 0.52);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    background: white;
}

.form-helper,
.dashboard-helper,
.table-helper {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-helper {
    display: block;
    margin-top: 8px;
}

.table-helper {
    margin-top: 6px;
}

.group-picker-shell {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.group-picker-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.group-picker-card:hover {
    border-color: rgba(13, 148, 136, 0.32);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.group-picker-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.group-picker-content {
    display: grid;
    gap: 4px;
}

.group-picker-content strong {
    color: var(--color-text);
}

.group-picker-content small {
    color: var(--color-text-muted);
    line-height: 1.5;
}

.group-picker-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    background: rgba(248, 250, 252, 0.85);
}

.plantilla-gasto-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
}

.login-card {
    width: min(470px, 100%);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary-600), #38bdf8, #22c55e);
}

.login-brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary-600);
    margin-bottom: 10px;
}

.alert-error,
.alert-success {
    border-radius: 16px;
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid transparent;
    font-weight: 500;
}

.notification-list {
    display: grid;
    gap: 14px;
}

.notification-card {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.notification-card-head,
.notification-card-actions,
.notification-card-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.notification-card p {
    margin: 8px 0 0;
    color: var(--color-text-soft);
}

.notification-unread {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.10), var(--shadow-sm);
}

.notification-info {
    border-color: rgba(13, 148, 136, 0.18);
    background: rgba(219, 234, 254, 0.35);
}

.notification-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(254, 243, 199, 0.45);
}

.notification-danger {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(254, 226, 226, 0.45);
}

.notification-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(220, 252, 231, 0.45);
}

.notification-badge.notification-info {
    color: var(--color-primary-700);
    background: var(--color-primary-soft);
    border-color: rgba(13, 148, 136, 0.2);
}

.notification-badge.notification-warning {
    color: var(--color-warning-700);
    background: var(--color-warning-soft);
    border-color: rgba(245, 158, 11, 0.2);
}

.notification-badge.notification-danger {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.2);
}

.notification-badge.notification-success {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: rgba(254, 242, 242, 0.95);
    color: var(--color-danger-700);
    border-color: rgba(248, 113, 113, 0.28);
}

.alert-success {
    background: rgba(236, 253, 245, 0.95);
    color: var(--color-success-700);
    border-color: rgba(34, 197, 94, 0.22);
}

.alert-warning {
    border-radius: 16px;
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(254, 243, 199, 0.94);
    color: #92400e;
    font-weight: 500;
    line-height: 1.6;
}

.feedback-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 120;
    display: grid;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
}

.feedback-toast {
    position: relative;
    padding: 16px 18px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.feedback-toast strong,
.feedback-toast p,
.feedback-toast small {
    display: block;
}

.feedback-toast strong {
    padding-right: 28px;
}

.feedback-toast p {
    margin: 8px 0 0;
    color: var(--color-text-soft);
    line-height: 1.55;
}

.feedback-toast small {
    margin-top: 8px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.feedback-code {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feedback-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.feedback-error {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(254, 242, 242, 0.98);
}

.feedback-success {
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(236, 253, 245, 0.98);
}

.feedback-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(254, 243, 199, 0.98);
}

.feedback-info {
    border-color: rgba(13, 148, 136, 0.18);
    background: rgba(219, 234, 254, 0.98);
}

.form-card button {
    margin-top: 20px;
}

.form-card-inline {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.inline-create-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 8px;
}

.btn-inline-create {
    min-width: 140px;
}

.cotizacion-client-shell {
    margin-top: 14px;
}

.cotizacion-client-shell label {
    margin-top: 0;
}

.cotizacion-client-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.cotizacion-client-row .btn-inline-create {
    margin-top: 0;
    white-space: nowrap;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 24px;
}

.modal-shell.is-open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    margin: 0;
}

.modal-body {
    display: grid;
}

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

.modal-close {
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(226, 232, 240, 0.88);
    color: var(--color-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.actions-cell,
.form-actions,
.dashboard-filter-actions,
.calendar-nav,
.operational-alert-badges,
.calendar-event-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions,
.actions-cell .inline-form button,
.form-actions .inline-form button {
    margin-top: 0;
}

.section-header {
    margin-top: 30px;
}

.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.financial-card {
    padding: 22px;
}

.financial-card-highlight {
    border-width: 1px;
}

.financial-card-negative {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.95));
    border-color: rgba(248, 113, 113, 0.28);
}

.financial-card-positive {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.95));
    border-color: rgba(74, 222, 128, 0.28);
}

.financial-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 700;
}

.financial-value {
    display: block;
    color: var(--color-text);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.financial-card-negative .financial-value,
.text-negative {
    color: var(--color-danger-700);
}

.financial-card-positive .financial-value,
.text-positive {
    color: var(--color-success-700);
}

.dashboard-grid {
    margin-top: 24px;
}

.dashboard-columns,
.report-sections {
    display: grid;
    gap: 22px;
    margin-top: 12px;
    margin-bottom: 30px;
}

.dashboard-filter-form,
.report-filter-form {
    margin-bottom: 16px;
}

.dashboard-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.table-scroll {
    max-height: 440px;
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 12px;
}

.table-scroll table {
    min-width: 720px;
}

.calendar-hero {
    margin-bottom: 24px;
}

.calendar-hero-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.calendar-hero-copy p {
    margin: 0;
}

.calendar-month-count {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--color-primary-700);
    background: linear-gradient(135deg, rgba(204, 251, 241, 0.92), rgba(240, 253, 250, 0.96));
    border: 1px solid rgba(13, 148, 136, 0.20);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.08);
    font-size: 13px;
    font-weight: 800;
}

.calendar-month-count strong {
    font-size: 18px;
    line-height: 1;
}

.calendar-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}

.calendar-board {
    position: relative;
}

.calendar-side-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-primary-700);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 148, 136, 0.22);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    transform: translateY(-50%);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.calendar-side-nav:hover {
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(13, 148, 136, 0.42);
    background: rgba(240, 253, 250, 0.98);
    box-shadow: 0 22px 48px rgba(13, 148, 136, 0.18);
}

.calendar-side-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.calendar-side-nav-prev {
    left: -27px;
}

.calendar-side-nav-next {
    right: -27px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

.calendar-weekday {
    font-weight: 700;
    color: var(--color-text-soft);
    text-align: center;
    padding: 8px 0;
}

.calendar-day {
    min-height: 190px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar-day-muted {
    opacity: 0.62;
    background: rgba(248, 250, 252, 0.82);
}

.calendar-day-today {
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.10), var(--shadow-sm);
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.calendar-day-number {
    font-size: 18px;
    font-weight: 800;
}

.calendar-day-count {
    font-size: 11px;
    color: var(--color-text-muted);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-event {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calendar-event:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.24);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.calendar-event-time {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-primary-700);
}

.calendar-event-title {
    font-size: 14px;
    line-height: 1.35;
}

.calendar-event-client,
.calendar-empty {
    color: var(--color-text-muted);
    font-size: 12px;
}

.calendar-mobile-agenda {
    display: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.status-badge.status-pendiente {
    color: #b45309;
    background: var(--color-warning-soft);
    border-color: rgba(245, 158, 11, 0.2);
}

.status-badge.status-confirmado {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.2);
}

.status-badge.flight-status-programado {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.22);
}

.status-badge.flight-status-en-vuelo {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: rgba(59, 130, 246, 0.24);
}

.status-badge.flight-status-aterrizado {
    color: #047857;
    background: #d1fae5;
    border-color: rgba(16, 185, 129, 0.24);
}

.status-badge.flight-status-demorado {
    color: #b45309;
    background: #fef3c7;
    border-color: rgba(245, 158, 11, 0.26);
}

.status-badge.flight-status-cancelado {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.24);
}

.status-badge.flight-status-sin-confirmar {
    color: #475569;
    background: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.2);
}

.status-badge.status-terminado {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: rgba(13, 148, 136, 0.2);
}

.status-badge.status-cancelado {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.status-borrador {
    color: #475569;
    background: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.2);
}

.status-badge.status-enviada {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: rgba(13, 148, 136, 0.2);
}

.status-badge.status-aceptada {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.2);
}

.status-badge.status-rechazada,
.status-badge.status-vencida {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.status-convertida {
    color: #7c3aed;
    background: #ede9fe;
    border-color: rgba(124, 58, 237, 0.2);
}

.status-badge.operational-en_riesgo {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.22);
}

.status-badge.operational-en_preparacion {
    color: var(--color-warning-700);
    background: var(--color-warning-soft);
    border-color: rgba(245, 158, 11, 0.22);
}

.status-badge.operational-listo {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.22);
}

.status-badge.crm-priority-baja {
    color: #475569;
    background: #f1f5f9;
    border-color: rgba(71, 85, 105, 0.2);
}

.status-badge.crm-priority-media {
    color: var(--color-warning-700);
    background: var(--color-warning-soft);
    border-color: rgba(245, 158, 11, 0.2);
}

.status-badge.crm-priority-alta {
    color: var(--color-danger-700);
    background: var(--color-danger-soft);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.crm-status-prospecto {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: rgba(13, 148, 136, 0.2);
}

.status-badge.crm-status-activo,
.status-badge.crm-status-frecuente {
    color: var(--color-success-700);
    background: var(--color-success-soft);
    border-color: rgba(34, 197, 94, 0.2);
}

.status-badge.crm-status-inactivo {
    color: #475569;
    background: #e2e8f0;
    border-color: rgba(71, 85, 105, 0.2);
}

.report-summary-grid {
    margin-bottom: 24px;
}

.report-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.executive-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}

.executive-kpi-grid {
    margin-bottom: 24px;
}

.executive-project-summary {
    display: grid;
    gap: 6px;
    color: var(--color-text-soft);
    font-size: 13px;
}

.chart-shell {
    position: relative;
    min-height: 320px;
}

.chart-shell-donut {
    min-height: 280px;
}

.checklist-progress-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    display: grid;
    gap: 12px;
}

.checklist-progress-card p,
.operational-alert-head p {
    margin: 6px 0 0;
    color: var(--color-text-muted);
    font-size: 13px;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background: rgba(226, 232, 240, 0.86);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.progress-low {
    background: rgba(254, 242, 242, 0.95);
    border-color: rgba(248, 113, 113, 0.22);
    color: #991b1b;
}

.progress-low.progress-bar-fill {
    background: #dc2626;
}

.progress-medium {
    background: rgba(255, 251, 235, 0.95);
    border-color: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.progress-medium.progress-bar-fill {
    background: #f59e0b;
}

.progress-high {
    background: rgba(236, 253, 245, 0.95);
    border-color: rgba(34, 197, 94, 0.22);
    color: #166534;
}

.progress-high.progress-bar-fill {
    background: #16a34a;
}

.checklist-form {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    font-weight: 500;
    margin: 0;
}

.checklist-item input {
    width: auto;
    margin: 0;
}

.operational-state-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
}

.alert-list {
    display: grid;
    gap: 14px;
}

.operational-alert-card {
    padding: 18px;
}

.operational-alert-card.operational-en_riesgo {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.95));
    border-color: rgba(248, 113, 113, 0.24);
}

.operational-alert-card.operational-en_preparacion {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.95));
    border-color: rgba(245, 158, 11, 0.24);
}

.operational-alert-card.operational-listo {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.95));
    border-color: rgba(34, 197, 94, 0.24);
}

.operational-alert-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.alert-reasons {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--color-text-soft);
}

.alert-reasons li {
    margin-bottom: 4px;
}

.dashboard-executive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(30, 41, 59, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dashboard-executive-copy {
    display: grid;
    gap: 8px;
    align-content: start;
}

.dashboard-eyebrow {
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.dashboard-executive-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4.2vw, 44px);
    letter-spacing: -0.06em;
    line-height: 1;
}

.dashboard-executive-hero p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
}

.dashboard-executive-actions {
    display: grid;
    gap: 14px;
    align-content: start;
}

.dashboard-hero-filters {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero-filters label {
    display: block;
    margin-bottom: 6px;
    color: rgba(226, 232, 240, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dashboard-hero-filters select {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
}

.dashboard-hero-filter-actions,
.dashboard-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-kpi-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 38px;
}

.dashboard-kpi-premium-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-kpi-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.12);
}

.dashboard-kpi-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dashboard-kpi-value-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-kpi-currency {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.dashboard-kpi-amount {
    display: block;
    margin: 0;
    font-size: clamp(22px, 1.7vw, 30px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-text);
    white-space: nowrap;
}

.dashboard-kpi-amount-featured {
    font-size: clamp(36px, 3.2vw, 56px);
}

.dashboard-kpi-count {
    display: block;
    margin: 0;
    font-size: clamp(42px, 3vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.dashboard-kpi-meta-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.45;
}

.dashboard-kpi-meta-list span {
    display: block;
}

.dashboard-kpi-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    border-color: rgba(30, 41, 59, 0.2);
    min-height: 250px;
}

.dashboard-kpi-featured .financial-label,
.dashboard-kpi-featured .dashboard-kpi-currency,
.dashboard-kpi-featured .dashboard-kpi-amount,
.dashboard-kpi-featured .dashboard-kpi-meta-list {
    color: #ffffff;
}

.dashboard-kpi-featured .dashboard-kpi-meta-list {
    color: rgba(226, 232, 240, 0.72);
}

.dashboard-kpi-featured .dashboard-kpi-icon {
    background: rgba(13, 148, 136, 0.18);
    color: #ffffff;
}

.dashboard-kpi-wide-secondary {
    grid-column: span 2;
}

.dashboard-kpi-premium-card.is-finance .dashboard-kpi-icon,
.dashboard-kpi-premium-card.is-success .dashboard-kpi-icon {
    background: rgba(13, 148, 136, 0.10);
    color: var(--color-primary-600);
}

.dashboard-kpi-premium-card.is-costs .dashboard-kpi-icon,
.dashboard-kpi-premium-card.is-danger-soft .dashboard-kpi-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.dashboard-kpi-premium-card.is-danger .dashboard-kpi-icon {
    background: rgba(220, 38, 38, 0.10);
    color: var(--color-danger-700);
}

.dashboard-kpi-premium-card.is-neutral .dashboard-kpi-icon {
    background: #f1f5f9;
    color: var(--color-text-soft);
}

.dashboard-operational-health {
    margin-bottom: 30px;
}

.dashboard-operational-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.operational-health-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.operational-health-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.operational-health-card.operational-listo {
    background: linear-gradient(180deg, rgba(220, 252, 231, 0.58), #ffffff);
}

.operational-health-card.operational-en_preparacion {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.58), #ffffff);
}

.operational-health-card.operational-en_riesgo {
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.62), #ffffff);
}

.health-progress-track {
    width: 100%;
    height: 10px;
    margin: 12px 0 10px;
    background: rgba(226, 232, 240, 0.9);
    border-radius: 999px;
    overflow: hidden;
}

.health-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.health-progress-fill.is-success {
    background: var(--color-success-700);
}

.health-progress-fill.is-warning {
    background: var(--color-warning-700);
}

.health-progress-fill.is-danger {
    background: var(--color-danger-700);
}

.dashboard-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 22px;
    margin-bottom: 30px;
}

.dashboard-spotlight-chart,
.dashboard-spotlight-side {
    padding: 24px;
}

.dashboard-spotlight-chart {
    min-height: 520px;
}

.executive-bars-chart {
    display: grid;
    gap: 22px;
    min-height: 420px;
    align-content: start;
}

.executive-bars-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 160px;
    gap: 16px;
    align-items: center;
}

.executive-bars-label {
    display: grid;
    gap: 4px;
}

.executive-bars-label strong {
    font-size: 14px;
}

.executive-bars-label small,
.executive-bars-values span {
    color: var(--color-text-muted);
    font-size: 12px;
}

.executive-bars-track-group {
    display: grid;
    gap: 8px;
}

.executive-bar-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.executive-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.executive-bar-income {
    background: var(--color-primary-600);
}

.executive-bar-cost {
    background: var(--color-warning-700);
}

.executive-bar-profit {
    background: var(--color-success-700);
}

.executive-bar-loss {
    background: var(--color-danger-700);
}

.executive-bars-values {
    display: grid;
    gap: 6px;
    text-align: right;
}

.executive-mini-list,
.executive-alert-stack,
.executive-event-list {
    display: grid;
    gap: 12px;
}

.executive-mini-item,
.executive-event-item {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.executive-mini-item:hover,
.executive-event-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.14);
}

.executive-mini-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

.executive-mini-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.executive-mini-item strong,
.executive-event-main strong {
    display: block;
    margin-bottom: 4px;
}

.executive-mini-item small,
.executive-event-main small {
    color: var(--color-text-muted);
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.executive-event-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
}

.executive-event-date {
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    text-align: center;
}

.executive-event-date strong {
    font-size: 24px;
    line-height: 1;
}

.executive-event-date span {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.executive-event-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    text-align: right;
}

.operational-alert-card-urgent {
    position: relative;
    border-width: 1px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.operational-alert-card-urgent::before {
    content: "!";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-danger-700);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.operational-alert-card-urgent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.delete-form {
    margin-top: 14px;
}

@media (max-width: 1100px) {
    .report-charts-grid,
    .cards-home,
    .dashboard-operational-health-grid,
    .dashboard-spotlight-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-kpi-featured,
    .dashboard-kpi-wide-secondary {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .workspace-hero {
        grid-template-columns: 1fr;
    }

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

    .cotizacion-client-row {
        grid-template-columns: 1fr;
    }

    .nav-inner,
    .page-header,
    .operational-alert-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-executive-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .dashboard-hero-filter-actions,
    .dashboard-quick-actions {
        align-items: stretch;
    }

    .executive-bars-row,
    .executive-event-item,
    .executive-mini-item {
        grid-template-columns: 1fr;
    }

    .executive-bars-values,
    .executive-event-meta {
        text-align: left;
        justify-items: start;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(300px, calc(100vw - 28px));
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 25;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    /* ── Topbar móvil: fila compacta, solo hamburger + nombre ── */
    .app-topbar {
        padding: 0 14px;
        flex-direction: row;
        align-items: center;
        height: 52px;
        min-height: 52px;
    }

    /* Ocultar toda la sección de acciones — accesible desde el sidebar */
    .topbar-actions {
        display: none;
    }

    /* Ocultar label "OperoApp" en topbar — ya está en el sidebar */
    .topbar-page-label {
        display: none;
    }

    /* Nombre de usuario: más compacto, una sola línea truncada */
    .topbar-page strong {
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 80px);
        letter-spacing: -0.01em;
    }

    .topbar-left {
        gap: 10px;
        min-width: 0;
        flex: 1;
    }

    .calendar-side-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .app-content {
        padding: 18px 12px 26px;
    }

    .hero,
    .form-card,
    .detail-card,
    .financial-card,
    .workspace-panel,
    .workspace-hero-main,
    .workspace-hero-side {
        padding: 20px;
    }

    .calendar-hero {
        margin-bottom: 16px;
    }

    .calendar-hero .page-header {
        gap: 18px;
    }

    .calendar-hero-copy {
        gap: 10px;
    }

    .calendar-month-count {
        padding: 9px 13px;
        font-size: 12px;
    }

    .calendar-month-count strong {
        font-size: 20px;
    }

    .calendar-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        gap: 8px;
    }

    .calendar-nav .btn {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        overflow: hidden;
        white-space: nowrap;
        text-indent: -999px;
        position: relative;
    }

    .calendar-nav .btn::after {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        text-indent: 0;
        font-size: 22px;
        font-weight: 800;
    }

    .calendar-nav .btn:first-child::after {
        content: "‹";
    }

    .calendar-nav .btn:last-child::after {
        content: "›";
    }

    .calendar-title {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(226, 232, 240, 0.88);
        font-size: clamp(15px, 4.5vw, 18px);
        text-align: center;
    }

    .brand-block h1 {
        font-size: 24px;
    }

    .table-scroll table,
    table {
        min-width: 680px;
    }
}

@media (max-width: 640px) {
    .cards-home,
    .financial-summary,
    .dashboard-kpi-premium-grid {
        grid-template-columns: 1fr;
    }

    .calendar-board {
        margin-inline: -6px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 18px;
    }

    .calendar-weekday {
        display: block;
        padding: 0 0 4px;
        font-size: 10px;
        letter-spacing: -0.03em;
    }

    .calendar-day {
        min-height: 58px;
        padding: 6px;
        gap: 4px;
        border-radius: 13px;
        overflow: hidden;
    }

    .calendar-day-header {
        align-items: flex-start;
        gap: 2px;
    }

    .calendar-day-number {
        font-size: 13px;
        line-height: 1;
    }

    .calendar-day-count {
        width: 17px;
        height: 17px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.08);
        color: var(--color-text-muted);
        font-size: 0;
        line-height: 1;
    }

    .calendar-day-count::before {
        content: "0";
        font-size: 10px;
        font-weight: 800;
    }

    .calendar-day-has-events {
        background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(255, 255, 255, 0.96));
        border-color: rgba(13, 148, 136, 0.34);
    }

    .calendar-day-has-events .calendar-day-count {
        background: var(--color-primary);
        color: white;
    }

    .calendar-day-has-events .calendar-day-count::before {
        content: attr(data-count);
    }

    .calendar-events {
        gap: 3px;
    }

    .calendar-empty {
        display: none;
    }

    .calendar-event {
        min-height: 6px;
        padding: 0;
        border-radius: 999px;
        border: 0;
        background: var(--color-primary);
        box-shadow: none;
    }

    .calendar-event:nth-child(n+4) {
        display: none;
    }

    .calendar-event-time,
    .calendar-event-title,
    .calendar-event-client,
    .calendar-event-badges {
        display: none;
    }

    .calendar-mobile-agenda {
        display: block;
        margin-top: 14px;
        margin-bottom: 28px;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(226, 232, 240, 0.88);
        box-shadow: var(--shadow-sm);
    }

    .calendar-mobile-agenda h3 {
        margin: 0 0 14px;
        font-size: 18px;
    }

    .calendar-mobile-agenda-list {
        display: grid;
        gap: 10px;
    }

    .calendar-mobile-agenda-item {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 12px;
        align-items: center;
        padding: 12px;
        border-radius: 16px;
        color: var(--color-text);
        text-decoration: none;
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.96));
        border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .calendar-mobile-agenda-date {
        display: inline-flex;
        min-height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        background: rgba(13, 148, 136, 0.10);
        color: var(--color-primary-700);
        font-size: 12px;
        font-weight: 800;
        text-align: center;
    }

    .calendar-mobile-agenda-copy {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .calendar-mobile-agenda-copy strong {
        font-size: 13px;
        line-height: 1.3;
    }

    .calendar-mobile-agenda-copy small {
        color: var(--color-text-muted);
        font-size: 12px;
    }

    .btn,
    .btn-secondary,
    .btn-danger {
        width: 100%;
    }

    .topbar-project-form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-link,
    .role-badge {
        justify-content: center;
        width: 100%;
    }

    .dashboard-kpi-premium-card {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-featured,
    .dashboard-kpi-wide-secondary {
        grid-column: span 1;
        min-height: auto;
    }

    .dashboard-kpi-icon {
        width: 44px;
        height: 44px;
    }

    .dashboard-kpi-amount {
        white-space: normal;
        word-break: break-word;
    }

    .dashboard-kpi-amount-featured {
        font-size: clamp(30px, 10vw, 44px);
    }

    .actions-cell,
    .form-actions,
    .dashboard-filter-actions,
    .calendar-nav,
    .operational-alert-badges,
    .calendar-event-badges {
        align-items: stretch;
    }
}

/* ============================
   PUBLIC PAGES (LANDING / PRICING / DEMO)
   ============================ */

.public-header {
    /* legado — remplazado por .pub-navbar */
    display: none;
}

.public-section {
    padding: 60px 0;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.public-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #0D9488;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.public-section-head {
    margin-bottom: 40px;
    text-align: center;
}

.public-section-head h2,
.public-section-head h3 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.public-section-head p {
    max-width: 600px;
    margin: 0 auto;
    color: #757575;
    font-size: 16px;
    line-height: 1.65;
}

.public-card {
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.06);
}

.public-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
    gap: 24px;
    padding: 36px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(13, 148, 136, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.18), transparent 30%),
        linear-gradient(145deg, #ffffff, #eff6ff 48%, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.09);
}

.landing-hero-copy h2 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.02;
    margin-bottom: 18px;
}

.landing-hero-copy p {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 18px;
}

.landing-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.landing-proof-list span,
.demo-prefill-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.landing-hero-panel {
    display: grid;
    gap: 16px;
}

.landing-metric-card,
.landing-metric-tile,
.landing-module-card,
.landing-benefit-card,
.pricing-card,
.demo-form-card,
.demo-side-card {
    padding: 24px;
}

.landing-metric-card {
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
}

.landing-metric-card p {
    color: rgba(248, 250, 252, 0.78);
}

.landing-metric-label,
.pricing-plan-code {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(148, 163, 184, 0.95);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-metric-grid,
.landing-modules-grid,
.landing-benefits-grid,
.pricing-grid {
    display: grid;
    gap: 18px;
}

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

.landing-metric-tile {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
}

.landing-problem-solution {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-problem-card,
.landing-solution-card {
    padding: 28px;
}

.landing-modules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-module-card h4,
.pricing-card h3,
.demo-side-card h3 {
    margin-bottom: 10px;
}

.landing-module-card p,
.landing-benefit-card p,
.pricing-card-summary,
.demo-side-card p,
.pricing-access-note span {
    color: var(--color-text-muted);
}

.landing-benefits-shell {
    padding: 0;
}

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

.landing-benefit-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.landing-benefit-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--color-primary-700);
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.public-cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 20px;
    background: #F5E6D8;
    color: #1A1A1A;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

.public-cta-band h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0;
}

.public-cta-band p {
    color: #757575;
    margin: 0;
}

.pricing-hero {
    display: grid;
    gap: 18px;
}

.pricing-access-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 26px;
}

/* Sections with fixed height so they align across the 3 cards */
.pricing-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    height: 108px;
    overflow: hidden;
    flex-shrink: 0;
}

.pricing-card-summary {
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Metrics always same structure → auto height is fine, will align */
.pricing-metrics {
    flex-shrink: 0;
}

/* Feature list takes all remaining space → pushes button to bottom */
.pricing-feature-list {
    flex: 1;
}

/* CTA button always at the bottom */
.pricing-card > .btn {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
}

.pricing-card-featured {
    position: relative;
    border-color: rgba(13, 148, 136, 0.34);
    background:
        radial-gradient(circle at top right, rgba(13, 148, 136, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 28px 70px rgba(13, 148, 136, 0.12);
}

.pricing-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--color-primary-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.pricing-metric {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.pricing-metric span {
    display: block;
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.pricing-metric strong {
    font-size: 28px;
}

.pricing-feature-list,
.demo-check-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.pricing-feature-list li,
.demo-check-list li {
    color: var(--color-text-muted);
}

.demo-hero {
    display: grid;
    gap: 18px;
}

.demo-info-strip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
}

.demo-form-card,
.demo-side-card {
    border-radius: 26px;
}

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

.demo-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.demo-field span {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    padding: 14px 16px;
    font: inherit;
    color: var(--color-text-main);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-field textarea {
    resize: vertical;
}

.demo-form-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(148, 163, 184, 0.42);
}

.demo-side-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.demo-prefill-chip {
    width: fit-content;
}

@media (max-width: 1100px) {
    .landing-modules-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .landing-hero,
    .landing-problem-solution,
    .demo-layout,
    .public-cta-band {
        grid-template-columns: 1fr;
    }

    .public-cta-band {
        display: grid;
    }
}

@media (max-width: 760px) {
    .landing-metric-grid,
    .landing-benefits-grid,
    .demo-form-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .public-cta-band,
    .landing-problem-card,
    .landing-solution-card,
    .landing-metric-card,
    .landing-metric-tile,
    .landing-module-card,
    .landing-benefit-card,
    .pricing-card,
    .demo-form-card,
    .demo-side-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .landing-modules-grid,
    .pricing-grid,
    .pricing-metrics {
        grid-template-columns: 1fr;
    }

    /* Reset fixed heights — no cross-card alignment needed in single column */
    .pricing-card-head {
        height: auto;
        overflow: visible;
    }

    .pricing-card-summary {
        height: auto;
        overflow: visible;
    }

    .landing-hero-copy h2 {
        font-size: clamp(32px, 11vw, 46px);
    }
}

.status-badge.lead-status-nuevo {
    background: rgba(13, 148, 136, 0.12);
    color: var(--color-primary-700);
}

.status-badge.lead-status-contactado {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.status-badge.lead-status-demo_agendada {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.status-badge.lead-status-convertido {
    background: rgba(20, 184, 166, 0.14);
    color: #0f766e;
}

.status-badge.lead-status-descartado {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.lead-row {
    cursor: pointer;
}

.lead-row.is-new {
    background: rgba(13, 148, 136, 0.04);
}

.lead-row:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* ═══════════════════════════════════════════════════════════════════════
   PUBLIC BODY & NAVBAR
═══════════════════════════════════════════════════════════════════════ */
.public-body {
    background: #FDF6EE;
    color: #1A1A1A;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.pub-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 246, 238, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.pub-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
}

.pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.pub-logo-gear { flex-shrink: 0; }

.pub-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.03em;
}

.pub-logo-o { color: #0D9488; }

.pub-logo-app {
    font-weight: 300;
    font-size: 13px;
    color: #757575;
    margin-left: 1px;
}

.pub-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.pub-nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: #3D3D3D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.18s ease, background 0.18s ease;
}

.pub-nav-link:hover {
    color: #1A1A1A;
    background: rgba(26, 26, 26, 0.06);
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.pub-nav-login {
    color: #3D3D3D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color 0.18s ease;
}

.pub-nav-login:hover { color: #1A1A1A; }

.pub-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    background: #0D9488;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.18s ease, transform 0.18s ease;
}

.pub-nav-cta:hover {
    background: #0B7A6E;
    transform: translateY(-1px);
}

.pub-nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(26, 26, 26, 0.14);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #1A1A1A;
}

.pub-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 16px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.pub-nav-mobile.is-open { display: flex; }

/* ═══════════════════════════════════════════════════════════════════════
   LANDING PAGE — SHARED
═══════════════════════════════════════════════════════════════════════ */
.lp-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.lp-teal { color: #0D9488; }

.lp-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #0D9488;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lp-section {
    padding: 96px 0;
}

.lp-section-calido {
    background: #F5E6D8;
}

.lp-section-head {
    text-align: center;
    margin-bottom: 60px;
}

.lp-section-h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
    color: #1A1A1A;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════ */
.lp-hero {
    padding: 80px 0 60px;
    background: #FDF6EE;
    overflow: hidden;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(13, 148, 136, 0.25);
    background: rgba(13, 148, 136, 0.06);
    color: #3D3D3D;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.lp-hero-h1 {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.03;
    margin: 0 0 20px;
    color: #1A1A1A;
}

.lp-hero-sub {
    font-size: 16px;
    line-height: 1.7;
    color: #757575;
    max-width: 480px;
    margin: 0 0 36px;
}

.lp-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: #0D9488;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
}

.lp-btn-primary:hover {
    background: #0B7A6E;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.36);
}

.lp-btn-lg { padding: 16px 36px; font-size: 16px; }

.lp-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 26, 0.18);
    color: #3D3D3D;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.7);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lp-btn-ghost:hover {
    background: white;
    border-color: rgba(26, 26, 26, 0.28);
}

/* Hero stats below copy */
.lp-hero-stats {
    display: none;
}

/* ── Dashboard Mockup ── */
.lp-hero-mockup {
    border-radius: 18px;
    background: white;
    box-shadow: 0 24px 60px rgba(26, 26, 26, 0.12), 0 4px 16px rgba(26,26,26,0.06);
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.08);
}

.lp-mockup-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F5F5F5;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.lp-mockup-dots {
    display: flex;
    gap: 6px;
}

.lp-mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.lp-mockup-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
}

.lp-mockup-brand small {
    font-weight: 300;
    color: #757575;
    font-size: 10px;
}

.lp-mockup-body {
    display: flex;
    height: 280px;
}

.lp-mockup-sidebar {
    width: 44px;
    background: #1A1A1A;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 12px;
}

.lp-mockup-gear-icon { opacity: 0.9; }

.lp-mockup-nav-dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}

.lp-dot-active { background: rgba(13, 148, 136, 0.4) !important; }

.lp-mockup-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FDF6EE;
}

.lp-mockup-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.lp-mockup-stat {
    background: white;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid rgba(26, 26, 26, 0.07);
}

.lp-mockup-stat span {
    font-size: 9px;
    color: #757575;
    font-weight: 500;
}

.lp-mockup-stat strong {
    font-size: 16px;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.03em;
}

.lp-up { font-size: 9px; color: #16A34A; font-weight: 600; }
.lp-down { font-size: 9px; color: #DC2626; font-weight: 600; }

.lp-mockup-bottom-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    flex: 1;
}

.lp-mockup-chart-card,
.lp-mockup-events-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-mockup-chart-label {
    font-size: 8px;
    font-weight: 700;
    color: #757575;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-mockup-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    padding: 4px 0;
}

.lp-bar {
    flex: 1;
    background: rgba(26, 26, 26, 0.10);
    border-radius: 3px 3px 0 0;
}

.lp-bar-active { background: #0D9488; }

.lp-mockup-event-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #3D3D3D;
}

.lp-mockup-event-row span:last-child {
    margin-left: auto;
    color: #757575;
}

.lp-dot-teal  { width: 7px; height: 7px; border-radius: 50%; background: #0D9488; flex-shrink: 0; }
.lp-dot-purple{ width: 7px; height: 7px; border-radius: 50%; background: #8B5CF6; flex-shrink: 0; }
.lp-dot-amber { width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════════════ */
.lp-stats-bar {
    background: #FDF6EE;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    padding: 48px 0;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.lp-stat-block strong {
    display: block;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #0D9488;
    line-height: 1;
    margin-bottom: 8px;
}

.lp-stat-block span {
    font-size: 14px;
    color: #757575;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════════════════ */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lp-feature-card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.09);
}

.lp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.10);
    margin-bottom: 16px;
}

.lp-feature-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0D9488;
    margin-bottom: 8px;
}

.lp-feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: #1A1A1A;
}

.lp-feature-card p {
    font-size: 14px;
    line-height: 1.65;
    color: #757575;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   PROCESO
═══════════════════════════════════════════════════════════════════════ */
.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.lp-step { position: relative; }

.lp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #0D9488;
    color: #0D9488;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: #F5E6D8;
}

.lp-step-line::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 48px;
    right: -40px;
    height: 1px;
    background: rgba(13, 148, 136, 0.3);
}

.lp-step { position: relative; }

.lp-step h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    color: #1A1A1A;
}

.lp-step p {
    font-size: 14px;
    line-height: 1.65;
    color: #757575;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════════════════════════════════════ */
.lp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lp-testimonial-card {
    background: white;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-stars {
    font-size: 16px;
    color: #0D9488;
    letter-spacing: 2px;
}

.lp-testimonial-card blockquote {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #3D3D3D;
    font-style: italic;
    flex: 1;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.lp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.lp-avatar-teal   { background: #0D9488; }
.lp-avatar-purple { background: #8B5CF6; }
.lp-avatar-amber  { background: #F59E0B; }

.lp-testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1A1A1A;
}

.lp-testimonial-author span {
    font-size: 12px;
    color: #757575;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════════════════════════════ */
.lp-cta-section { padding: 100px 0; }

.lp-cta-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.lp-cta-gear { opacity: 0.9; }

.lp-cta-h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin: 0;
    color: #1A1A1A;
}

.lp-cta-sub {
    font-size: 16px;
    color: #757575;
    line-height: 1.6;
    margin: 0;
}

.lp-cta-fine {
    font-size: 13px;
    color: #9E9E9E;
    margin: -8px 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════ */
.lp-footer {
    background: #FDF6EE;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    padding-top: 60px;
}

.lp-footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.lp-footer-brand p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #757575;
    max-width: 260px;
}

.lp-footer-col h4 {
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #757575;
}

.lp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-footer-col a {
    font-size: 14px;
    color: #3D3D3D;
    text-decoration: none;
    transition: color 0.18s ease;
}

.lp-footer-col a:hover { color: #0D9488; }

.lp-footer-bottom {
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    padding: 20px 0;
}

.lp-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9E9E9E;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .lp-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .lp-hero-mockup { max-width: 600px; margin: 0 auto; }
    .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .lp-footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .pub-nav, .pub-nav-actions { display: none; }
    .pub-nav-hamburger { display: flex; }
    .lp-container { padding: 0 20px; }
    .lp-section { padding: 64px 0; }
    .lp-steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .lp-step-line::before { display: none; }
    .lp-testimonials-grid { grid-template-columns: 1fr; }
    .lp-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-footer-inner { grid-template-columns: 1fr; }
    .lp-footer-brand { grid-column: span 1; }
    .lp-footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
    .lp-mockup-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Banner de aviso de suscripción ───────────────────────────────────────── */
.sub-alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.sub-alert-past-due {
    background: #FEF9C3;
    color: #854D0E;
    border-color: rgba(180, 83, 9, 0.18);
}
.sub-alert-grace {
    background: #FEE2E2;
    color: #991B1B;
    border-color: rgba(153, 27, 27, 0.18);
}
.sub-alert-banner span {
    flex: 1;
}
.sub-alert-action {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    background: rgba(0,0,0,.08);
    color: inherit;
    white-space: nowrap;
}
.sub-alert-action:hover {
    background: rgba(0,0,0,.15);
}
