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

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Harmonious Dark Palette */
  --bg-main: hsl(224, 71%, 4%);
  --bg-surface: hsl(222, 47%, 7%);
  --bg-surface-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: hsla(263, 90%, 65%, 0.4);

  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dark: hsl(222, 47%, 11%);

  /* Premium Accents */
  --primary: hsl(263, 90%, 60%);
  --primary-glow: hsla(263, 90%, 60%, 0.3);
  --secondary: hsl(190, 95%, 50%);
  --secondary-glow: hsla(190, 95%, 50%, 0.3);
  --accent: hsl(320, 100%, 60%);

  /* Alerts */
  --success: hsl(142, 76%, 45%);
  --error: hsl(0, 84%, 60%);
  --warning: hsl(38, 92%, 50%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bg-hover: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(255, 255, 255, 0.05);
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.light-theme {
  --bg-main: hsl(210, 30%, 96%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: hsla(263, 90%, 65%, 0.2);

  --text-main: hsl(222, 47%, 11%);
  --text-muted: hsl(215, 16%, 47%);
  --text-dark: hsl(210, 40%, 98%);

  --primary: hsl(263, 90%, 55%);
  --primary-glow: hsla(263, 90%, 55%, 0.15);
  --secondary: hsl(190, 95%, 45%);
  --secondary-glow: hsla(190, 95%, 45%, 0.15);
  --accent: hsl(320, 100%, 50%);

  --bg-input: rgba(248, 250, 252, 0.85);
  --bg-hover: rgba(0, 0, 0, 0.03);
  --shadow-main: 0 8px 30px 0 rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.03);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f172a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  --bg-button-secondary: hsl(210, 20%, 95%);
  --border-button-secondary: hsl(210, 16%, 86%);
  --bg-button-secondary-hover: hsl(210, 20%, 90%);

  --background: var(--bg-main);
  --foreground: var(--text-main);
  --muted: var(--text-muted);
  --muted-foreground: var(--text-muted);
  --border: var(--border-color);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, var(--primary-glow) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--secondary-glow) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Common Layout Elements */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-bounce);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--btn-primary-bg, var(--primary)) !important;
  color: var(--btn-primary-text, #fff) !important;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--btn-primary-hover, var(--primary)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--btn-secondary-bg, var(--bg-surface)) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--btn-secondary-text, var(--text-main)) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover, rgba(255, 255, 255, 0.05)) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--error), hsl(0, 84%, 50%));
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Glass Card */
.glass-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 2.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  background: var(--bg-input) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main) !important;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

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

/* Auth / Setup Pages */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.auth-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-left: 0.5rem;
}

.sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.sidebar-item.active a, .sidebar-item a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.active a {
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
  color: var(--text-main);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Main Content */
.main-content {
  flex-grow: 1;
  margin-left: 280px;
  padding: 2.5rem 3.5rem;
  min-height: 100vh;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.header-title h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.header-title p {
  color: var(--text-muted);
}

/* Stats / Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 2.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

/* Table Card */
.table-card {
  overflow: hidden;
  padding: 1.5rem 0 0 0;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 1rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-secondary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Actions Column */
.actions-cell {
  display: flex;
  gap: 0.5rem;
}

/* Alerts / Notifications */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: hsl(142, 76%, 55%);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: hsl(0, 84%, 65%);
}

/* Public Layout CSS (simple defaults) */
.public-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.public-header, [class*="navbar"]:not([class*="dashboard"]) {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--menu-bg) !important;
  --background: var(--menu-bg) !important;
}

.public-header nav, .public-nav {
  background-color: transparent !important;
  --background: transparent !important;
}

.public-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-nav {
  display: flex;
  gap: 2rem;
}

.public-nav a:not(.btn), .public-header a:not(.btn) {
  color: var(--menu-text) !important;
}

.public-nav a:not(.btn):hover, .public-header a:not(.btn):hover {
  color: var(--menu-hover) !important;
}

.public-footer {
  margin-top: 8rem;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background-color: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  font-size: 0.9rem;
}

.public-footer a {
  color: var(--footer-text) !important;
}

.public-footer a:hover {
  color: var(--primary) !important;
}

/* Section Overrides */
.section-light, section.bg-muted {
  background-color: var(--section-bg-light) !important;
  color: var(--text-main) !important;
}

.section-dark {
  background-color: var(--section-bg-dark) !important;
  color: #f8fafc !important;
  --text-main: #f8fafc !important;
  --text-muted: #94a3b8 !important;
}

.section-accent {
  background-color: var(--section-bg-accent) !important;
  color: var(--text-main) !important;
}

/* Code Mirror or Textarea Editor styles */
.editor-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.code-editor {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background: #090d16;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  color: #a5b4fc;
  min-height: 350px;
  line-height: 1.5;
}

.code-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* --- Builder Blocks Styles --- */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.builder-block-col {
  grid-column: span 12 / span 12;
}

.builder-block-col-4 {
  grid-column: span 12 / span 12;
}

.builder-block-col-6 {
  grid-column: span 12 / span 12;
}

.builder-block-col-12 {
  grid-column: span 12 / span 12;
}

@media (min-width: 768px) {
  .builder-block-col-4 {
    grid-column: span 4 / span 4;
  }
  .builder-block-col-6 {
    grid-column: span 6 / span 6;
  }
}

/* Base Card Style matching the premium system */
.builder-card {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.builder-card:hover {
  border-color: var(--primary-glow);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.builder-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.builder-card-header {
  margin-bottom: 1.25rem;
}

.builder-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.builder-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Metric card text styles */
.builder-metric-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.builder-metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.25rem 0;
}

.builder-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.builder-trend-up {
  color: var(--success);
}

.builder-trend-down {
  color: var(--error);
}

.builder-icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.builder-icon-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.builder-icon-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

.builder-icon-primary {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

/* Badge styles */
.builder-badge {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--primary);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  margin-left: 0.5rem;
}

/* List Item Styles */
.builder-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
}

.builder-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.builder-list-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.builder-list-img-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 2.25rem;
  overflow: hidden;
}

