/* ==========================================================================
   Axon — Design System & Main Stylesheet
   The evolution of Acrílica Designs
   All measurements architected in REM for fluid responsiveness & accessibility
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-secondary: #424245;
  --muted: #5e5e63;
  --muted-light: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #005bb5;
  --blue-subtle: #edf5ff;
  --purple: #6860cf;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
  --shadow-md: 0 0.75rem 2rem rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 1.5rem 4rem rgba(0, 0, 0, 0.08);
  --dark-bg: #101014;
  --dark-surface: #18181f;
  --dark-card: #22222b;
  --dark-border: rgba(255, 255, 255, 0.12);
  --green: #2fa84f;
  --green-bg: #eaf6ed;
  --amber: #f59e0b;
  --gradient: linear-gradient(100deg, #306dd2, #6860cf 65%, #9f69c9);
  --gradient-soft: radial-gradient(ellipse at 50% 83%, #dfeaff 0, #ffffff 52%);
  --radius-sm: 0.625rem;
  --radius-md: 1.125rem;
  --radius-lg: 1.625rem;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  /* Healthcare / HEMMI Palette Tokens */
  --hemmi-teal: #088395;
  --hemmi-teal-light: #e0f4f7;
  --hemmi-rose: #fce8eb;
  --hemmi-rose-dark: #b83344;
  --hemmi-muted: #52616b;
}

/* Dark Mode Tokens & Overrides */
[data-theme="dark"],
body.dark {
  --ink: #f5f5f7;
  --ink-secondary: #d1d1d6;
  --muted: #a1a1a6;
  --muted-light: #71717a;
  --bg: #141418;
  --surface: #1c1c22;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --blue-subtle: rgba(0, 113, 227, 0.18);
  --hemmi-teal: #2dd4bf;
  --hemmi-teal-light: rgba(8, 131, 149, 0.2);
  --hemmi-rose: rgba(184, 51, 68, 0.22);
  --hemmi-rose-dark: #f87171;
  --hemmi-muted: #d1d1d6;
  --gradient: linear-gradient(100deg, #7aa8ff, #a79bff 65%, #d49bff);
  --gradient-soft: radial-gradient(ellipse at 50% 83%, #1a2744 0, #101014 65%);
  background-color: #101014;
  color: #f5f5f7;
}

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

html {
  font-size: 100%; /* 16px baseline honoring user OS & browser accessibility preferences */
  scroll-behavior: smooth;
  scroll-padding-top: 5.375rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

nav.site-nav {
  height: 4.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  max-width: 71.25rem;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.logo {
  font-size: 1.75rem;
  letter-spacing: -0.1125rem;
  font-weight: 750;
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.logo:hover {
  opacity: 0.88;
}

.logo:active {
  transform: scale(0.97);
}

.logo-all {
  color: var(--blue);
}

.logo-axon {
  color: #000000;
}

/* Nav logo in dark mode or dark contexts */
[data-theme="dark"] nav.site-nav .logo-axon,
body.dark nav.site-nav .logo-axon,
nav.site-nav.dark .logo-axon {
  color: #ffffff;
}

.logo-dot {
  color: var(--blue);
}

[data-theme="dark"] nav.site-nav,
body.dark nav.site-nav {
  background: rgba(18, 18, 22, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a:not(.pill),
body.dark .nav-links a:not(.pill) {
  color: #c8c8cf;
}

[data-theme="dark"] .nav-links a:not(.pill):hover,
body.dark .nav-links a:not(.pill):hover,
[data-theme="dark"] .nav-links a:not(.pill).active,
body.dark .nav-links a:not(.pill).active {
  color: #ffffff;
}

[data-theme="dark"] .lang-switch,
body.dark .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .lang-btn,
body.dark .lang-btn {
  color: #a1a1a6;
}

[data-theme="dark"] .lang-btn.active,
body.dark .lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 1.4vw, 1.45rem);
  align-items: center;
  font-size: 0.84375rem;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a:not(.pill) {
  position: relative;
  color: #55555c;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.18s ease;
}

.nav-links a:not(.pill):hover {
  color: var(--blue);
}

.nav-links a:not(.pill).active,
.nav-links a:not(.pill)[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.nav-links a:not(.pill)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background: var(--blue);
  border-radius: 0.125rem;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  opacity: 0;
}

.nav-links a:not(.pill):hover::after {
  transform: scaleX(0.5);
  opacity: 0.6;
}

.nav-links a:not(.pill).active::after,
.nav-links a:not(.pill)[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Nav Actions & Language Toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #f0f0f4;
  border-radius: 1.25rem;
  padding: 0.1875rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.71875rem;
  font-weight: 600;
  color: var(--muted);
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 1rem;
  padding: 0.25rem 0.5625rem;
  cursor: pointer;
  transition: all 0.18s ease;
  color: var(--muted);
  min-height: 1.75rem;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--ink);
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: white;
  padding: 0.8125rem 1.5rem;
  font-size: 0.90625rem;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
  min-height: 3rem;
  box-sizing: border-box;
}

.pill:hover {
  background: var(--blue-hover);
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.375rem 1.125rem rgba(0, 113, 227, 0.28);
}

.pill:active {
  background: var(--blue-active);
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 113, 227, 0.2);
}

.pill.small {
  padding: 0.5rem 1rem;
  font-size: 0.78125rem;
  min-height: 2.25rem;
}

.pill.secondary {
  background: #f8fafc;
  color: #111827;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.07);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill.secondary:hover {
  background: #ffffff;
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0.3125rem 1rem rgba(0, 113, 227, 0.2);
  transform: translateY(-0.0625rem);
}

.pill.secondary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.08);
}

/* Distinct elevated contrast inside .gray sections (e.g. #soporte, #soluciones) */
.gray .pill.secondary {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.09);
}

/* High Contrast Dark Mode */
[data-theme="dark"] .pill.secondary,
body.dark .pill.secondary {
  background: #232736;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .pill.secondary:hover,
body.dark .pill.secondary:hover {
  background: #2b3246;
  border-color: #60a5fa;
  color: #60a5fa;
  box-shadow: 0 0.375rem 1.125rem rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .gray .pill.secondary,
body.dark .gray .pill.secondary {
  background: #262c3d;
  border-color: rgba(255, 255, 255, 0.35);
}

.pill.outline {
  background: transparent;
  color: var(--blue);
  border: 0.09375rem solid var(--blue);
}

.pill.outline:hover {
  background: var(--blue-subtle);
}

.pill.whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 0.375rem 1.125rem rgba(37, 211, 102, 0.25);
}

.pill.whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 0.5rem 1.375rem rgba(37, 211, 102, 0.35);
}

.textlink {
  color: var(--blue);
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.textlink:hover {
  opacity: 0.8;
}

.textlink:active {
  color: var(--blue-active);
}

.textlink::after {
  content: '›';
  font-size: 1.1875rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.textlink:hover::after {
  transform: translateX(0.1875rem);
}

/* ==========================================================================
   Typography & Layout Containers
   ========================================================================== */

.wrap {
  max-width: 70rem;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 53.75rem;
  margin: 0 auto;
}

section {
  padding: 6rem 1.5rem;
  position: relative;
}

.gray {
  background-color: var(--bg);
}

[data-theme="dark"] .gray,
body.dark .gray {
  background-color: #141418;
}

.dark {
  background-color: var(--dark-bg);
  color: #ffffff;
}

.dark .sectiontitle,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
[data-theme="dark"] .sectiontitle,
body.dark .sectiontitle,
[data-theme="dark"] h2,
body.dark h2,
[data-theme="dark"] h3,
body.dark h3,
[data-theme="dark"] h4,
body.dark h4,
[data-theme="dark"] h5,
body.dark h5,
[data-theme="dark"] h6,
body.dark h6,
[data-theme="dark"] .card h3,
body.dark .card h3,
[data-theme="dark"] .card h4,
body.dark .card h4,
[data-theme="dark"] .feature h3,
body.dark .feature h3,
[data-theme="dark"] .feature h4,
body.dark .feature h4 {
  color: #ffffff !important;
}

.dark .sectionintro,
.dark .copy,
.dark p,
[data-theme="dark"] .sectionintro,
body.dark .sectionintro,
[data-theme="dark"] .copy,
body.dark .copy,
[data-theme="dark"] p,
body.dark p,
[data-theme="dark"] .card p,
body.dark .card p,
[data-theme="dark"] .card .copy,
body.dark .card .copy,
[data-theme="dark"] .feature p,
body.dark .feature p {
  color: #d1d1d6 !important;
}

.dark .card,
[data-theme="dark"] .card,
body.dark .card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: #ffffff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.eyebrow.dark-eyebrow,
[data-theme="dark"] .eyebrow,
body.dark .eyebrow {
  color: #89adff;
}

/* Support checklist (Hosting & Maintenance) */
.support {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--muted);
  margin: 1.5rem 0;
}

.support span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ink);
}

