@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Brand logo */
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  display: block;
}
.brand-logo--dark { display: none; }
.brand-logo--light { display: block; }

.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark  { display: block; }

@media (max-width: 768px) {
  .brand-logo { height: 40px; max-width: 140px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 36px; max-width: 110px; }
}

:root {
  --color-primary: #356ae6;
  --color-primary-dark: #2854c5;
  --color-navy: #1a2b6b;
  --color-purple: #7b4fff;
  --color-teal: #00c2a8;
  --color-white: #ffffff;
  --color-bg-light: #f5f7ff;
  --color-bg-soft: #eef2ff;
  --color-text: #1f1f1f;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #0f766e;
  --color-danger: #b91c1c;
  --shadow-soft: 0 20px 50px rgba(26, 43, 107, 0.08);
  --shadow-hero: 0 40px 90px rgba(8, 15, 45, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 90%; /* Escala global -10% */
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}

#roma-chat-widget,
#roma-support-widget {
  font-size: 1rem; /* reset a base 16px para widgets con px fijos */
}

body[data-lang="en"] [data-lang="es"] {
  display: none;
}

body[data-lang="es"] [data-lang="en"] {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

main {
  overflow: hidden;
}

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

.section-light {
  background: var(--color-bg-light);
  border-radius: 32px;
  padding-inline: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}

.section-subtitle {
  max-width: 680px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(53, 106, 230, 0.1);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

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

.btn-primary,
.btn-outline,
.btn-outline--white,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 0;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-outline--white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-white);
}

.btn-outline--white:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 0;
}

.card {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.announcement-bar {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
}

.announcement-bar a {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  inset: 38px 0 auto;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, inset 0.3s ease;
}

.site-header.scrolled {
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.navbar {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-white);
  font-weight: 700;
}

.site-header.scrolled .brand,
.site-header.scrolled .nav-links a,
.site-header.scrolled .nav-utility {
  color: var(--color-text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: var(--color-white);
  box-shadow: 0 10px 25px rgba(53, 106, 230, 0.25);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Mobile-only menu items hidden on desktop */
.nav-links__wa,
.nav-links__cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links a,
.nav-utility {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--color-white);
  padding: 10px 14px;
  cursor: pointer;
}

.site-header.scrolled .lang-switch {
  color: var(--color-text);
  border-color: rgba(31, 31, 31, 0.12);
}

.site-header.scrolled .nav-toggle__bar,
.site-header .nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: var(--color-navy);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 24px 90px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 194, 168, 0.22), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(123, 79, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #1a2b6b 0%, #356ae6 50%, #7b4fff 100%);
  color: var(--color-white);
  overflow: hidden;
}

#roma-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 720px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal);
}

.hero-mockup {
  width: min(100%, 1040px);
  margin: 12px auto 0;
}

.floating-mockup {
  position: relative;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-hero);
  backdrop-filter: blur(10px);
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(11, 18, 49, 0.62);
  margin-bottom: 18px;
}

.mockup-dots {
  display: inline-flex;
  gap: 8px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.mockup-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 250px;
  gap: 18px;
}

.mockup-panel {
  min-height: 360px;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
}

.mockup-menu {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mockup-menu div,
.mockup-tag {
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--color-bg-light);
  color: var(--color-text-muted);
}