.builder-list-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* List Item text styling */
.builder-list-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.builder-list-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.builder-list-value-primary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.builder-list-value-secondary {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Datatable specifics */
.builder-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.builder-table {
  width: 100%;
  border-collapse: collapse;
}

.builder-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.builder-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.builder-table tr:last-child td {
  border-bottom: none;
}

.builder-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* Progress bar inside total earnings */
.builder-progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  height: 0.35rem;
  border-radius: 50px;
  overflow: hidden;
  margin-top: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.builder-progress-bar {
  background: var(--primary);
  height: 100%;
  border-radius: 50px;
  transition: width 0.5s ease-in-out;
}

/* Contemplados Popular — Design Tokens + Base */
:root {
  --blue-900: #0F2A5C;
  --blue-800: #102E66;
  --blue-700: #1E3A8A;
  --blue-500: #2563EB;
  --blue-300: #93C5FD;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;

  --green-700: #15803D;
  --green-600: #16A34A;
  --green-500: #22C55E;
  --green-300: #86EFAC;
  --green-100: #DCFCE7;
  --green-50:  #F0FDF4;

  --white:   #FFFFFF;
  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --success: #15803D;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --warning-fg: #92400E;
  --error:   #DC2626;
  --info:    #2563EB;

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(15, 42, 92, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 42, 92, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 42, 92, 0.12);
  --shadow-xl: 0 24px 64px rgba(15, 42, 92, 0.18);

  --container: 1240px;

  /* Overrides for light theme alignment on public builder blocks */
  --primary: var(--green-700);
  --primary-glow: rgba(21, 128, 61, 0.15);
  --secondary: var(--blue-700);
  --secondary-glow: rgba(30, 58, 138, 0.15);
  --bg-main: var(--white);
  --bg-surface: var(--slate-50);
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --border-color: var(--slate-200);
  --border-focus: var(--blue-300);
  --text-main: var(--slate-800);
  --text-muted: var(--slate-500);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main);
  background-image: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--text-main); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 12px 22px; border-radius: var(--radius-md);
  transition: var(--transition-smooth);
  white-space: nowrap; line-height: 1.2; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--btn-primary-bg, var(--primary)); color: var(--btn-primary-text, white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-primary-hover, var(--primary)); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--btn-secondary-bg, var(--secondary)); color: var(--btn-secondary-text, white); }
.btn-secondary:hover { background: var(--btn-secondary-hover, var(--secondary)); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--btn-primary-bg, var(--primary)); border: 1.5px solid var(--btn-primary-bg, var(--primary)); }
.btn-outline:hover { background: var(--bg-hover); }
.btn-ghost { background: transparent; color: var(--btn-primary-bg, var(--primary)); padding: 10px 14px; }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-whatsapp { background: var(--green-500); color: white; }
.btn-whatsapp:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