[data-theme="dark"] .support span,
body.dark .support span {
  color: #e4e4e7;
}

.sectiontitle {
  font-size: clamp(2.125rem, 1.5rem + 3vw, 3.5rem);
  letter-spacing: -0.1375rem;
  line-height: 1.08;
  font-weight: 650;
  margin: 0.75rem 0 1.25rem;
  color: var(--ink);
  text-wrap: balance;
}

.sectionintro {
  font-size: 1.15625rem;
  line-height: 1.5;
  max-width: 42.5rem;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.gradient {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ==========================================================================
   Hero Banners (Global & Inner Pages)
   ========================================================================== */

.hero {
  text-align: center;
  overflow: hidden;
  background: var(--gradient-soft);
  padding: 4rem 1.5rem 1.25rem;
}

.hero-inner {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, #e2eeff 0, #ffffff 65%);
  padding: 4.5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h1,
.hero-inner h1 {
  font-size: clamp(2.625rem, 1.75rem + 4vw, 4.75rem);
  letter-spacing: -0.2375rem;
  line-height: 1.04;
  margin: 1.125rem auto 1.375rem;
  max-width: 60rem;
  font-weight: 650;
  text-wrap: balance;
}

.intro {
  font-size: 1.21875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 41.25rem;
  margin: 0 auto;
  text-wrap: pretty;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 2.25rem;
  flex-wrap: wrap;
}

.strip {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid #e9e9ec;
  border-top: 1px solid #f0f0f3;
  display: flex;
  justify-content: center;
  gap: 3.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: #ffffff;
  flex-wrap: wrap;
}

.strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.strip span::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
}

/* ==========================================================================
   Grids & Cards
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.375rem;
  margin-top: 3rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.125rem;
  min-height: 21.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
}

.card .num {
  position: absolute;
  right: 1.75rem;
  top: 1.875rem;
  color: #b0b0b8;
  font-size: 0.75rem;
  font-weight: 600;
}

.card .icon {
  font-size: 2rem;
  color: var(--blue);
  height: 2.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.5625rem;
  letter-spacing: -0.0625rem;
  margin: 0.75rem 0 0.75rem;
  line-height: 1.2;
}

.card p,
.copy {
  font-size: 0.90625rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.card .card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--green-bg);
  color: var(--green);
  padding: 0.3125rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03125rem;
}

.badge.blue {
  background: var(--blue-subtle);
  color: var(--blue);
}

.badge.indigo {
  background: #eef2ff;
  color: #4338ca;
}

.badge.rose {
  background: var(--hemmi-rose);
  color: var(--hemmi-rose-dark);
}

/* Dark theme badge contrasts */
[data-theme="dark"] .badge,
body.dark .badge {
  background: rgba(46, 168, 79, 0.2);
  color: #4ade80;
}

[data-theme="dark"] .badge.blue,
body.dark .badge.blue {
  background: rgba(0, 113, 227, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .badge.indigo,
body.dark .badge.indigo {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
}

[data-theme="dark"] .badge.rose,
body.dark .badge.rose {
  background: rgba(184, 51, 68, 0.22) !important;
  color: #f87171 !important;
}

.badge.teal {
  background: #e6fffa;
  color: #0d9488;
}

[data-theme="dark"] .badge.teal,
body.dark .badge.teal {
  background: rgba(20, 184, 166, 0.2) !important;
  color: #2dd4bf !important;
}

/* Card stat numbers high contrast in dark mode */
[data-theme="dark"] .card [style*="color:var(--blue)"],
body.dark .card [style*="color:var(--blue)"] {
  color: #60a5fa !important;
}

[data-theme="dark"] .card [style*="color:var(--green)"],
body.dark .card [style*="color:var(--green)"] {
  color: #4ade80 !important;
}

[data-theme="dark"] .card [style*="color: #d95d67"],
[data-theme="dark"] .card [style*="color:#d95d67"],
body.dark .card [style*="color: #d95d67"],
body.dark .card [style*="color:#d95d67"] {
  color: #fb7185 !important;
}

/* Implemented Product Tags inside Portfolio Cards */
.case-implemented-product {
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.case-implemented-product .implemented-label {
  font-size: 0.71875rem;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.case-implemented-product .implemented-name {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--ink);
}

.case-implemented-product.teal {
  background: var(--hemmi-teal-light);
  border-left: 0.1875rem solid var(--hemmi-teal);
}
.case-implemented-product.teal .implemented-label {
  color: var(--hemmi-teal);
}

.case-implemented-product.blue {
  background: var(--blue-subtle);
  border-left: 0.1875rem solid var(--blue);
}
.case-implemented-product.blue .implemented-label {
  color: var(--blue);
}

.case-implemented-product.indigo {
  background: #eef2ff;
  border-left: 0.1875rem solid #4338ca;
}
.case-implemented-product.indigo .implemented-label {
  color: #4338ca;
}

/* Dark mode overrides for implemented product banner */
[data-theme="dark"] .case-implemented-product.teal,
body.dark .case-implemented-product.teal {
  background: rgba(8, 131, 149, 0.2) !important;
  border-left-color: #22d3ee !important;
}
[data-theme="dark"] .case-implemented-product.teal .implemented-label,
body.dark .case-implemented-product.teal .implemented-label {
  color: #22d3ee !important;
}

[data-theme="dark"] .case-implemented-product.blue,
body.dark .case-implemented-product.blue {
  background: rgba(0, 113, 227, 0.2) !important;
  border-left-color: #60a5fa !important;
}
[data-theme="dark"] .case-implemented-product.blue .implemented-label,
body.dark .case-implemented-product.blue .implemented-label {
  color: #60a5fa !important;
}

[data-theme="dark"] .case-implemented-product.indigo,
body.dark .case-implemented-product.indigo {
  background: rgba(99, 102, 241, 0.2) !important;
  border-left-color: #a5b4fc !important;
}
[data-theme="dark"] .case-implemented-product.indigo .implemented-label,
body.dark .case-implemented-product.indigo .implemented-label {
  color: #a5b4fc !important;
}

[data-theme="dark"] .case-implemented-product .implemented-name,
body.dark .case-implemented-product .implemented-name {
  color: #f5f5f7 !important;
}

/* Client Case Header Tag */
.card-client-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  display: inline-flex;
  align-items: center;
}

.card-client-tag.teal {
  color: var(--hemmi-teal);
}

.card-client-tag.blue {
  color: var(--blue);
}

.card-client-tag.indigo {
  color: #4338ca;
}

[data-theme="dark"] .card-client-tag.teal,
body.dark .card-client-tag.teal {
  color: #22d3ee !important;
}

[data-theme="dark"] .card-client-tag.blue,
body.dark .card-client-tag.blue {
  color: #60a5fa !important;
}

[data-theme="dark"] .card-client-tag.indigo,
body.dark .card-client-tag.indigo {
  color: #a5b4fc !important;
}

/* ==========================================================================
   Portfolio & Client Showcase Section
   ========================================================================== */

.portfolio-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.portfolio-card-hemmi {
  border: 1px solid rgba(8, 131, 149, 0.3);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8, 131, 149, 0.03) 100%);
  position: relative;
}

.portfolio-card-hemmi:hover {
  border-color: var(--hemmi-teal);
  box-shadow: 0 0.75rem 2rem rgba(8, 131, 149, 0.12);
}

[data-theme="dark"] .portfolio-section,
body.dark .portfolio-section {
  background: #141418;
}

[data-theme="dark"] .portfolio-card-hemmi,
body.dark .portfolio-card-hemmi {
  border-color: rgba(8, 131, 149, 0.45);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(8, 131, 149, 0.1) 100%);
}

/* ==========================================================================
   Interactive Tabs & Filter Pills
   ========================================================================== */

.tab-nav {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2.25rem 0 1.5rem;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.tab-btn:hover {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .tab-btn.active,
body.dark .tab-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 113, 227, 0.35);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Metrics & KPI Displays
   ========================================================================== */

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 3rem;
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.125rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.375rem;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

[data-theme="dark"] .metrics-strip,
body.dark .metrics-strip {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .metric-number,
body.dark .metric-number {
  color: #60a5fa;
}

[data-theme="dark"] .metric-label,
body.dark .metric-label {
  color: #d1d1d6;
}

/* ==========================================================================
   Interactive CMS Live Simulator
   ========================================================================== */

.cms-simulator {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.cms-window {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cms-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.125rem;
  font-size: 0.75rem;
  color: var(--ink);
}

.cms-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cms-field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.cms-field input,
.cms-field select,
.cms-field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  font-size: 1rem; /* Prevents auto-zoom in mobile Safari */
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 2.75rem;
}

.cms-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235e5e63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 0.75rem 0.75rem;
  padding-right: 2rem;
}

.cms-field input:focus,
.cms-field select:focus,
.cms-field textarea:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 0.1875rem rgba(0, 113, 227, 0.18) !important;
  background: var(--surface);
}

.cms-preview {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 0.75rem;
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cms-preview-badge {
  font-size: 0.5625rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.cms-preview-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03125rem;
  margin: 0 0 0.375rem;
  color: var(--ink);
}

.cms-preview-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Pricing & Support Tiers
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.875rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 1rem 2.5rem rgba(0, 113, 227, 0.12);
}

.pricing-tag {
  position: absolute;
  top: -0.8125rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
}

.pricing-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03125rem;
  margin: 0 0 0.5rem;
}