.mockup-menu .is-active,
.mockup-tag.is-active {
  background: rgba(53, 106, 230, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mockup-kpis article {
  border-radius: 14px;
  padding: 16px;
  background: var(--color-bg-light);
}

.mockup-kpis strong {
  display: block;
  color: var(--color-navy);
  font-size: 1.35rem;
}

.mockup-chart {
  position: relative;
  height: 190px;
  margin-top: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef2ff 100%);
  overflow: hidden;
}

.mockup-chart::before,
.mockup-chart::after {
  content: "";
  position: absolute;
  inset: 24px 24px auto;
  height: 2px;
  background: rgba(26, 43, 107, 0.08);
  box-shadow: 0 44px 0 rgba(26, 43, 107, 0.08), 0 88px 0 rgba(26, 43, 107, 0.08);
}

.mockup-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mockup-feed {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mockup-feed article {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
}

.logo-strip {
  padding: 72px 0;
}

.logo-strip-head {
  text-align: center;
  margin-bottom: 30px;
}

.logo-strip-head p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.logo-strip-shell {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.logo-track {
  display: flex;
  gap: 48px;
  width: max-content;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(26, 43, 107, 0.05);
}

.feature-section {
  padding-top: 36px;
}

.features-section {
  padding: 80px 0;
  background: var(--color-white);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block--left {
  direction: rtl;
}

.feature-block--left > * {
  direction: ltr;
}

.feature-tag {
  display: inline-block;
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
}

.feature-text p {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.feature-bullets li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--color-text-muted);
}

.feature-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-weight: 700;
}

.feature-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-copy p {
  margin-top: 18px;
  color: var(--color-text-muted);
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
}

.feature-visual {
  position: relative;
}

.feature-card {
  padding: 28px;
}

.feature-card-grid {
  display: grid;
  gap: 16px;
}

.feature-mini-card {
  border-radius: 18px;
  background: var(--color-bg-light);
  padding: 18px;
}

.feature-mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.stats-section {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 36px 0 96px;
}

.stats-shell {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
  border: 1px solid rgba(53, 106, 230, 0.12);
}

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

.stat-item {
  padding: 24px;
  border-radius: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  color: var(--color-navy);
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--color-text-muted);
}

.testimonials-section {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-light) 100%);
}

.testimonial-carousel {
  position: relative;
  display: grid;
}

.testimonial-card {
  display: none;
  padding: 34px;
}

.testimonial-card.active {
  display: block;
}

.testimonial-rating {
  color: #f59e0b;
  letter-spacing: 0.18em;
  font-size: 1rem;
}

.testimonial-card blockquote {
  margin-top: 18px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.7;
  color: var(--color-navy);
}

.testimonial-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(53, 106, 230, 0.2);
  cursor: pointer;
}

.testimonial-dot.is-active {
  background: var(--color-primary);
}

.pricing-section {
  padding-top: 24px;
}

.pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-white);
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(53, 106, 230, 0.18);
  transition: background 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--color-primary);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(26px);
}

.badge-save {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 194, 168, 0.12);
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.pricing-card {
  position: relative;
  padding: 34px;
}

.pricing-card--featured,
.pricing-featured {
  border-color: rgba(53, 106, 230, 0.24);
  box-shadow: 0 28px 60px rgba(53, 106, 230, 0.14);
}

.badge-recommended {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  margin: 18px 0 24px;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  color: var(--color-navy);
}

.price span {
  margin-left: 8px;
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.features-list,
.pricing-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.features-list li,
.pricing-card li {
  position: relative;
  padding-left: 24px;
}

.features-list li::before,
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.integration-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-align: center;
  box-shadow: 0 12px 30px rgba(26, 43, 107, 0.05);
}

.integration-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(53, 106, 230, 0.12), rgba(123, 79, 255, 0.18));
  color: var(--color-navy);
}

.integration-card p {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.cta-section {
  padding-top: 24px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 26px;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2854c5 0%, #356ae6 60%, #7b4fff 100%);
  color: var(--color-white);
  box-shadow: 0 35px 70px rgba(53, 106, 230, 0.22);
}

.cta-panel .section-title,
.cta-panel p,
.cta-panel .eyebrow {
  color: var(--color-white);
}

.cta-panel .eyebrow {
  background: rgba(255, 255, 255, 0.14);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea,
.auth-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-text);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  margin-top: 80px;
  padding: 0 0 28px;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 70px 0 34px;
}