/* ----- INPUT ----- */
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 16px;
  background: var(--bg-input); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md); font-size: 15px; color: var(--text-main);
  transition: all 150ms ease;
}
.textarea { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text-muted); }
.label-req::after { content: " *"; color: var(--green-700); font-weight: 700; }
.help { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.error { color: var(--error); font-size: 13px; margin-top: 4px; }

/* ----- BADGES ----- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-success-solid { background: var(--success); color: white; }
.badge-info { background: var(--primary-glow); color: var(--primary); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-neutral { background: var(--bg-hover); color: var(--text-muted); }

/* ----- CARDS ----- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: all 200ms ease;
}
.card-hover:hover { box-shadow: var(--shadow-main); transform: translateY(-2px); border-color: var(--border-color); }

/* ----- HEADER ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-surface-glass); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; line-height: 1; }
.brand-text .top { color: var(--text-main); font-size: 14px; letter-spacing: 0.01em; }
.brand-text .bot { color: var(--primary); font-size: 18px; letter-spacing: 0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .navlink {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px;
  transition: all 150ms ease; cursor: pointer;
}
.nav a:hover, .nav .navlink:hover { background: var(--bg-hover); color: var(--primary); text-decoration: none; }
.nav a.active, .nav .navlink.active { color: var(--primary); background: var(--primary-glow); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: all 150ms ease; z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-main);
}
.nav-dropdown-menu a:hover { background: var(--bg-hover); color: var(--primary); }
.nav-dropdown-menu .dd-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary-glow);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  flex-shrink: 0;
}
.menu-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; padding: 8px; border-radius: 8px; color: var(--text-muted); }
  .menu-toggle:hover { background: var(--bg-hover); }
}

.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
}
.mobile-drawer .scrim {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4);
  opacity: 0; transition: opacity 250ms ease;
}
.mobile-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--bg-surface); transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column; padding: 20px;
  overflow-y: auto;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer.open .scrim { opacity: 1; }
.mobile-drawer.open .panel { transform: translateX(0); }
.mobile-drawer .panel a { display: block; padding: 14px 12px; border-radius: 10px; color: var(--text-main); font-weight: 500; }
.mobile-drawer .panel a:hover, .mobile-drawer .panel a.active { background: var(--bg-hover); color: var(--primary); }
.mobile-drawer .group-label { padding: 16px 12px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }

/* ----- FOOTER ----- */
.site-footer { background: var(--bg-surface); color: var(--text-main); padding: 64px 0 0; margin-top: 96px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--text-main); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; font-weight: 600; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 56px; padding: 24px 0; background: var(--bg-hover);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-color);
}
.footer-bottom a { color: var(--text-muted); margin-left: 16px; }
.footer-bottom a:hover { color: var(--primary); }
.compliance-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.compliance-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--bg-hover);
  border-radius: var(--radius-full); font-size: 12px; color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-hover); display: flex; align-items: center; justify-content: center;
  color: var(--text-main); transition: var(--transition-smooth);
}
.social-row a:hover { background: var(--primary-glow); color: var(--primary); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----- WHATSAPP FAB ----- */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-500); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.wa-fab:hover { background: var(--green-700); transform: scale(1.05); text-decoration: none; }
.wa-fab::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: var(--green-500); opacity: 0.35; z-index: -1;
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.9); opacity: 0.35; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ----- HERO + SECTION HELPERS ----- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-tinted { background: var(--bg-hover); }
.section-blue { background: var(--bg-surface); color: var(--text-main); }
.section-blue h1, .section-blue h2, .section-blue h3 { color: var(--text-main); }

.hero {
  padding: 64px 0 80px; background: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-main) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
  color: var(--primary); margin-bottom: 20px; box-shadow: var(--shadow-sm);
}

h1.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; color: var(--text-main); letter-spacing: -0.02em; }
h1.display em { color: var(--primary); font-style: normal; }
.lead { font-size: 19px; color: var(--text-muted); line-height: 1.5; margin-top: 18px; max-width: 56ch; }

h2.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.015em; color: var(--text-main); }
h2.section-title em { color: var(--primary); font-style: normal; }
.section-kicker { font-family: var(--font-display); font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 18px; max-width: 64ch; margin-top: 14px; }

/* placeholder image */
.ph {
  background: var(--bg-hover);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 24px; gap: 6px;
}
.ph svg { color: var(--primary); }