.pricing-desc {
  font-size: 0.84375rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  min-height: 2.625rem;
}

.pricing-price {
  font-size: 2.375rem;
  font-weight: 750;
  letter-spacing: -0.09375rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid #f0f0f3;
  padding-top: 1.25rem;
  flex-grow: 1;
}

.pricing-features li {
  font-size: 0.84375rem;
  color: var(--ink-secondary);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
  font-size: 0.75rem;
}

/* ==========================================================================
   Process Timeline & Step Cards
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.step {
  border-top: 2px solid var(--border);
  padding-top: 1.375rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.step:hover {
  border-color: var(--blue);
}

.step b {
  font-size: 0.71875rem;
  color: var(--blue);
  letter-spacing: 0.0625rem;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.0375rem;
  margin: 0 0 0.625rem;
  line-height: 1.25;
}

.step p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Interactive Calculator & Form Elements
   ========================================================================== */

.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.375rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 2.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-slider-wrap {
  margin-bottom: 1.5rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
  height: 0.375rem;
  background: #e2e2e8;
  border-radius: 0.1875rem;
}

.calc-result-box {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.calc-result-number {
  font-size: 2.75rem;
  font-weight: 750;
  letter-spacing: -0.125rem;
  color: var(--blue);
  line-height: 1.1;
  margin: 0.625rem 0;
}

/* Form Styles */
.form {
  background: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.78125rem;
  font-weight: 600;
  margin-bottom: 0.4375rem;
  color: var(--ink);
  letter-spacing: -0.00625rem;
}

/* Comprehensive text input and form control selector */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]):not([type="file"]):not([type="image"]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1px solid #d2d2d7;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom on focus */
  line-height: 1.45;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  min-height: 3rem;
  box-sizing: border-box;
}

/* Subtle tactile hover feedback on un-focused inputs */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):hover,
select:hover,
textarea:hover {
  border-color: #b0b0b8;
}

/* Uniform, modern Apple-style focus ring */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 0.21875rem rgba(0, 113, 227, 0.20) !important;
  background-color: #ffffff;
}

/* Dropdown Select Styling with crisp matching arrow chevron */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5e63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.875rem 0.875rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

select option {
  background-color: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
}

/* Textarea specific constraints */
textarea {
  resize: vertical;
  min-height: 6.875rem;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: #8e8e93;
  opacity: 1;
  font-weight: 400;
}

/* Dark mode form styles */
.form-dark,
.form.dark {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: #ffffff;
}

.form-dark label,
.form.dark label {
  color: #e2e2e8;
}