.footer-col h4,
.footer-brand {
  color: var(--color-white);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.footer-logo {
  width: 200px;
  height: auto;
  display: block;
}

.footer-desc {
  margin-top: 16px;
  line-height: 1.7;
  font-size: 0.92rem;
  max-width: 360px;
}

/* Social icons row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social__link svg {
  display: block;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-bottom {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
  position: relative;
}

.footer-legal a:hover {
  color: var(--color-white);
}

.footer-legal a + a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-shell {
  max-width: 620px;
  margin: 40px auto 0;
  padding: 34px;
}

.auth-shell > p {
  margin-top: 14px;
  color: var(--color-text-muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.auth-form span {
  font-weight: 600;
  color: var(--color-navy);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.auth-links a,
.auth-footnote {
  color: var(--color-text-muted);
}

.auth-footnote {
  margin-top: 20px;
}

.auth-error,
.auth-success {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
}

.auth-error {
  background: rgba(185, 28, 28, 0.08);
  color: var(--color-danger);
}

.auth-success {
  background: rgba(15, 118, 110, 0.08);
  color: var(--color-success);
}

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

.member-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 28px;
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.member-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.member-nav {
  display: grid;
  gap: 8px;
}

.member-sidebar-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.member-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.member-nav a:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.member-content {
  display: grid;
  gap: 24px;
}

.member-section {
  padding: 32px;
}

.member-section h1,
.member-section h2 {
  margin-bottom: 16px;
}

.member-actions {
  margin-top: 24px;
}

.member-counter-suffix {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 700;
}

.member-plan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 18px 0 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(53, 106, 230, 0.1);
  color: var(--color-primary);
}

.status-pill.is-active,
.status-pill.is-success {
  background: rgba(15, 118, 110, 0.12);
  color: var(--color-success);
}

.status-pill.is-paused,
.status-pill.is-error {
  background: rgba(185, 28, 28, 0.1);
  color: var(--color-danger);
}

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

.member-list-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.member-list-item p,
.empty-state {
  color: var(--color-text-muted);
}

.member-invoices {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.member-invoices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.member-invoices-head span {
  color: var(--color-primary);
  font-weight: 700;
}

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

/* =============================
   FLAG BUBBLE — LANGUAGE SWITCH
   ============================= */

#langFlag {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

#langFlag:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

#langFlag svg {
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 2px;
}

/* =============================
   ROMA CHAT WIDGET — BURBUJA
   ============================= */

#roma-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#roma-support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
}

#roma-chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(53, 106, 230, 0.45);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#roma-chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(53, 106, 230, 0.55);
}

#roma-support-trigger {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--color-white);
}

#roma-chat-trigger img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

#roma-support-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#roma-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

#roma-chat-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#roma-chat-panel[hidden] {
  display: none;
}

#roma-support-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(360px, calc(100vw - 24px));
  height: 500px;
  background: var(--color-white);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.chat-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-header span {
  flex: 1;
}

#roma-chat-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

#roma-chat-close:hover {
  color: #fff;
}

#roma-support-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-size: 20px;
}

#roma-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 340px;
  scroll-behavior: smooth;
}

#roma-support-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.roma-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

.roma-message.bot {
  background: var(--color-bg-light);
  color: var(--color-navy);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.roma-message.user {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#roma-typing {
  padding: 8px 16px;
  display: flex;
  gap: 4px;
  align-items: center;
}

#roma-typing[hidden] {
  display: none;
}

.typing-dot {
  color: var(--color-primary);
  font-size: 18px;
  animation: typingPulse 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

#roma-chat-form {
  padding: 12px;
  border-top: 1px solid #e8ecf4;
  display: flex;
  gap: 8px;
}

#roma-support-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--color-border);
}

#roma-chat-form input {
  flex: 1;
  border: 1px solid #d1d9f0;
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

#roma-chat-form input:focus {
  border-color: var(--color-primary);
}

#roma-support-form input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 12px 16px;
}

#roma-chat-form button[type="submit"] {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

#roma-chat-form button[type="submit"]:hover {
  background: var(--color-primary-dark);
}

#roma-support-form button[type="submit"] {
  width: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
}

.roma-chat-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  align-self: flex-start;
  transition: background 0.15s;
}

.roma-chat-wa:hover {
  background: #1db954;
  color: #fff;
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 50px 0 24px;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-legal a + a::before {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid-2,
  .pricing-grid,
  .cta-panel,
  .member-dashboard,
  .mockup-body,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .integrations-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 160px;
  }

  .member-sidebar {
    position: static;
  }
}

/* =============================
   MOBILE: FULLSCREEN MENU, DECORATIVE IMAGES, FLAG
   ============================= */