/* breadcrumb */
.crumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-muted); padding: 20px 0; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: var(--border-color); }
.crumb .current { color: var(--text-main); font-weight: 500; }

/* grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* checks list */
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; list-style: none; font-size: 15px; color: var(--text-main); }
.check-list .check {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

/* feature card */
.feature {
  padding: 28px; background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); transition: all 200ms ease; height: 100%;
}
.feature:hover { box-shadow: var(--shadow-main); transform: translateY(-2px); }
.feature .icon-circle {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-glow); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature.green .icon-circle { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.feature h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 32px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); margin-top: -40px; position: relative; box-shadow: var(--shadow-main); }
.trust-strip > div { display: flex; gap: 14px; align-items: flex-start; }
.trust-strip .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-glow); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-strip strong { display: block; font-family: var(--font-display); color: var(--text-main); font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.trust-strip span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust-strip { grid-template-columns: 1fr; } }

/* quota card */
.quota {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: all 200ms ease; height: 100%;
}
.quota:hover { box-shadow: var(--shadow-main); transform: translateY(-2px); border-color: var(--primary); }
.quota-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quota-admin { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.quota-id { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.quota-credit { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--primary); line-height: 1; letter-spacing: -0.01em; }
.quota-credit-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.quota-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: var(--bg-hover); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.quota-stat strong { display: block; font-family: var(--font-display); font-weight: 700; color: var(--text-main); font-size: 15px; }
.quota-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* steps */
.step { padding: 28px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); position: relative; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--primary-glow); line-height: 1; position: absolute; top: 12px; right: 18px; }
.step h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-main); }
.step p { color: var(--text-muted); font-size: 14px; }

/* testimonial */
.tst { padding: 28px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; height: 100%; }
.tst-stars { color: #F59E0B; display: flex; gap: 2px; }
.tst-quote { color: var(--text-main); opacity: 0.9; font-size: 15px; line-height: 1.6; flex: 1; }
.tst-person { display: flex; gap: 12px; align-items: center; }
.tst-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-glow); color: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.tst-meta strong { display: block; color: var(--text-main); font-weight: 600; font-size: 14px; }
.tst-meta span { font-size: 12px; color: var(--text-muted); }

/* CTA bar */
.cta-bar {
  background: var(--bg-surface); color: var(--text-main);
  padding: 64px 48px; border-radius: var(--radius-xl);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden; border: 1px solid var(--border-color);
}
.cta-bar::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.cta-bar h2 { color: var(--text-main); font-size: 32px; margin-bottom: 8px; }
.cta-bar p { color: var(--text-muted); font-size: 17px; }

/* accordion */
.acc-item { border-bottom: 1px solid var(--border-color); }
.acc-q { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-main); }
.acc-q:hover { color: var(--primary); }
.acc-icon { color: var(--primary); flex-shrink: 0; transition: transform 200ms ease; }
.acc-item.open .acc-icon { transform: rotate(180deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 250ms ease, padding 250ms ease; color: var(--text-muted); }
.acc-item.open .acc-a { max-height: 600px; padding: 0 0 22px; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--bg-hover); border-radius: var(--radius-full); }
.tabs button { padding: 8px 16px; border-radius: var(--radius-full); font-weight: 500; font-size: 14px; color: var(--text-muted); transition: all 150ms ease; }
.tabs button:hover { color: var(--text-main); }
.tabs button.active { background: var(--bg-surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* slider */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; background: var(--border-color); border-radius: var(--radius-full); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-surface); box-shadow: var(--shadow-md); cursor: pointer; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg-surface); box-shadow: var(--shadow-md); cursor: pointer; }

/* progress */
.progress { height: 6px; background: var(--bg-hover); border-radius: var(--radius-full); overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); transition: width 300ms ease; }

/* skeleton */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel { background: linear-gradient(90deg, var(--bg-hover) 0%, var(--bg-surface) 50%, var(--bg-hover) 100%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--radius-md); }

/* utility text */
.muted { color: var(--text-muted); }
.t-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* segment cards */
.seg-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-hover), var(--bg-surface));
  border: 1px solid var(--border-color); transition: all 200ms ease;
}
.seg-card:hover { box-shadow: var(--shadow-main); transform: translateY(-3px); border-color: var(--primary); text-decoration: none; }
.seg-card .seg-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-surface); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.seg-card.green .seg-icon { color: var(--success); }
.seg-card h3 { font-size: 22px; color: var(--text-main); }
.seg-card p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.seg-card .arrow-link { margin-top: 4px; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }

/* table */
.table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.table th { background: var(--bg-hover); font-family: var(--font-display); font-weight: 600; color: var(--text-main); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* tag chips */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-color); background: var(--bg-surface); font-size: 14px; color: var(--text-muted); cursor: pointer; transition: all 150ms ease; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* footer-ish CTA wide */
.section-narrow { max-width: 800px; margin: 0 auto; }

/* design system page */
.ds-side { position: sticky; top: 100px; align-self: start; }
.ds-side a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-size: 14px; }
.ds-side a:hover { background: var(--bg-hover); color: var(--text-main); text-decoration: none; }
.swatch { aspect-ratio: 1.4 / 1; border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.swatch .name { font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.swatch .hex { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* notification toast */
.toast {
  position: fixed; bottom: 100px; right: 24px; z-index: 95;
  background: var(--bg-surface); color: var(--text-main); padding: 14px 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-main); font-size: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-color);
  animation: toast-in 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* cookies banner */
.cookies {
  position: fixed; bottom: 16px; left: 16px; right: 96px; z-index: 88;
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 18px 22px; box-shadow: var(--shadow-main);
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
@media (max-width: 720px) { .cookies { right: 16px; bottom: 96px; } }
.cookies p { font-size: 14px; color: var(--text-muted); flex: 1; min-width: 240px; }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 14vw, 160px); color: var(--primary); line-height: 1; letter-spacing: -0.04em; }
.notfound .big em { color: var(--secondary); font-style: normal; }

/* article */
.article-content { font-family: var(--font-body); color: var(--text-main); line-height: 1.7; font-size: 17px; }
.article-content h2 { font-size: 28px; margin: 36px 0 16px; color: var(--text-main); }
.article-content h3 { font-size: 22px; margin: 28px 0 12px; color: var(--text-main); }
.article-content p { margin-bottom: 18px; }
.article-content ul { padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote { border-left: 4px solid var(--primary); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--text-main); font-style: italic; background: var(--bg-hover); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; }

/* divider */
.divider { height: 1px; background: var(--border-color); margin: 48px 0; }

/* scroll lock for drawer */
body.no-scroll { overflow: hidden; }

/* Custom CTA Component Styles (Premium Dark/Split Theme) */
.cta-split-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 48px 32px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.cta-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 991px) {
  .cta-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.cta-blur-bg-1 {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.cta-blur-bg-2 {
  position: absolute;
  left: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #cbd5e1 !important;
  font-weight: 500;
  margin-bottom: 20px;
}

.cta-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.cta-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 32px !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin: 0 0 16px 0 !important;
}

.cta-subtitle {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #94a3b8 !important;
  max-width: 480px;
  margin: 0 0 28px 0 !important;
}

.cta-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 576px) {
  .cta-features-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-feature-item .check-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.cta-feature-item .check-icon.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.cta-feature-item .check-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.cta-feature-item span {
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1 !important;
}

.cta-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cta-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 16px;
  transition: var(--transition-smooth);
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
}

.cta-card-btn.whatsapp {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cta-card-btn.whatsapp:hover {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.3);
}

.cta-card-btn.maps {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-card-btn.maps:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px -6px rgba(255, 255, 255, 0.15);
}

.cta-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-card-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.cta-card-icon-wrapper.whatsapp {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cta-card-icon-wrapper.maps {
  background: #8b5cf6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cta-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.cta-card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.cta-card-subtitle {
  font-size: 12px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.cta-card-subtitle.green {
  color: #34d399 !important;
}

.cta-card-subtitle.slate {
  color: #94a3b8 !important;
}

.cta-card-arrow {
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cta-card-btn.whatsapp .cta-card-arrow {
  color: #34d399;
}

.cta-card-btn.maps .cta-card-arrow {
  color: #94a3b8;
}

.cta-card-btn:hover .cta-card-arrow {
  transform: translateX(4px);
}

/* Standard centered layout rules */
.cta-standard-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px 0;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.2);
}

.cta-standard-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  font-size: 28px !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.cta-standard-subtitle {
  font-size: 15px !important;
  color: #94a3b8 !important;
  max-width: 480px;
  margin: 0 !important;
  line-height: 1.5;
}

.cta-standard-btn-container {
  margin-top: 8px;
}