.form-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.form-dark select,
.form-dark textarea,
.form.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.form.dark select,
.form.dark textarea {
  background-color: #22222b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.form-dark input::placeholder,
.form-dark textarea::placeholder,
.form.dark input::placeholder,
.form.dark textarea::placeholder {
  color: #7e7e88;
}

.form-dark select,
.form.dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e2e2e8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-dark select option,
.form.dark select option {
  background-color: #22222b;
  color: #ffffff;
}

.form-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
.form-dark select:hover,
.form-dark textarea:hover,
.form.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
.form.dark select:hover,
.form.dark textarea:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.form-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.form-dark select:focus,
.form-dark textarea:focus,
.form.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.form.dark select:focus,
.form.dark textarea:focus {
  border-color: #388bfd !important;
  box-shadow: 0 0 0 0.21875rem rgba(56, 139, 253, 0.28) !important;
  background-color: #272732;
}

.formnote {
  font-size: 0.6875rem;
  color: var(--muted-light);
  line-height: 1.5;
  margin-top: 0.875rem;
}

.formstatus {
  font-size: 0.84375rem;
  line-height: 1.6;
  margin-top: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: none;
}

.formstatus.success {
  display: block;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(47, 168, 79, 0.2);
}

/* FAQ Accordion */
.faq {
  margin-top: 2rem;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  transition: background-color 0.2s ease;
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  color: var(--muted);
  font-size: 0.90625rem;
  line-height: 1.65;
  margin: 0.875rem 0 0.375rem;
  text-wrap: pretty;
}

/* Dark Mode FAQ Accordion */
[data-theme="dark"] details,
body.dark details {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] summary,
body.dark summary {
  color: #ffffff;
}

[data-theme="dark"] summary::after,
body.dark summary::after {
  color: #89adff;
}

[data-theme="dark"] details p,
body.dark details p {
  color: #d1d1d6;
}

/* ==========================================================================
   Screen Mockup & Visual Components
   ========================================================================== */

.screen {
  width: min(55rem, 96%);
  margin: 2.25rem auto 0;
  border: 0.5rem solid #242429;
  border-bottom: 0;
  border-radius: 1.375rem 1.375rem 0 0;
  box-shadow: 0 0 0 1px #9a9ba0, 0 1.5rem 4.375rem rgba(40, 76, 125, 0.25);
  background: white;
  text-align: left;
  transform: perspective(93.75rem) rotateX(2.5deg);
  padding: 0 0 1.75rem;
  transition: transform 0.4s ease;
}

.screen:hover {
  transform: perspective(93.75rem) rotateX(0deg);
}

.browser {
  height: 1.75rem;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #f1f1f3;
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0 0.875rem;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #c4c4c8;
}

.url {
  font-size: 0.5rem;
  color: #999;
  margin: auto;
  font-family: monospace;
}

.mocknav {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.875rem;
  font-size: 0.625rem;
}

.mock {
  padding: 0.9375rem 1.875rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.875rem;
  align-items: center;
}

.mock h2 {
  font-size: clamp(1.4375rem, 1.1rem + 2vw, 2.5rem);
  letter-spacing: -0.1125rem;
  line-height: 1.05;
  margin: 0.625rem 0;
}

.mock p {
  font-size: 0.6875rem;
  color: #666;
  max-width: 15rem;
  line-height: 1.6;
}

.orb {
  height: 12.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fc;
  border-radius: 0.75rem;
  overflow: hidden;
}

.orb::before {
  content: '';
  width: 8.75rem;
  height: 8.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #f7fcff, #a3c3ee 45%, #4468ab 75%, #d7e6fa);
  box-shadow: inset -1rem -0.625rem 1.875rem rgba(38, 70, 130, 0.35), 1.25rem 1.25rem 2.5rem rgba(50, 99, 175, 0.2);
}

.orbit {
  position: absolute;
  width: 13.75rem;
  height: 5.3125rem;
  border: 1px solid #cad7eb;
  transform: rotate(-35deg);
  border-radius: 50%;
}

.caption {
  font-size: 0.6875rem;
  color: #6e6e73;
  margin: 1.25rem 0 0;
  text-align: center;
}

/* Visual Bar Chart */
.advisual {
  height: 18.75rem;
  display: flex;
  align-items: end;
  gap: 1rem;
  padding: 1.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, #78a8ff, #2556c6);
  border-radius: 0.5rem 0.5rem 0 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bar:hover {
  background: linear-gradient(180deg, #9bbfff, #3467e0);
}

.advisual::after {
  content: 'Estrategia → Anuncios de Alta Intención → Leads Calificados';
  position: absolute;
  bottom: -2rem;
  left: 1.875rem;
  color: #a1a1aa;
  font-size: 0.6875rem;
}

/* ==========================================================================
   Call to Action (CTA) Strips & Conversion Blocks
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, #0b1a30, #141c2c);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 3.75rem;
}

.cta-banner h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.5vw, 2.875rem);
  letter-spacing: -0.1125rem;
  margin: 0 0 1rem;
  color: white;
  text-wrap: balance;
}

.cta-banner p {
  font-size: 1.0625rem;
  color: #b0c0d8;
  max-width: 37.5rem;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}

.cta-banner .actions {
  margin-bottom: 0;
}

.cta-banner .pill:not(.whatsapp) {
  background: #ffffff !important;
  color: #0b1a30 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.25);
}

.cta-banner .pill:not(.whatsapp):hover {
  background: #f0f4ff !important;
  color: var(--blue) !important;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.35);
}

/* Floating Social & Contact Dock (Glassmorphism, small icon-only buttons) */
.floating-dock {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 95;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  backdrop-filter: blur(1.25rem) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.3125rem 0.4375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.12), 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.floating-dock:hover {
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.16), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06);
}

.floating-dock-btn {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.floating-dock-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.18s ease;
}

.floating-dock-btn:hover {
  transform: translateY(-0.125rem) scale(1.08);
}

.floating-dock-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.floating-dock-btn.btn-a11y {
  color: var(--blue);
  background: rgba(30, 77, 246, 0.08);
}

.floating-dock-btn.btn-a11y:hover,
.floating-dock-btn.btn-a11y.is-active {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(30, 77, 246, 0.35);
}

.floating-dock-btn.btn-whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(37, 211, 102, 0.35);
}

.floating-dock-btn.btn-x:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
}

.floating-dock-btn.btn-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(214, 36, 159, 0.35);
}

/* ==========================================================================
   Advanced Accessibility (A11Y) Modal & Interactive Tools
   ========================================================================== */

/* Reading Guide Ruler */
#a11y-reading-ruler {
  position: fixed;
  left: 0;
  right: 0;
  height: 3rem;
  background: rgba(30, 77, 246, 0.08);
  border-top: 2px solid rgba(30, 77, 246, 0.55);
  border-bottom: 2px solid rgba(30, 77, 246, 0.55);
  pointer-events: none;
  z-index: 99999;
  transform: translateY(-50%);
  display: none;
  box-shadow: 0 0 1.5rem rgba(30, 77, 246, 0.15);
}

body.a11y-reading-guide-active #a11y-reading-ruler {
  display: block;
}

/* Native Modal Dialog */
.a11y-dialog {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(1.5rem) saturate(180%);
  backdrop-filter: blur(1.5rem) saturate(180%);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.25), 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
  padding: 0;
  width: calc(100% - 2rem);
  max-width: 32rem;
  max-height: 88vh;
  color: var(--ink-primary);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
}

.a11y-dialog::backdrop {
  background: rgba(10, 16, 30, 0.5);
  -webkit-backdrop-filter: blur(0.25rem);
  backdrop-filter: blur(0.25rem);
}

.a11y-card {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 249, 250, 0.85);
}

.a11y-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.a11y-title-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(30, 77, 246, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a11y-title-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.a11y-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
}