@media (max-width: 768px) {
  .section {
    width: min(calc(100% - 32px), var(--container));
    padding: 72px 0;
  }

  .section-light {
    padding-inline: 24px;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 16px 0;
    position: relative;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  /* Fullscreen overlay */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255,255,255,0.98);
    padding: 80px 32px 40px;
    z-index: 100;
    gap: 4px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-top: none;
    box-shadow: none;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: none;
    color: var(--color-navy);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 280px;
  }

  /* Mobile-only WhatsApp link */
  .nav-links__wa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 28px !important;
    border-radius: 50px;
    background: #25d366;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none;
    max-width: 280px;
    width: 100%;
  }

  .nav-links__wa::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 2.12.564 4.108 1.548 5.826L.08 24l6.352-1.665C8.3 23.366 10.108 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0zm5.809 17.12c-.26.735-1.036 1.36-1.813 1.543-.518.122-1.195.175-1.928.175-1.365 0-2.634-.456-3.694-1.244-1.096-.815-2.048-1.947-2.648-3.287-.308-.685-.485-1.417-.485-2.15 0-.734.177-1.466.485-2.151.6-1.34 1.552-2.472 2.648-3.287 1.06-.788 2.33-1.244 3.694-1.244.733 0 1.41.053 1.928.175.777.183 1.553.808 1.813 1.543.286.81.366 1.516.366 2.15s-.08 1.34-.366 2.15z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
  }

  .nav-links__wa:hover {
    background: #1db954;
  }

  .nav-links__cta {
    display: none; /* hidden on desktop, shown as btn on mobile via media query */
  }

  /* Hide desktop nav-actions "Comenzar gratis" on mobile, show inside menu */
  .nav-actions a.btn-primary {
    display: none;
  }

  .nav-links__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 28px !important;
    border-radius: 6px;
    background: var(--color-primary) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    max-width: 280px;
    width: 100%;
    text-decoration: none;
    border: none;
  }

  /* Hide old lang-switch on mobile */
  .lang-switch {
    display: none;
  }

  /* Hide decorative images on mobile */
  .floating-mockup {
    display: none;
  }

  .hero {
    padding: 150px 18px 70px;
  }

  .hero-ctas,
  .hero-meta,
  .member-plan-row,
  .auth-links,
  .member-list-item,
  .member-invoices-head {
    align-items: stretch;
  }

  .grid-3,
  .integrations-grid,
  .stats-grid,
  .mockup-kpis,
  .feature-block,
  .feature-block--left {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  /* Hide feature images on mobile (decorative) */
  .feature-image {
    display: none;
  }

  .cta-panel,
  .auth-shell,
  .member-section,
  .pricing-card,
  .stats-shell {
    padding: 24px;
  }

  .site-header {
    inset: 38px 0 auto;
  }

  .site-header.scrolled {
    inset: 0 0 auto;
  }
}

/* =============================
   PRICING — ENTERPRISE CARD
   ============================= */

.pricing-card--enterprise {
  border: 2px solid var(--color-purple);
}

.pricing-card--enterprise h3 {
  color: var(--color-purple);
}

/* =============================
   LOGIN / ACCEDER — Estilos
   ============================= */

.login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--color-bg-light, #f5f7ff);
}

.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.login-box h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--color-navy);
}

#loginform p {
  margin-bottom: 16px;
}

#loginform label {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 4px;
}

#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

#loginform .button-primary {
  width: 100%;
  padding: 13px;
  background: var(--color-primary, #356ae6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

#loginform .button-primary:hover {
  background: var(--color-primary-dark, #2854c5);
}

/* =============================
   ERROR 404 — Custom Page
   ============================= */

.error-404-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: var(--color-bg-light);
}

.error-404-shell {
  text-align: center;
  max-width: 620px;
}

.error-404-code {
  display: block;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 8px;
}

.error-404-desc {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.error-404-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.error-404-help {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.error-404-help a {
  color: var(--color-primary);
  font-weight: 600;
}

.error-404-help a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .error-404-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-404-actions a {
    width: 100%;
  }

  .error-404-wrap {
    padding: 100px 20px 60px;
  }
}

/* Chat widget mobile */
@media (max-width: 480px) {
  #roma-chat-panel {
    width: calc(100vw - 32px);
    right: -4px;
    bottom: 68px;
  }
  #roma-chat-trigger {
    width: 52px;
    height: 52px;
  }
}