.a11y-subtitle {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.a11y-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-close-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-primary);
}

.a11y-close-btn:focus-visible {
  outline: 2px solid var(--blue);
}

.a11y-body {
  padding: 1.25rem 1.375rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.a11y-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

/* Button Grids */
.a11y-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.375rem;
}

.a11y-opt-btn {
  padding: 0.5rem 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-height: 2.625rem;
}

.a11y-opt-btn:hover {
  border-color: var(--blue);
  background: rgba(30, 77, 246, 0.04);
}

.a11y-opt-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0.125rem 0.5rem rgba(30, 77, 246, 0.28);
}

.a11y-opt-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Toggle Switches */
.a11y-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.8125rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 249, 250, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.a11y-switch-row:hover {
  background: rgba(240, 243, 246, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

.a11y-switch-row:focus-visible {
  outline: 2px solid var(--blue);
}

.a11y-switch-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
}

.a11y-switch-title {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.a11y-switch-desc {
  font-size: 0.71875rem;
  color: var(--ink-muted);
}

.a11y-switch {
  position: relative;
  width: 2.625rem;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.a11y-switch::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.a11y-switch-row[aria-checked="true"] .a11y-switch {
  background: var(--blue);
}

.a11y-switch-row[aria-checked="true"] .a11y-switch::after {
  transform: translateX(1.125rem);
}

.a11y-footer {
  padding: 0.875rem 1.375rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 249, 250, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.a11y-btn-reset {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-btn-reset:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-primary);
}

.a11y-btn-done {
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 0.5rem;
  padding: 0.4375rem 1.125rem;
  font-size: 0.78125rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.a11y-btn-done:hover {
  background: var(--blue-dark);
}

/* ==========================================================================
   Cookie Consent Popup (First-time visitor)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 990;
  width: calc(100% - 3rem);
  max-width: 26rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(1.5rem) saturate(180%);
  backdrop-filter: blur(1.5rem) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.125rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.14), 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
  padding: 1.125rem 1.25rem;
  color: var(--ink-primary);
  opacity: 0;
  transform: translateY(1.25rem) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.cookie-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cookie-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.cookie-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(30, 77, 246, 0.1);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.25;
}

.cookie-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cookie-header-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.4375rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0;
  transition: all 0.18s ease;
}

.cookie-header-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-primary);
}

.cookie-header-btn.is-active {
  background: rgba(30, 77, 246, 0.1);
  color: var(--blue);
  border-color: rgba(30, 77, 246, 0.25);
}

.cookie-header-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.cookie-body {
  margin: 0;
}

.cookie-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.cookie-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.cookie-link:hover {
  color: var(--blue-dark);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}

.cookie-actions .pill {
  flex: 1 1 calc(50% - 0.25rem);
  text-align: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.78125rem;
  min-height: 2.125rem;
  white-space: nowrap;
}

/* Settings View Elements */
.cookie-settings-intro {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.cookie-switch-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.cookie-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5625rem 0.75rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 249, 250, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.cookie-switch-row:hover:not(.is-disabled) {
  background: rgba(240, 243, 246, 0.98);
  border-color: rgba(0, 0, 0, 0.15);
}

.cookie-switch-row:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.cookie-switch-row.is-disabled {
  cursor: default;
  opacity: 0.85;
  background: rgba(245, 245, 247, 0.55);
}

.cookie-switch-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
  flex: 1;
  padding-right: 0.625rem;
}

.cookie-switch-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.cookie-switch-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.cookie-badge-locked {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}

.cookie-switch-desc {
  font-size: 0.71875rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Switch UI indicator */
.cookie-switch {
  width: 2.375rem;
  height: 1.375rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cookie-switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.125rem;
  height: 1.125rem;
  background: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-switch-row[aria-checked="true"] .cookie-switch {
  background: var(--blue);
}

.cookie-switch-row[aria-checked="true"] .cookie-switch::after {
  transform: translateX(1rem);
}

/* Attention pulse when reopened */
@keyframes cookieHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 77, 246, 0.6), 0 1.25rem 3rem rgba(0, 0, 0, 0.14);
    transform: translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(30, 77, 246, 0.25), 0 1.25rem 3.5rem rgba(0, 0, 0, 0.22);
    transform: translateY(-0.25rem) scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 77, 246, 0), 0 1.25rem 3rem rgba(0, 0, 0, 0.14);
    transform: translateY(0) scale(1);
  }
}

.cookie-banner.is-pulsing {
  animation: cookieHighlightPulse 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Footer Trigger Button */
.footer-cookie-trigger {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.71875rem;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-cookie-trigger:hover {
  color: var(--blue);
}

/* Dark Mode Support for A11Y Dialog & Floating Dock */
[data-theme="dark"] .a11y-dialog,
body.dark .a11y-dialog {
  background: rgba(20, 22, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f3f7;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.65), 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .a11y-header,
body.dark .a11y-header,
[data-theme="dark"] .a11y-footer,
body.dark .a11y-footer {
  background: rgba(14, 15, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .a11y-title,
body.dark .a11y-title,
[data-theme="dark"] .a11y-switch-title,
body.dark .a11y-switch-title {
  color: #ffffff;
}

[data-theme="dark"] .a11y-subtitle,
body.dark .a11y-subtitle,
[data-theme="dark"] .a11y-switch-desc,
body.dark .a11y-switch-desc,
[data-theme="dark"] .a11y-group-label,
body.dark .a11y-group-label {
  color: #98a2b3;
}

[data-theme="dark"] .a11y-opt-btn,
body.dark .a11y-opt-btn {
  background: rgba(28, 31, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e7ec;
}

[data-theme="dark"] .a11y-opt-btn:hover,
body.dark .a11y-opt-btn:hover {
  border-color: var(--blue);
  background: rgba(30, 77, 246, 0.2);
}

[data-theme="dark"] .a11y-opt-btn.is-active,
body.dark .a11y-opt-btn.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

[data-theme="dark"] .a11y-switch-row,
body.dark .a11y-switch-row {
  background: rgba(24, 27, 36, 0.75);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .a11y-switch-row:hover,
body.dark .a11y-switch-row:hover {
  background: rgba(32, 36, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .a11y-close-btn,
body.dark .a11y-close-btn {
  background: rgba(32, 36, 48, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e4e7ec;
}

[data-theme="dark"] .a11y-close-btn:hover,
body.dark .a11y-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .a11y-btn-reset,
body.dark .a11y-btn-reset {
  border-color: rgba(255, 255, 255, 0.18);
  color: #98a2b3;
}

[data-theme="dark"] .a11y-btn-reset:hover,
body.dark .a11y-btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="dark"] .floating-dock,
body.dark .floating-dock {
  background: rgba(18, 20, 26, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .floating-dock-btn,
body.dark .floating-dock-btn {
  color: #ffffff;
}

[data-theme="dark"] .floating-dock-btn.btn-a11y,
body.dark .floating-dock-btn.btn-a11y {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

/* Dark Mode Support for Cookie Banner */
[data-theme="dark"] .cookie-banner,
body.dark .cookie-banner {
  background: rgba(22, 23, 29, 0.96);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.6), 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
  color: #f1f3f7;
}

[data-theme="dark"] .cookie-title,
body.dark .cookie-title {
  color: #ffffff;
}

[data-theme="dark"] .cookie-desc,
body.dark .cookie-desc {
  color: #c4c4cc;
}

[data-theme="dark"] .cookie-icon-wrap,
body.dark .cookie-icon-wrap {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

[data-theme="dark"] .cookie-link,
body.dark .cookie-link {
  color: #60a5fa;
}

[data-theme="dark"] .cookie-header-btn,
body.dark .cookie-header-btn {
  color: #9ca3af;
}

[data-theme="dark"] .cookie-header-btn:hover,
body.dark .cookie-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .cookie-header-btn.is-active,
body.dark .cookie-header-btn.is-active {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

[data-theme="dark"] .cookie-settings-intro,
body.dark .cookie-settings-intro {
  color: #c4c4cc;
}

[data-theme="dark"] .cookie-switch-row,
body.dark .cookie-switch-row {
  background: rgba(26, 28, 36, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cookie-switch-row:hover:not(.is-disabled),
body.dark .cookie-switch-row:hover:not(.is-disabled) {
  background: rgba(34, 38, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .cookie-switch-row.is-disabled,
body.dark .cookie-switch-row.is-disabled {
  background: rgba(20, 22, 28, 0.55);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cookie-switch-title,
body.dark .cookie-switch-title {
  color: #ffffff;
}

[data-theme="dark"] .cookie-badge-locked,
body.dark .cookie-badge-locked {
  background: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

[data-theme="dark"] .cookie-switch-desc,
body.dark .cookie-switch-desc {
  color: #9ca3af;
}

[data-theme="dark"] .cookie-switch,
body.dark .cookie-switch {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .cookie-switch-row[aria-checked="true"] .cookie-switch,
body.dark .cookie-switch-row[aria-checked="true"] .cookie-switch {
  background: #3b82f6;
}

[data-theme="dark"] .footer-cookie-trigger:hover,
body.dark .footer-cookie-trigger:hover {
  color: #60a5fa;
}

/* Accessibility Themes Applied via Root / Body */
html.a11y-text-sm {
  font-size: 87.5% !important;
}
html.a11y-text-lg {
  font-size: 112.5% !important;
}
html.a11y-text-xl {
  font-size: 125% !important;
}

/* High Contrast Mode */
body.a11y-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.a11y-high-contrast * {
  border-color: #444444 !important;
}
body.a11y-high-contrast .site-header,
body.a11y-high-contrast .site-footer,
body.a11y-high-contrast .feature-card,
body.a11y-high-contrast .service-card,
body.a11y-high-contrast .contact-card,
body.a11y-high-contrast .quote-calculator,
body.a11y-high-contrast .floating-dock,
body.a11y-high-contrast .a11y-dialog,
body.a11y-high-contrast .cookie-banner,
body.a11y-high-contrast .legal-header,
body.a11y-high-contrast .legal-sidebar,
body.a11y-high-contrast .legal-card,
body.a11y-high-contrast .callout-box {
  background: #111111 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .cookie-switch-row {
  background: #000000 !important;
  border: 1px solid #ffffff !important;
}
body.a11y-high-contrast .cookie-switch-title,
body.a11y-high-contrast .cookie-switch-desc,
body.a11y-high-contrast .cookie-badge-locked {
  color: #ffffff !important;
}
body.a11y-high-contrast .cookie-switch-row[aria-checked="true"] .cookie-switch {
  background: #ffffff !important;
}
body.a11y-high-contrast .cookie-switch-row[aria-checked="true"] .cookie-switch::after {
  background: #000000 !important;
}
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast strong {
  color: #ffffff !important;
}
body.a11y-high-contrast a,
body.a11y-high-contrast .text-primary,
body.a11y-high-contrast .nav-link:hover,
body.a11y-high-contrast .brand-axon {
  color: #58a6ff !important;
}
body.a11y-high-contrast .btn-primary {
  background: #ffff00 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: 2px solid #ffffff !important;
}
body.a11y-high-contrast .text-secondary,
body.a11y-high-contrast .text-muted,
body.a11y-high-contrast p {
  color: #e6edf3 !important;
}

/* Grayscale Mode */
body.a11y-grayscale {
  filter: grayscale(100%) !important;
}

/* Inverted Colors Mode */
body.a11y-inverted {
  filter: invert(100%) hue-rotate(180deg) !important;
  background-color: #000000 !important;
}
body.a11y-inverted img,
body.a11y-inverted video {
  filter: invert(100%) hue-rotate(180deg) !important;
}

/* Dyslexic Friendly Typography */
body.a11y-dyslexic,
body.a11y-dyslexic * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.05em !important;
  word-spacing: 0.12em !important;
  line-height: 1.85 !important;
}

/* Highlight Links & Interactivity */
body.a11y-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
  background: rgba(30, 77, 246, 0.12) !important;
  color: var(--blue) !important;
  border-radius: 0.25rem !important;
  padding: 0 0.25rem !important;
}
body.a11y-highlight-links button,
body.a11y-highlight-links input,
body.a11y-highlight-links select,
body.a11y-highlight-links textarea {
  outline: 2px solid var(--blue) !important;
  outline-offset: 2px !important;
}

/* Reduce Motion */
body.a11y-reduce-motion,
body.a11y-reduce-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Fallback Quick Contact Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: #25d366;
  color: white;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
  font-size: 0.84375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: 0 0.5rem 1.5rem rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 2.75rem;
}

.floating-whatsapp:hover {
  transform: translateY(-0.125rem) scale(1.02);
  box-shadow: 0 0.75rem 1.875rem rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-footer {
  border-top: 1px solid var(--border);
  background: #fafafc;
  padding: 3.5rem 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.78125rem;
}

.footer-top {
  max-width: 71.25rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-brand .logo {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

/* Footer Logo: black on light footer, crisp white in dark mode */
.site-footer .logo-axon {
  color: #000000;
  transition: color 0.2s ease;
}

/* In dark mode, dark-themed footers, or high contrast mode */
[data-theme="dark"] .site-footer .logo-axon,
body.dark .site-footer .logo-axon,
.site-footer.dark .logo-axon,
.site-footer[style*="#0d0d10"] .logo-axon,
body.a11y-high-contrast .site-footer .logo-axon {
  color: #ffffff !important;
}

[data-theme="dark"] .site-footer .logo-all,
body.dark .site-footer .logo-all,
[data-theme="dark"] .site-footer .logo-dot,
body.dark .site-footer .logo-dot {
  color: #60a5fa;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 17.5rem;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-bottom {
  max-width: 70rem;
  margin: 1.75rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.71875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Animations & Responsive Breakpoints (Engineered in REM)
   ========================================================================== */

.reveal {
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.125rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input[type="range"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 0.1875rem solid var(--blue);
  outline-offset: 0.1875rem;
}

/* Tablet & Medium Screens Breakpoint (960px -> 60rem) */
@media (max-width: 60rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin: 2.5rem auto 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .cms-editor {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Mobile Navigation Breakpoint (992px -> 62rem) */
@media (max-width: 62rem) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1.25rem);
    -webkit-backdrop-filter: blur(1.25rem);
    padding: 1.5rem 1.75rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
  }

  [data-theme="dark"] .nav-links,
  body.dark .nav-links {
    background: rgba(18, 18, 22, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.pill) {
    padding: 0.625rem 0;
    font-size: 1rem;
  }

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

/* Mobile Devices Breakpoint (768px -> 48rem) */
@media (max-width: 48rem) {
  section {
    padding: 4.5rem 1.25rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1,
  .hero-inner h1 {
    letter-spacing: -0.15rem;
  }

  .grid,
  .grid-2,
  .grid-4,
  .steps {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    padding: 1.5rem;
  }

  .strip {
    gap: 1.25rem;
    font-size: 0.65625rem;
    padding: 1.25rem 1rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-dock {
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.375rem;
    gap: 0.1875rem;
  }

  .floating-dock-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.78125rem;
  }

  .a11y-dialog {
    width: calc(100% - 1.5rem);
    border-radius: 1rem;
  }
  .a11y-header {
    padding: 1rem 1.125rem;
  }
  .a11y-body {
    padding: 1rem 1.125rem;
  }
  .a11y-footer {
    padding: 0.75rem 1.125rem;
  }

  .cookie-banner {
    bottom: 4.75rem;
    left: 0.875rem;
    right: 0.875rem;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.125rem;
    border-radius: 1rem;
  }

  .cookie-actions .pill {
    flex: 1 1 100%;
  }

  .screen {
    transform: none !important;
  }

  .mock {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0.75rem 1rem;
  }
}

/* Small Smartphone Breakpoint (600px -> 37.5rem) */
@media (max-width: 37.5rem) {
  section {
    padding: 3.5rem 1rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .form {
    padding: 1.5rem 1.25rem;
  }

  .pricing-card {
    padding: 1.75rem 1.25rem;
  }

  .calculator-card {
    padding: 1.5rem 1.25rem;
  }

  .cms-simulator {
    padding: 1.25rem;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .actions .pill {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    animation: none;
  }

  .card,
  .pricing-card,
  .pill {
    transition: none;
  }
}

/* ==========================================================================
   Legal Documents, Policies & Terms Layout
   ========================================================================== */

.legal-header {
  background: var(--gradient-soft);
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.legal-header-inner {
  max-width: 71.25rem;
  margin: 0 auto;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.125rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.legal-meta-item strong {
  color: var(--ink);
}

.legal-print-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ink);
  transition: all 0.2s ease;
  min-height: 2.25rem;
}

.legal-print-btn:hover {
  background: var(--bg);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .legal-print-btn,
body.dark .legal-print-btn {
  background: #22222b;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

[data-theme="dark"] .legal-print-btn:hover,
body.dark .legal-print-btn:hover {
  background: #2a2a36;
  border-color: #60a5fa;
  color: #60a5fa;
}

.legal-layout {
  max-width: 71.25rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 18.125rem 1fr;
  gap: 4rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100dvh - 7.5rem);
  overflow-y: auto;
}

.legal-sidebar-title {
  font-size: 0.71875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  color: var(--blue);
  margin: 0 0 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #f0f0f3;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-link {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 0.4375rem 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.18s ease;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc-link:hover {
  background: var(--bg);
  color: var(--blue);
  transform: translateX(0.125rem);
}

.legal-toc-link.active {
  background: var(--blue-subtle);
  color: var(--blue);
  font-weight: 600;
}

.legal-content {
  max-width: 78ch;
}

.legal-section {
  scroll-margin-top: 6.25rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  letter-spacing: -0.075rem;
  line-height: 1.18;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
}

.legal-section h3 {
  font-size: 1.125rem;
  letter-spacing: -0.03125rem;
  margin: 1.5rem 0 0.625rem;
  color: var(--ink);
}

.legal-section p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #38383c;
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
  color: #38383c;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: #f8f9fc;
  border-left: 0.25rem solid var(--blue);
  border-radius: 0 0.875rem 0.875rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.callout-box.success {
  background: #f4faf6;
  border-left-color: var(--green);
}

.callout-box.warning {
  background: #fffbf2;
  border-left-color: var(--amber);
}

.callout-title {
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-box p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.legal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.375rem;
  box-shadow: var(--shadow-sm);
}

.legal-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.legal-card p {
  font-size: 0.84375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Mobile Legal Layout */
@media (max-width: 60rem) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 2.25rem;
  }

  .legal-sidebar {
    position: static;
    max-height: none;
  }

  .legal-toc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem;
  }
}

@media (max-width: 37.5rem) {
  .legal-toc-list {
    grid-template-columns: 1fr;
  }

  .legal-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support for Legal Documents & Policies */
[data-theme="dark"] .legal-header,
body.dark .legal-header {
  background: radial-gradient(ellipse at 50% 83%, #1a2744 0, #101014 65%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .legal-header h1,
body.dark .legal-header h1 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-header .intro,
body.dark .legal-header .intro {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .legal-meta,
body.dark .legal-meta {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .legal-meta-item strong,
body.dark .legal-meta-item strong {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-sidebar,
body.dark .legal-sidebar {
  background: #18181f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .legal-sidebar-title,
body.dark .legal-sidebar-title {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .legal-toc-link,
body.dark .legal-toc-link {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .legal-toc-link:hover,
body.dark .legal-toc-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .legal-toc-link.active,
body.dark .legal-toc-link.active {
  background: rgba(96, 165, 250, 0.15) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .legal-section,
body.dark .legal-section {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .legal-section h2,
body.dark .legal-section h2,
[data-theme="dark"] .legal-section h3,
body.dark .legal-section h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-section p,
[data-theme="dark"] .legal-section ul,
[data-theme="dark"] .legal-section ol,
[data-theme="dark"] .legal-section li,
body.dark .legal-section p,
body.dark .legal-section ul,
body.dark .legal-section ol,
body.dark .legal-section li {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .legal-section strong,
body.dark .legal-section strong {
  color: #ffffff !important;
}

[data-theme="dark"] .callout-box,
body.dark .callout-box {
  background: #18181f !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-left-color: var(--blue) !important;
}

[data-theme="dark"] .callout-box.success,
body.dark .callout-box.success {
  background: #132219 !important;
  border-left-color: var(--green) !important;
}

[data-theme="dark"] .callout-box.warning,
body.dark .callout-box.warning {
  background: #231d10 !important;
  border-left-color: var(--amber) !important;
}

[data-theme="dark"] .callout-title,
body.dark .callout-title {
  color: #ffffff !important;
}

[data-theme="dark"] .callout-box p,
body.dark .callout-box p {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .legal-card,
body.dark .legal-card {
  background: #18181f !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .legal-card h4,
body.dark .legal-card h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .legal-card p,
body.dark .legal-card p {
  color: #a1a1a6 !important;
}

/* ==========================================================================
   Technology Section CMS Preview Widget
   ========================================================================== */

.cms {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.cmswindow {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cmshead {
  font-size: 0.6875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.875rem;
  color: var(--ink);
}

.cmsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 0.875rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}

.cmsrow span {
  color: var(--blue);
  font-size: 0.6875rem;
}

.cmsnote {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 1.25rem;
  text-align: center;
}

[data-theme="dark"] .cms,
body.dark .cms,
[data-theme="dark"] .cms-simulator,
body.dark .cms-simulator {
  background: #141418 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .cmswindow,
body.dark .cmswindow,
[data-theme="dark"] .cms-window,
body.dark .cms-window {
  background: #1c1c22 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0.625rem 2rem rgba(0, 0, 0, 0.45) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .cmshead,
body.dark .cmshead,
[data-theme="dark"] .cms-head,
body.dark .cms-head {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .cms-head b,
body.dark .cms-head b {
  color: #ffffff !important;
}

[data-theme="dark"] .cms-head .badge,
body.dark .cms-head .badge {
  background: rgba(46, 168, 79, 0.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

[data-theme="dark"] .cms-field label,
body.dark .cms-field label {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .cms-field input,
[data-theme="dark"] .cms-field select,
[data-theme="dark"] .cms-field textarea,
body.dark .cms-field input,
body.dark .cms-field select,
body.dark .cms-field textarea {
  background-color: #22222b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] .cms-field input:focus,
[data-theme="dark"] .cms-field select:focus,
[data-theme="dark"] .cms-field textarea:focus,
body.dark .cms-field input:focus,
body.dark .cms-field select:focus,
body.dark .cms-field textarea:focus {
  background-color: #282834 !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.21875rem rgba(96, 165, 250, 0.25) !important;
}

[data-theme="dark"] .cms-preview,
body.dark .cms-preview {
  background: #141419 !important;
  border: 1px dashed rgba(255, 255, 255, 0.22) !important;
}

[data-theme="dark"] .cms-preview-title,
body.dark .cms-preview-title {
  color: #ffffff !important;
}

[data-theme="dark"] .cms-preview-desc,
body.dark .cms-preview-desc {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .cms-preview-footer,
body.dark .cms-preview-footer {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .cms-preview [style*="color:var(--green)"],
body.dark .cms-preview [style*="color:var(--green)"] {
  color: #4ade80 !important;
}

[data-theme="dark"] .cms-simulator-note,
body.dark .cms-simulator-note {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .cmsrow,
body.dark .cmsrow {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
}

[data-theme="dark"] .cmsrow span,
body.dark .cmsrow span {
  color: #89adff;
}

[data-theme="dark"] .cmsnote,
body.dark .cmsnote {
  color: #a1a1a6;
}

/* Dark Mode: Pricing & Support Tiers */
[data-theme="dark"] .pricing-card,
body.dark .pricing-card {
  background: #18181f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .pricing-card.featured,
body.dark .pricing-card.featured {
  background: #1c202d !important;
  border: 2px solid #3b82f6 !important;
  box-shadow: 0 1rem 2.5rem rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .pricing-title,
body.dark .pricing-title {
  color: #ffffff !important;
}

[data-theme="dark"] .pricing-desc,
body.dark .pricing-desc {
  color: #d1d1d6 !important;
}

[data-theme="dark"] .pricing-price,
body.dark .pricing-price {
  color: #ffffff !important;
}

[data-theme="dark"] .pricing-period,
body.dark .pricing-period {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .pricing-features,
body.dark .pricing-features {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .pricing-features li,
body.dark .pricing-features li {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .pricing-features li strong,
body.dark .pricing-features li strong {
  color: #ffffff !important;
}

[data-theme="dark"] .pricing-features li::before,
body.dark .pricing-features li::before {
  color: #60a5fa !important;
}

/* ==========================================================================
   Dark Mode: Hero, Contact, Footer & Additional Elements
   ========================================================================== */

[data-theme="dark"] .hero,
body.dark .hero {
  background: radial-gradient(ellipse at 50% 83%, #1a2744 0, #101014 65%);
}

[data-theme="dark"] .hero-inner,
body.dark .hero-inner {
  background: radial-gradient(ellipse at 50% 100%, #1a2744 0, #101014 65%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-inner h1,
body.dark .hero h1,
body.dark .hero-inner h1 {
  color: #ffffff;
}

[data-theme="dark"] .hero .intro,
body.dark .hero .intro {
  color: #c8c8cf;
}

[data-theme="dark"] .strip,
body.dark .strip {
  background: #141418;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
}

section.contact {
  background: #ffffff;
}

.form {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode Support for Forms, Inputs, Calculator Cards, and Contact Sections */
[data-theme="dark"] section.contact,
body.dark section.contact {
  background: #101014 !important;
}

[data-theme="dark"] .form,
body.dark .form {
  background: #18181f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form h3,
body.dark .form h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .calculator-card,
body.dark .calculator-card {
  background: #18181f !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .calc-result-box,
body.dark .calc-result-box {
  background: #121217 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .calc-result-number,
body.dark .calc-result-number {
  color: #60a5fa !important;
}

[data-theme="dark"] .calc-slider-header,
body.dark .calc-slider-header {
  color: #f1f3f7 !important;
}

[data-theme="dark"] label,
body.dark label {
  color: #e4e4e7 !important;
}

[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]):not([type="file"]):not([type="image"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea,
body.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="color"]):not([type="file"]):not([type="image"]),
body.dark select,
body.dark textarea {
  background-color: #22222b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus,
body.dark input:focus,
body.dark select:focus,
body.dark textarea:focus {
  background-color: #282834 !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.21875rem rgba(96, 165, 250, 0.25) !important;
}

[data-theme="dark"] select,
body.dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

[data-theme="dark"] select option,
body.dark select option {
  background-color: #1c1c22 !important;
  color: #ffffff !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder,
body.dark input::placeholder,
body.dark textarea::placeholder {
  color: #71717a !important;
}

[data-theme="dark"] .formnote,
body.dark .formnote {
  color: #a1a1a6 !important;
}

[data-theme="dark"] .feature h3,
body.dark .feature h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .feature p,
body.dark .feature p {
  color: #a1a1a6 !important;
}

[data-theme="dark"] footer.site-footer,
body.dark footer.site-footer {
  background: #0d0d10;
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
}

[data-theme="dark"] .footer-brand p,
body.dark .footer-brand p {
  color: #a1a1a6;
}

[data-theme="dark"] .footer-col h4,
body.dark .footer-col h4 {
  color: #ffffff;
}

[data-theme="dark"] .footer-col a,
body.dark .footer-col a {
  color: #a1a1a6;
}

[data-theme="dark"] .footer-col a:hover,
body.dark .footer-col a:hover {
  color: #60a5fa;
}

[data-theme="dark"] .footer-top,
body.dark .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-bottom,
body.dark .footer-bottom {
  color: #71717a;
}

/* Print Styles */
@media print {
  nav.site-nav,
  .legal-sidebar,
  .floating-dock,
  .floating-whatsapp,
  .cookie-banner,
  #axon-cookie-banner,
  .footer-cookie-trigger,
  .legal-print-btn,
  .actions,
  footer.site-footer {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-content {
    max-width: 100%;
  }

  .legal-section {
    border-bottom: 1px solid #ccc;
    page-break-inside: avoid;
  }
}
/* Contrast fix: lighter gradient text on dark hero backgrounds */
.hero-inner .gradient,
.hero .gradient {
  background-image: linear-gradient(100deg, #7aa8ff, #a79bff 65%, #d49bff);
}