/* Mobile: CTA hero full-width en <480px */
@media (max-width: 480px) {
  .hero-ctas a {
    width: 100%;
  }

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

  .pricing-card--enterprise {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Mobile: Lottie logo no desbordar */
@media (max-width: 480px) {
  #roma-lottie-logo {
    max-width: 44px;
    max-height: 44px;
    flex-shrink: 0;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .nav-actions .btn-primary {
    padding: 10px 16px;
    font-size: 14px;
    min-height: unset;
  }
}

/* =============================
   DASHBOARD FASE 2 — Estilos
   ============================= */

.dash-layout {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  width: 240px;
  background: #0f172a;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dash-main {
  flex: 1;
  padding: 32px;
  background: #f8fafc;
  display: grid;
  gap: 24px;
  align-content: start;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}

.dash-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #356ae6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
}

.dash-brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.dash-nav-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dash-nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dash-nav-link.active {
  background: #1e3a8a;
  color: #fff;
}

.dash-nav-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.dash-nav-link.active svg {
  opacity: 1;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dash-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.dash-date {
  font-size: 0.85rem;
  color: #64748b;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.kpi-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.kpi-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-weight: 600;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}

/* Chart */
.chart-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.revenue-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Automations list */
.automations-list {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

/* Activity Feed */
.activity-feed {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  align-items: flex-start;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.8rem;
  min-width: 60px;
}

.activity-msg {
  color: #334155;
  flex: 1;
}

/* Status pill (reuse) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(53,106,230,0.08);
  color: #356ae6;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Empty state */
.empty-state {
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .dash-layout {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    padding: 16px;
  }

  .dash-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }

  .dash-brand {
    padding-bottom: 16px;
    margin-bottom: 12px;
  }

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

@media (max-width: 640px) {
  .dash-main {
    padding: 16px;
  }

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

  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-item {
    flex-direction: column;
    gap: 4px;
  }

  .chart-wrap {
    padding: 16px;
  }
}

/* ===== DASHBOARD CLEAN ===== */
body.roma-dashboard-page { margin: 0; padding: 0; background: #f1f5f9; }
body.roma-dashboard-page #wpadminbar { display: none !important; }
body.roma-dashboard-page html { margin-top: 0 !important; }

.dash-root { display: flex; min-height: 100vh; }

/* Sidebar */
.dash-sidebar { width: 220px; min-height: 100vh; background: #0f172a; display: flex; flex-direction: column; padding: 24px 0; position: fixed; left:0; top:0; bottom:0; z-index:50; }
.dash-brand { padding: 0 20px 28px; }
.dash-brand img { height: 30px; }
.dash-nav { flex:1; display:flex; flex-direction:column; gap:2px; padding:0 10px; }
.dash-nav-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; color:#cbd5e1; font-size:0.875rem; text-decoration:none; transition:background .15s,color .15s; cursor:pointer; }
.dash-nav-item svg { flex-shrink:0; }
.dash-nav-item span { white-space:nowrap; }
.dash-nav-item:hover { background:rgba(255,255,255,0.09); color:#f1f5f9; }
.dash-nav-item--active { background:#1e40af; color:#fff; }
.dash-sidebar-footer { padding:16px 10px 0; border-top:1px solid rgba(255,255,255,0.08); margin-top:16px; }
.dash-user { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.dash-user-avatar { width:36px; height:36px; border-radius:50%; background:#356ae6; display:flex; align-items:center; justify-content:center; font-size:0.8rem; font-weight:700; color:#fff; flex-shrink:0; }
.dash-user-name { font-size:0.8rem; color:#e2e8f0; font-weight:600; }
.dash-user-role { font-size:0.7rem; color:#64748b; }
.dash-quick-action { display:block; background:#356ae6; color:#fff; text-align:center; padding:10px; border-radius:8px; font-size:0.8rem; font-weight:600; text-decoration:none; }
.dash-quick-action:hover { background:#2854c5; }

/* Main */
.dash-main { margin-left:220px; flex:1; padding:28px 32px; display:flex; flex-direction:column; gap:20px; min-height:100vh; }
.dash-topbar { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:4px; }
.dash-title { font-size:1.6rem; font-weight:700; color:#0f172a; margin:0 0 4px; }
.dash-subtitle { font-size:0.875rem; color:#64748b; margin:0; }
.dash-topbar-right { display:flex; align-items:center; gap:12px; }
.dash-date-badge { font-size:0.8rem; color:#475569; border:1px solid #e2e8f0; border-radius:6px; padding:6px 12px; background:#fff; }
.dash-logout { font-size:0.8rem; color:#475569; border:1px solid #e2e8f0; border-radius:6px; padding:6px 12px; background:#fff; text-decoration:none; }
.dash-logout:hover { background:#f8fafc; }

/* KPI */
.kpi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.kpi-card { background:#fff; border-radius:12px; padding:20px 24px; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.kpi-skeleton { min-height:100px; background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size:400px 100%; animation:shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.kpi-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.kpi-label { font-size:0.78rem; color:#64748b; font-weight:500; text-transform:uppercase; letter-spacing:.03em; }
.sparkline { width:60px; height:28px; }
.kpi-value { font-size:2rem; font-weight:800; color:#0f172a; line-height:1; margin-bottom:8px; }
.kpi-delta { font-size:0.8rem; font-weight:600; }
.kpi-delta--up { color:#16a34a; }
.kpi-delta--down { color:#dc2626; }
.kpi-compare { color:#94a3b8; font-weight:400; }

/* Cards */
.dash-card { background:#fff; border-radius:12px; padding:20px 24px; box-shadow:0 1px 6px rgba(0,0,0,.06); }
.dash-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.dash-card-title { font-size:0.95rem; font-weight:600; color:#0f172a; }
.dash-link-sm { font-size:0.8rem; color:#356ae6; text-decoration:none; }

/* Charts row */
.dash-charts-row { display:grid; grid-template-columns:1.6fr 1fr; gap:16px; }
.dash-card--wide { }

/* Donut */
.donut-legend { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.donut-legend-item { display:flex; align-items:center; gap:8px; font-size:0.8rem; }
.donut-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.donut-legend-label { flex:1; color:#475569; }
.donut-legend-val { color:#0f172a; font-weight:600; }

/* Table */
.dash-table { width:100%; border-collapse:collapse; font-size:0.875rem; }
.dash-table th { text-align:left; padding:8px 12px; color:#94a3b8; font-size:0.72rem; font-weight:600; text-transform:uppercase; border-bottom:1px solid #f1f5f9; }
.dash-table td { padding:12px; color:#334155; border-bottom:1px solid #f8fafc; }
.dash-table tr:last-child td { border-bottom:none; }
.auto-name { font-weight:500; color:#0f172a; }
.success-pill { background:#dcfce7; color:#16a34a; border-radius:20px; padding:2px 10px; font-size:0.78rem; font-weight:600; }

/* Activity */
.activity-item { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #f8fafc; font-size:0.85rem; }
.activity-item:last-child { border-bottom:none; }
.activity-icon { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0; }
.activity-icon--success { background:#dcfce7; color:#16a34a; }
.activity-icon--error { background:#fee2e2; color:#dc2626; }
.activity-icon--info { background:#dbeafe; color:#356ae6; }
.activity-msg { flex:1; color:#334155; line-height:1.4; }
.activity-time { color:#94a3b8; font-size:0.75rem; white-space:nowrap; }

/* Stats bar */
.stats-bar { background:#fff; border-radius:12px; padding:16px 24px; display:flex; justify-content:space-around; align-items:center; box-shadow:0 1px 6px rgba(0,0,0,.06); flex-wrap:wrap; gap:12px; }
.stat-item { text-align:center; }
.stat-value { font-size:1.2rem; font-weight:700; color:#0f172a; }
.stat-label { font-size:0.7rem; color:#94a3b8; text-transform:uppercase; margin:2px 0; }
.stat-delta { font-size:0.75rem; font-weight:600; }
.stat-delta.up { color:#16a34a; }
.stat-delta.down { color:#dc2626; }

/* Clients */
.dash-search { border:1px solid #e2e8f0; border-radius:8px; padding:8px 14px; font-size:0.875rem; width:220px; outline:none; }
.dash-search:focus { border-color:#356ae6; }
.role-pill { background:#eff6ff; color:#356ae6; border-radius:20px; padding:2px 10px; font-size:0.75rem; font-weight:600; text-transform:capitalize; }
.dash-pagination { display:flex; gap:8px; justify-content:flex-end; padding-top:12px; }
.dash-btn { border:1px solid #e2e8f0; border-radius:6px; padding:6px 14px; font-size:0.8rem; cursor:pointer; background:#fff; color:#334155; }
.dash-btn:hover { background:#f8fafc; }

/* Responsive */
@media (max-width:1200px) {
  .dash-charts-row { grid-template-columns:1fr; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .dash-sidebar { width:56px; }
  .dash-nav-item span,.dash-user-name,.dash-user-role,.dash-quick-action { display:none; }
  .dash-brand img { display:none; }
  .dash-main { margin-left:56px; padding:16px; }
  .kpi-grid { grid-template-columns:1fr; }
  .stats-bar { gap:8px; }
}
