/* Digind Design System v3.0 — 2026 (dark mode + tokens semánticos)
   Los tokens base están definidos en digind_critical.css (inlined).
   Este archivo contiene componentes y patrones específicos.
   ================================================ */

/* ---------- Aliases semánticos para compatibilidad con v2 ---------- */
:root {
  --color-base: var(--bg);
  --color-surface: var(--bg-elevated);
  --color-surface-elevated: var(--bg-elevated);
  --color-navy: var(--brand-navy);
  --color-navy-soft: var(--brand-navy-soft);
  --color-navy-muted: var(--brand-navy-soft);
  --color-text: var(--fg);
  --color-text-muted: var(--fg-muted);
  --color-text-inverse: var(--fg-inverse);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-accent-soft: var(--accent-soft);
  --color-accent-glow: var(--accent-glow);
  --color-border: var(--border);
  --color-success: var(--brand-success);
  --color-aurora-start: var(--navy-aurora);
  --color-aurora-mid: var(--accent-aurora);
  --color-aurora-end: var(--navy-aurora);
  --color-glass-bg: var(--glass-bg);
  --color-glass-border: var(--glass-border);
  --color-glow-navy: var(--navy-aurora);
  --color-glow-accent: var(--accent-glow);
  --color-primary: var(--accent);
  --color-bg: var(--bg);

  --shadow-glow-accent: 0 0 40px -8px var(--accent-glow);
  --shadow-glow-navy: 0 0 40px -8px var(--navy-aurora);
  --shadow-soft: 0 8px 32px var(--scrim-strong);
  --shadow-elevated: 0 20px 60px var(--scrim);
  --shadow-sm: 0 1px 2px 0 var(--scrim);

  --nav-glass-bg: color-mix(in srgb, var(--brand-navy) 72%, transparent);
  --nav-glass-bg-scrolled: color-mix(in srgb, var(--brand-navy) 88%, transparent);
  --nav-glass-blur: blur(28px) saturate(180%);
  --nav-glass-blur-scrolled: blur(20px) saturate(180%);

  --section-padding-mobile: var(--space-12);

  /* Compat v2 */
  --font-body: var(--font-sans);
  --text-small: var(--text-sm);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

.section-padding {
  padding-block: var(--space-24);
  position: relative;
}

@media (max-width: 768px) {
  .section-padding { padding-block: var(--section-padding-mobile); }
}

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

.hidden-mobile { display: block; }

@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}

/* Background patterns */
.bg-grid {
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-dots {
  background-image: radial-gradient(rgba(10, 37, 64, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-aurora {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, var(--color-aurora-start), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--color-aurora-mid), transparent),
    radial-gradient(ellipse 70% 60% at 50% 100%, var(--color-aurora-end), transparent);
}

.bg-gradient-navy {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
}

/* Glow effects */
.glow-accent {
  box-shadow: 0 0 60px -12px var(--color-glow-accent);
}

.glow-navy {
  box-shadow: 0 0 60px -12px var(--color-glow-navy);
}

/* Animated gradient border */
.gradient-border {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  z-index: 1;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-accent), var(--color-navy-soft), var(--color-accent));
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  z-index: -1;
}

/* Glass card */
.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 8px 32px rgba(10, 37, 64, 0.06);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ---------- Typography Scale ---------- */
.heading-1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-navy);
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-navy);
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-navy);
}

.text-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.text-small {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .heading-1 { font-size: clamp(2rem, 8vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
  .heading-2 { font-size: clamp(1.5rem, 5vw, 1.875rem); line-height: 1.15; }
  .text-body { font-size: var(--text-base); line-height: 1.7; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  min-height: 48px;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active { transform: scale(0.96); }

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 20px 0 rgba(230, 57, 70, 0.35);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow-accent);
  transform: scale(1.02);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-navy);
  background-color: rgba(10, 37, 64, 0.04);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  min-height: 56px;
}

.btn--magnetic {
  transition: transform 0.2s var(--ease-out);
}

@media (max-width: 768px) {
  .btn { min-height: 52px; width: 100%; }
  .btn--large { min-height: 56px; font-size: var(--text-base); }
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card--glow:hover {
  box-shadow: var(--shadow-hover), var(--shadow-glow-accent);
}

@media (max-width: 768px) {
  .card { padding: var(--space-6); }
}

/* ---------- Navigation — Apple Liquid Glass ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--space-3) var(--space-4);
}

.nav__glass {
  position: relative;
  overflow: visible;
  border-radius: var(--radius-full);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  background: var(--nav-glass-bg);
  backdrop-filter: var(--nav-glass-blur);
  -webkit-backdrop-filter: var(--nav-glass-blur);
  border: 1px solid var(--nav-glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.18);
  transition:
    background var(--duration-base) var(--ease-out),
    backdrop-filter var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.nav__glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 24%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.08) 76%,
    rgba(255, 255, 255, 0.35) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity var(--duration-base) var(--ease-out);
}

.nav__glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--nav-glass-highlight) 50%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.85;
  transition: opacity var(--duration-base) var(--ease-out);
}

.nav__glass-noise {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.025;
  pointer-events: none;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(/%23n)'/%3E%3C/svg%3E");
}

.nav__glass-inner {
  position: relative;
  isolation: isolate;
}

.nav--top .nav__glass {
  background: color-mix(in srgb, var(--color-navy) 62%, transparent);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav--top .nav__glass::before {
  opacity: 0.45;
}

.nav--scrolled .nav__glass {
  background: var(--nav-glass-bg-scrolled);
  backdrop-filter: var(--nav-glass-blur-scrolled);
  -webkit-backdrop-filter: var(--nav-glass-blur-scrolled);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.28);
  transform: scale(0.985);
}

.nav--scrolled .nav__glass::after {
  opacity: 0.55;
}

@supports not (backdrop-filter: blur(1px)) {
  .nav__glass {
    background: color-mix(in srgb, var(--color-navy) 92%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: var(--space-6);
}

.nav__logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.nav__links > li > a:not(.btn) {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  padding-block: var(--space-1);
}

.nav__links > li > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-spring);
}

.nav__links > li > a:not(.btn):hover,
.nav__links > li > a:not(.btn):focus-visible {
  color: #fff;
}

.nav__links > li > a:not(.btn):hover::after,
.nav__links > li > a:not(.btn):focus-visible::after {
  transform: scaleX(1);
}

.nav__links a.btn {
  color: var(--color-text-inverse);
  font-weight: 600;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
  pointer-events: auto;
  z-index: 1;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: color var(--duration-fast) var(--ease-out);
  padding: var(--space-1) 0;
}

.nav__dropdown-toggle:hover {
  color: #fff;
}

.nav__dropdown-icon {
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: color-mix(in srgb, var(--color-navy) 92%, transparent);
  backdrop-filter: var(--nav-glass-blur-scrolled);
  -webkit-backdrop-filter: var(--nav-glass-blur-scrolled);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 56px rgba(0, 0, 0, 0.32);
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    visibility var(--duration-base) var(--ease-out);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu li {
  margin: 0;
}

.nav__dropdown-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-base);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav__dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--color-accent);
  opacity: 0;
  transform: rotate(-180deg) scale(0.5);
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.nav__dropdown-menu a:hover .nav__dropdown-arrow {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav__toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: var(--space-2);
  color: #fff;
  min-height: 48px;
  min-width: 48px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-base);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.nav__toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav__toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
}

.nav__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-full);
  transition:
    transform var(--duration-base) var(--ease-spring),
    opacity var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

.nav__toggle--open .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--open .nav__toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle--open .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav {
    padding: var(--space-2) var(--space-3);
  }

  .nav__glass {
    border-radius: var(--radius-xl);
  }

  .nav__inner {
    height: 64px;
    padding-inline: var(--space-4);
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 84px var(--space-3) auto var(--space-3);
    background: color-mix(in srgb, var(--color-navy) 82%, transparent);
    backdrop-filter: blur(36px) saturate(200%);
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    border: 1px solid var(--nav-glass-border);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 24px 64px rgba(0, 0, 0, 0.42);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    gap: var(--space-1);
    z-index: 40;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: calc(100dvh - 108px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transform-origin: top center;
    transition:
      opacity var(--duration-base) var(--ease-out),
      transform var(--duration-base) var(--ease-out),
      visibility var(--duration-base) var(--ease-out);
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  @supports not (backdrop-filter: blur(1px)) {
    .nav__links {
      background: color-mix(in srgb, var(--color-navy) 96%, transparent);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }

  .nav__links > li {
    width: 100%;
    flex-shrink: 0;
  }

  .nav__links > li > a,
  .nav__links > li > .nav__dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: #fff;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-base);
    transition: background-color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    min-height: 56px;
  }

  .nav__links > li > a:not(.btn)::after {
    display: none;
  }

  .nav__links > li > a:hover,
  .nav__links > li > .nav__dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav__links > li > a:active,
  .nav__links > li > .nav__dropdown-toggle:active {
    transform: scale(0.98);
  }

  .nav__links > li > a.btn {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-inverse);
    margin-top: var(--space-2);
    text-align: center;
    justify-content: center;
  }

  .nav__links > li > a.btn:hover {
    background-color: var(--color-accent-hover);
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-toggle {
    justify-content: space-between;
    cursor: pointer;
  }

  .nav__dropdown-icon {
    transition: transform 0.35s var(--ease-spring);
    flex-shrink: 0;
  }

  .nav__dropdown.is-open .nav__dropdown-icon {
    transform: rotate(180deg);
  }

  .nav__dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-base);
    padding: 0 var(--space-5);
    min-width: min(260px, 100%);
    width: fit-content;
    max-width: 100%;
    list-style: none;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.45s var(--ease-out),
      opacity 0.35s var(--ease-out),
      padding 0.45s var(--ease-out);
  }

  .nav__dropdown:hover .nav__dropdown-menu,
  .nav__dropdown.is-open .nav__dropdown-menu {
    transform: none;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: var(--space-3) var(--space-5);
  }

  .nav__dropdown-menu li {
    width: 100%;
  }

  .nav__dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.88);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-base);
    transition: background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    min-height: 48px;
    white-space: normal;
  }

  .nav__dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .nav__dropdown-arrow {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    border-color: transparent var(--color-accent) transparent transparent;
  }

  .nav__mobile-icon-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    padding-block: var(--space-2);
    width: 100%;
  }

  .nav__mobile-icon-item > a,
  .nav__mobile-icon-item > button {
    width: auto !important;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    padding: var(--space-3) !important;
    font-size: var(--text-xl);
  }

  .nav__mobile-icon-item.nav__dropdown {
    flex-wrap: wrap;
  }

  .nav__mobile-icon-item .nav__dropdown-menu {
    position: static;
    width: 100%;
    margin-top: var(--space-1);
    flex-basis: 100%;
  }

  .nav__icon-btn--session {
    display: none !important;
  }

  .nav__toggle { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nav--scrolled .nav__glass {
    transform: none;
  }

  .nav__toggle-line {
    transition: none;
  }
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
  opacity: 0.01;
  transform: translateY(16px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-20px);
}

[data-reveal="right"] {
  transform: translateX(20px);
}

[data-reveal="scale"] {
  transform: scale(0.98);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
[data-reveal-group] > [data-reveal] {
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

.animate-in-view {
  animation: fade-in-up var(--duration-base) var(--ease-out) both;
}

.section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ---------- Skeleton Screens ---------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Lottie Container ---------- */
.lottie-container {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}

/* ---------- Form ---------- */
.form__group { margin-bottom: var(--space-5); }

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
  min-height: 48px;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-navy-soft);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.06);
  transform: translateY(-1px);
}

.form__textarea { min-height: 120px; resize: vertical; }

@media (max-width: 768px) {
  .form__input,
  .form__textarea {
    min-height: 52px;
    padding: var(--space-4);
  }
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-1);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* ---------- Pricing Table ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing__card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  position: relative;
}

.pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.pricing__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pricing__card:hover::before {
  opacity: 1;
}

.pricing__card--featured {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card);
  position: relative;
  transform: scale(1.02);
}

.pricing__card--featured::after {
  content: "Recomendado";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-soft));
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-1) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.pricing__price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-block: var(--space-6);
}

.pricing__price span {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing__price-from {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.pricing__footnote {
  max-width: 640px;
  margin: var(--space-20) auto 0;
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.7;
}

.pricing__footnote strong {
  color: var(--color-navy);
}

/* Pricing Toggle Switch */
.pricing__toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.pricing__toggle-label {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  user-select: none;
}

.pricing__toggle-label.is-active {
  color: var(--color-navy);
}

.pricing__toggle {
  position: relative;
  display: inline-block;
  width: 72px;
  height: 40px;
  cursor: pointer;
}

.pricing__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing__toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out);
}

.pricing__toggle-track.is-pro {
  background: var(--color-navy);
}

.pricing__toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 32px;
  height: 32px;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-spring);
}

.pricing__toggle input:checked + .pricing__toggle-track .pricing__toggle-thumb,
.pricing__toggle-track.is-pro .pricing__toggle-thumb {
  transform: translateX(32px);
}

@media (max-width: 768px) {
  .pricing__grid,
  .pricing__grid--3 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .pricing__card { padding: var(--space-8); }
  .pricing__card--featured { transform: scale(1); }
  .pricing__toggle-label { font-size: var(--text-lg); }
  .pricing__toggle { width: 64px; height: 36px; }
  .pricing__toggle-thumb { width: 28px; height: 28px; }
  .pricing__toggle input:checked + .pricing__toggle-track .pricing__toggle-thumb,
  .pricing__toggle-track.is-pro .pricing__toggle-thumb {
    transform: translateX(28px);
  }
}

/* ---------- Bento Grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.bento__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
  position: relative;
  overflow: hidden;
}

.bento__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.bento__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(10, 37, 64, 0.15);
}

.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--tall { grid-row: span 1; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }
  .bento__item { padding: var(--space-6); }
}

/* ---------- Tech Stack ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
  text-align: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tech-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.tech-item:hover::after {
  width: 40%;
}

.tech-item svg,
.tech-item i {
  width: 48px;
  height: 48px;
  font-size: 48px;
  color: var(--color-navy);
  transition: transform var(--duration-base) var(--ease-out);
}

.tech-item:hover svg,
.tech-item:hover i {
  transform: scale(1.1);
}

.tech-item span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--color-navy) 0%, #061828 100%);
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-24) var(--space-12);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand {
  margin-bottom: var(--space-4);
}

.footer__brand img {
  height: 50px;
  width: auto;
  display: block;
}

.footer__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
  display: inline-block;
}

.footer__links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer__bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-8);
  position: relative;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

@media (max-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }
}

.trust-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -0.04em;
}

.trust-bar__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ---------- Misc ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.tag--navy {
  background: rgba(10, 37, 64, 0.08);
  color: var(--color-navy);
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 768px) {
  .hero__split { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero__split .content-visual { order: -1; }
}

@media (min-width: 769px) {
  .hero__split--reversed > :first-child { order: 2; }
  .hero__split--reversed > :nth-child(2) { order: 1; }
}

/* Pulse animation for live indicator */
.pulse {
  animation: pulse-soft 2s infinite;
}

.pulse-glow {
  animation: pulse-glow 3s infinite;
}

/* Float utility */
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }

/* Blob morph */
.blob { animation: blob-morph 8s ease-in-out infinite; }

/* ---------- Floating Action Buttons ---------- */
.fab-container {
  position: fixed;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--space-6) + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 60;
  align-items: center;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.fab:hover { transform: translateY(-3px) scale(1.08); }
.fab:active { transform: scale(0.96); }

.fab--whatsapp {
  background-color: #25D366;
  color: #fff;
  animation: pulse-soft 3s infinite;
}

.fab--whatsapp:hover { box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5); }

.fab--scroll-top {
  background-color: var(--color-navy);
  color: var(--color-text-inverse);
  opacity: 1;
  visibility: visible;
}

.fab--scroll-top.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
}

.fab--scroll-top:hover { box-shadow: 0 8px 24px -4px rgba(10, 37, 64, 0.5); }

.fab--facebook {
  background-color: #1877F2;
  color: #fff;
}
.fab--facebook:hover { box-shadow: 0 8px 24px -4px rgba(24, 119, 242, 0.5); }

.fab--telegram {
  background-color: #0088cc;
  color: #fff;
}
.fab--telegram:hover { box-shadow: 0 8px 24px -4px rgba(0, 136, 204, 0.5); }

.fab--x {
  background-color: #000000;
  color: #fff;
}
.fab--x:hover { box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5); }

.fab--phone {
  background-color: var(--color-navy);
  color: var(--color-text-inverse);
}
.fab--phone:hover { box-shadow: 0 8px 24px -4px rgba(10, 37, 64, 0.5); }

@media (max-width: 768px) {
  .fab-container {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .fab {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee__track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

.marquee__item:hover {
  opacity: 1;
}

/* ---------- Counter Animation ---------- */
.counter {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cursor Glow (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
  }
}

/* ---------- Process Steps Enhanced ---------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.process__step {
  position: relative;
  padding-top: var(--space-6);
  padding-left: var(--space-4);
}

.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-4);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  border-radius: var(--radius-full);
}

.process__number {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
}

.process__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.process__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .process__title {
    font-size: var(--text-xl);
  }
}

/* ---------- Benefits Grid Enhanced ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(10, 37, 64, 0.15);
}

.benefits__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.benefits__grid--3 .benefit-card {
  display: flex;
  flex-direction: column;
}

.benefits__grid--3 .benefit-card p {
  flex: 1 1 auto;
}

@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .benefits__grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .benefit-card { padding: var(--space-6); }
}

/* ---------- Content Sections ---------- */
.content-section .hero__split {
  align-items: center;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.content-list li {
  position: relative;
  padding-left: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.content-list li strong {
  color: var(--color-navy);
  font-weight: 600;
}

.content-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}

.content-visual__image {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(10, 37, 64, 0.1);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.content-visual__image:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 60px rgba(10, 37, 64, 0.14);
}

@media (max-width: 768px) {
  .content-section .hero__split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .content-visual {
    min-height: auto;
    order: -1;
  }
}

/* ---------- FAQ Accordion Enhanced ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base);
}

.faq__item:hover {
  border-color: rgba(10, 37, 64, 0.15);
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  transition: background-color var(--duration-fast);
}

.faq__question:hover {
  background-color: rgba(10, 37, 64, 0.02);
}

.faq__question:focus-visible {
  outline: 2px solid var(--color-navy-soft);
  outline-offset: -2px;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--duration-base) var(--ease-spring);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  padding-inline: var(--space-6);
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height var(--duration-base) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
}

.faq__answer p {
  margin: 0;
  padding-bottom: var(--space-2);
}

/* ---------- CTA Section Enhanced ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 50%, var(--color-navy) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: var(--space-20);
  text-align: center;
  margin-block: var(--space-20);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.cta-section .heading-2 {
  color: #fff;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-section .text-body {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-section { padding: var(--space-12) var(--space-6); }
}

/* ---------- Particle Canvas ---------- */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Compare Grid ---------- */
.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.compare__card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.compare__card--highlight {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(10,37,64,0.02) 100%);
}

.compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.compare__list li {
  position: relative;
  padding-left: var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.compare__list--negative li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.compare__list--positive li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--color-success);
  border-radius: 50%;
}

.compare__list--positive li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .compare__grid {
    grid-template-columns: 1fr;
  }
  .compare__card {
    padding: var(--space-8);
  }
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-navy-soft));
  z-index: 100;
  transition: width 0.1s linear;
}

/* ---------- Client Logos ---------- */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 768px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}

.client-logo__image {
  width: 100%;
  height: 80px;
  background: var(--color-base);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.client-logo__name {
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
  line-height: 1.3;
}

.client-logo__location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Location / SEO Local Section ---------- */
.location-section {
  background: linear-gradient(135deg, rgba(10,37,64,0.02) 0%, rgba(230,57,70,0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
}

.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 300px;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.location-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.location-map__pin {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .float, .float-slow, .blob, .pulse, .pulse-glow {
    animation: none !important;
  }
}

/* Domain search results */
.domain-search__form {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-8);
}
.domain-search__input {
  flex: 1 1 320px;
  max-width: 600px;
  font-size: 1.5rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.domain-search__input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.08);
}
.domain-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.domain-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-base);
}
.domain-result__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-navy);
}
.domain-result__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.domain-result--available .domain-result__badge {
  background: #DCFCE7;
  color: #166534;
}
.domain-result--taken .domain-result__badge {
  background: #FEE2E2;
  color: #991B1B;
}
.domain-result--error .domain-result__badge {
  background: #F3F4F6;
  color: #6B7280;
}
button.domain-result {
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
button.domain-result.domain-result--available:hover,
button.domain-result.domain-result--available:focus-visible {
  border-color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.1);
  transform: translateY(-1px);
  outline: none;
}

/* Domain purchase modal */
.domain-purchase-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 1000;
}
.domain-purchase-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.domain-purchase-modal__panel {
  background: #fff;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.domain-purchase-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.domain-purchase-modal__title {
  margin: var(--space-2) 0 0;
}
.domain-purchase-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  flex-shrink: 0;
  padding: 0.25rem;
}
.domain-purchase-modal__summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}
@media (min-width: 540px) {
  .domain-purchase-modal__summary {
    grid-template-columns: 1.4fr 0.8fr 1fr;
    align-items: end;
  }
}
.domain-purchase-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.domain-purchase-modal__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.domain-purchase-modal__value {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: var(--text-lg);
  word-break: break-all;
}
.domain-purchase-modal__select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-base);
  font-size: var(--text-base);
  background: #fff;
}
.domain-purchase-modal__total {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}
.domain-purchase-modal__note {
  font-size: var(--text-small);
  margin: 0 0 var(--space-4);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-base);
}
.domain-purchase-modal__note--free {
  background: #DCFCE7;
  color: #166534;
}
.domain-purchase-modal__note--paid {
  background: #FEF3C7;
  color: #92400E;
}
.domain-purchase-modal__section {
  margin-bottom: var(--space-5);
}
.domain-purchase-modal__section-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: var(--color-navy);
}
.domain-purchase-modal__hosting-types,
.domain-purchase-modal__plans {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 540px) {
  .domain-purchase-modal__hosting-types {
    grid-template-columns: 1fr 1fr;
  }
  .domain-purchase-modal__plans {
    grid-template-columns: repeat(3, 1fr);
  }
}
.domain-purchase-modal__hosting-card,
.domain-purchase-modal__plan-card {
  display: block;
  cursor: pointer;
}
.domain-purchase-modal__hosting-card input,
.domain-purchase-modal__plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.domain-purchase-modal__hosting-card-body,
.domain-purchase-modal__plan-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-base);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}
.domain-purchase-modal__hosting-card input:checked + .domain-purchase-modal__hosting-card-body,
.domain-purchase-modal__plan-card input:checked + .domain-purchase-modal__plan-card-body {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}
.domain-purchase-modal__hosting-card-body strong,
.domain-purchase-modal__plan-card-body strong {
  color: var(--color-navy);
  font-size: var(--text-base);
}
.domain-purchase-modal__cpanel-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: var(--space-3);
  padding: 0.875rem 1rem;
  background: #FEE2E2;
  border-radius: var(--radius-base);
  color: #991B1B;
  font-size: var(--text-small);
}
.domain-purchase-modal__cpanel-notice p {
  margin: 0;
}
.domain-purchase-modal__breakdown-wrap {
  margin-bottom: var(--space-5);
}
.domain-purchase-modal__breakdown-toggle {
  background: none;
  border: none;
  color: var(--color-navy);
  font-weight: 600;
  font-size: var(--text-small);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.domain-purchase-modal__breakdown-panel {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-base);
  border: 1px solid var(--color-border);
}
.domain-purchase-modal__breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: var(--text-small);
  border-bottom: 1px solid var(--color-border);
}
.domain-purchase-modal__breakdown-row:last-child {
  border-bottom: none;
}
.domain-purchase-modal__breakdown-empty {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.domain-purchase-modal__form {
  margin-top: var(--space-2);
}
.domain-purchase-modal__submit {
  width: 100%;
}
.domain-purchase-modal__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Domain pricing table responsiveness */
.domain-pricing__table-wrap {
  overflow-x: auto;
  margin-top: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.domain-pricing__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.domain-pricing__table th,
.domain-pricing__table td {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.domain-pricing__table th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-navy);
  position: sticky;
  top: 0;
}
.domain-pricing__table tr:last-child td {
  border-bottom: none;
}
.domain-pricing__table tbody tr:hover {
  background: rgba(10, 37, 64, 0.02);
}

/* Mobile: hide Renewal and Transfer columns */
@media (max-width: 767px) {
  .domain-pricing__table th:nth-child(3),
  .domain-pricing__table th:nth-child(4),
  .domain-pricing__table td:nth-child(3),
  .domain-pricing__table td:nth-child(4) {
    display: none;
  }
}

/* ---------- Blog Module ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .blog-grid,
  .blog-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid,
  .blog-grid--3 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
}

.blog-card__media:has(.blog-card__image[loading="lazy"]) {
  animation: skeleton-loading 1.5s infinite;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10,37,64,0.04) 0%, rgba(230,57,70,0.03) 100%);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.blog-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

.blog-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
}

.blog-card--compact .blog-card__body {
  padding: var(--space-5);
}

/* Blog Show Layout */
.blog-show {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.blog-show__main {
  min-width: 0;
}

.blog-show__sidebar {
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  .blog-show {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .blog-show__sidebar {
    position: static;
    order: 2;
  }
  .blog-show__main {
    order: 1;
  }
}

.blog-show__hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.blog-show__video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.blog-show__video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.blog-show__excerpt {
  background: linear-gradient(135deg, rgba(10,37,64,0.03) 0%, rgba(230,57,70,0.02) 100%);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-6);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  color: var(--color-navy-soft);
  line-height: 1.7;
}

.blog-show__content {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.8;
}

.blog-show__content h2,
.blog-show__content h3 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.blog-show__content h2 {
  font-size: var(--text-2xl);
}

.blog-show__content h3 {
  font-size: var(--text-xl);
}

.blog-show__content p {
  margin-bottom: var(--space-5);
}

.blog-show__content ul,
.blog-show__content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.blog-show__content li {
  margin-bottom: var(--space-2);
}

.blog-show__content strong {
  color: var(--color-navy);
  font-weight: 600;
}

.blog-show__content img {
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  box-shadow: var(--shadow-card);
}

.blog-show__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-show__content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-6) 0;
  color: var(--color-navy-soft);
  font-style: italic;
}

/* Blog Sidebar */
.blog-sidebar__widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.blog-sidebar__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.blog-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.blog-sidebar__list li {
  border-bottom: 1px solid var(--color-border);
}

.blog-sidebar__list li:last-child {
  border-bottom: none;
}

.blog-sidebar__link {
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast);
}

.blog-sidebar__link:hover {
  color: var(--color-accent);
}

.blog-sidebar__link-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: var(--space-1);
}

.blog-sidebar__link:hover .blog-sidebar__link-title {
  color: var(--color-accent);
}

.blog-sidebar__link-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Blog index search */
.blog-search {
  max-width: 680px;
  margin: 0 auto var(--space-12);
  width: 100%;
}

.blog-search__box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px var(--space-6);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.blog-search__box:focus-within {
  border-color: var(--color-navy-soft);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.08);
}

.blog-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: var(--space-3) 0;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--color-text);
  background: transparent;
  min-height: 44px;
}

.blog-search__input::placeholder {
  color: var(--color-text-muted);
}

.blog-search__btn {
  border-radius: var(--radius-full);
  min-height: 44px;
  padding: 0 var(--space-6);
  font-size: var(--text-sm);
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .blog-search__btn.btn {
    width: auto;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .blog-search__box {
    padding-left: var(--space-4);
  }

  .blog-search__btn {
    padding: 0 var(--space-4);
  }
}

/* Pagination override for blog */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-base);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.pagination .current {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.pagination .gap {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
}

/* Mobile blog adjustments */
@media (max-width: 640px) {
  .blog-card__body {
    padding: var(--space-4);
  }
  .blog-card__title {
    font-size: var(--text-base);
  }
  .blog-card__excerpt {
    font-size: var(--text-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-card__meta {
    font-size: var(--text-xs);
  }
  .blog-show__excerpt {
    font-size: var(--text-base);
    padding: var(--space-4);
  }
  .blog-show__content {
    font-size: var(--text-base);
  }
}
trix-editor {
  border: 1px solid #bbb;
  border-radius: 3px;
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 5em;
  outline: none; }

trix-toolbar * {
  box-sizing: border-box; }

trix-toolbar .trix-button-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto; }

trix-toolbar .trix-button-group {
  display: flex;
  margin-bottom: 10px;
  border: 1px solid #bbb;
  border-top-color: #ccc;
  border-bottom-color: #888;
  border-radius: 3px; }
  trix-toolbar .trix-button-group:not(:first-child) {
    margin-left: 1.5vw; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button-group:not(:first-child) {
        margin-left: 0; } }

trix-toolbar .trix-button-group-spacer {
  flex-grow: 1; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button-group-spacer {
      display: none; } }

trix-toolbar .trix-button {
  position: relative;
  float: left;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0.5em;
  margin: 0;
  outline: none;
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  background: transparent; }
  trix-toolbar .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-toolbar .trix-button.trix-active {
    background: #cbeefa;
    color: black; }
  trix-toolbar .trix-button:not(:disabled) {
    cursor: pointer; }
  trix-toolbar .trix-button:disabled {
    color: rgba(0, 0, 0, 0.125); }
  @media (max-width: 768px) {
    trix-toolbar .trix-button {
      letter-spacing: -0.01em;
      padding: 0 0.3em; } }

trix-toolbar .trix-button--icon {
  font-size: inherit;
  width: 2.6em;
  height: 1.6em;
  max-width: calc(0.8em + 4vw);
  text-indent: -9999px; }
  @media (max-width: 768px) {
    trix-toolbar .trix-button--icon {
      height: 2em;
      max-width: calc(0.8em + 3.5vw); } }
  trix-toolbar .trix-button--icon::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.6;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; }
    @media (max-width: 768px) {
      trix-toolbar .trix-button--icon::before {
        right: 6%;
        left: 6%; } }
  trix-toolbar .trix-button--icon.trix-active::before {
    opacity: 1; }
  trix-toolbar .trix-button--icon:disabled::before {
    opacity: 0.125; }

trix-toolbar .trix-button--icon-attach::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10.5%2018V7.5c0-2.25%203-2.25%203%200V18c0%204.125-6%204.125-6%200V7.5c0-6.375%209-6.375%209%200V18%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-miterlimit%3D%2210%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  top: 8%;
  bottom: 4%; }

trix-toolbar .trix-button--icon-bold::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.522%2019.242a.5.5%200%200%201-.5-.5V5.35a.5.5%200%200%201%20.5-.5h5.783c1.347%200%202.46.345%203.24.982.783.64%201.216%201.562%201.216%202.683%200%201.13-.587%202.129-1.476%202.71a.35.35%200%200%200%20.049.613c1.259.56%202.101%201.742%202.101%203.22%200%201.282-.483%202.334-1.363%203.063-.876.726-2.132%201.12-3.66%201.12h-5.89ZM9.27%207.347v3.362h1.97c.766%200%201.347-.17%201.733-.464.38-.291.587-.716.587-1.27%200-.53-.183-.928-.513-1.198-.334-.273-.838-.43-1.505-.43H9.27Zm0%205.606v3.791h2.389c.832%200%201.448-.177%201.853-.497.399-.315.614-.786.614-1.423%200-.62-.22-1.077-.63-1.385-.418-.313-1.053-.486-1.905-.486H9.27Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-italic::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M9%205h6.5v2h-2.23l-2.31%2010H13v2H6v-2h2.461l2.306-10H9V5Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-link::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18.948%205.258a4.337%204.337%200%200%200-6.108%200L11.217%206.87a.993.993%200%200%200%200%201.41c.392.39%201.027.39%201.418%200l1.623-1.613a2.323%202.323%200%200%201%203.271%200%202.29%202.29%200%200%201%200%203.251l-2.393%202.38a3.021%203.021%200%200%201-4.255%200l-.05-.049a1.007%201.007%200%200%200-1.418%200%20.993.993%200%200%200%200%201.41l.05.049a5.036%205.036%200%200%200%207.091%200l2.394-2.38a4.275%204.275%200%200%200%200-6.072Zm-13.683%2013.6a4.337%204.337%200%200%200%206.108%200l1.262-1.255a.993.993%200%200%200%200-1.41%201.007%201.007%200%200%200-1.418%200L9.954%2017.45a2.323%202.323%200%200%201-3.27%200%202.29%202.29%200%200%201%200-3.251l2.344-2.331a2.579%202.579%200%200%201%203.631%200c.392.39%201.027.39%201.419%200a.993.993%200%200%200%200-1.41%204.593%204.593%200%200%200-6.468%200l-2.345%202.33a4.275%204.275%200%200%200%200%206.072Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-strike::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%2014.986c.088%202.647%202.246%204.258%205.635%204.258%203.496%200%205.713-1.728%205.713-4.463%200-.275-.02-.536-.062-.781h-3.461c.398.293.573.654.573%201.123%200%201.035-1.074%201.787-2.646%201.787-1.563%200-2.773-.762-2.91-1.924H6ZM6.432%2010h3.763c-.632-.314-.914-.715-.914-1.273%200-1.045.977-1.739%202.432-1.739%201.475%200%202.52.723%202.617%201.914h2.764c-.05-2.548-2.11-4.238-5.39-4.238-3.145%200-5.392%201.719-5.392%204.316%200%20.363.04.703.12%201.02ZM4%2011a1%201%200%201%200%200%202h15a1%201%200%201%200%200-2H4Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-quote::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.581%208.471c.44-.5%201.056-.834%201.758-.995C8.074%207.17%209.201%207.822%2010%208.752c1.354%201.578%201.33%203.555.394%205.277-.941%201.731-2.788%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.121-.49.16-.764.294-.286.567-.566.791-.835.222-.266.413-.54.524-.815.113-.28.156-.597.026-.908-.128-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.674-2.7c0-.905.283-1.59.72-2.088Zm9.419%200c.44-.5%201.055-.834%201.758-.995%201.734-.306%202.862.346%203.66%201.276%201.355%201.578%201.33%203.555.395%205.277-.941%201.731-2.789%203.163-4.988%203.56a.622.622%200%200%201-.653-.317c-.113-.205-.122-.49.16-.764.294-.286.567-.566.791-.835.222-.266.412-.54.523-.815.114-.28.157-.597.026-.908-.127-.303-.39-.524-.72-.69a3.02%203.02%200%200%201-1.672-2.701c0-.905.283-1.59.72-2.088Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-heading-1::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.5%207.5v-3h-12v3H14v13h3v-13h4.5ZM9%2013.5h3.5v-3h-10v3H6v7h3v-7Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-code::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.293%2011.293a1%201%200%200%200%200%201.414l4%204a1%201%200%201%200%201.414-1.414L5.414%2012l3.293-3.293a1%201%200%200%200-1.414-1.414l-4%204Zm13.414%205.414%204-4a1%201%200%200%200%200-1.414l-4-4a1%201%200%201%200-1.414%201.414L18.586%2012l-3.293%203.293a1%201%200%200%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-bullet-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%207.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203ZM8%206a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-2.5-5a1.5%201.5%200%201%201-3%200%201.5%201.5%200%200%201%203%200ZM5%2019.5a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-number-list::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%204h2v4H4V5H3V4Zm5%202a1%201%200%200%201%201-1h11a1%201%200%201%201%200%202H9a1%201%200%200%201-1-1Zm1%205a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm0%206a1%201%200%201%200%200%202h11a1%201%200%201%200%200-2H9Zm-3.5-7H6v1l-1.5%202H6v1H3v-1l1.667-2H3v-1h2.5ZM3%2017v-1h3v4H3v-1h2v-.5H4v-1h1V17H3Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-undo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%2014a1%201%200%200%200%201%201h6a1%201%200%201%200%200-2H6.257c2.247-2.764%205.151-3.668%207.579-3.264%202.589.432%204.739%202.356%205.174%205.405a1%201%200%200%200%201.98-.283c-.564-3.95-3.415-6.526-6.825-7.095C11.084%207.25%207.63%208.377%205%2011.39V8a1%201%200%200%200-2%200v6Zm2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-redo::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2014a1%201%200%200%201-1%201h-6a1%201%200%201%201%200-2h3.743c-2.247-2.764-5.151-3.668-7.579-3.264-2.589.432-4.739%202.356-5.174%205.405a1%201%200%200%201-1.98-.283c.564-3.95%203.415-6.526%206.826-7.095%203.08-.513%206.534.614%209.164%203.626V8a1%201%200%201%201%202%200v6Zm-2-1Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-decrease-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-3.707-5.707a1%201%200%200%200%200%201.414l2%202a1%201%200%201%200%201.414-1.414L4.414%2012l1.293-1.293a1%201%200%200%200-1.414-1.414l-2%202Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-button--icon-increase-nesting-level::before {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%206a1%201%200%200%201%201-1h12a1%201%200%201%201%200%202H6a1%201%200%200%201-1-1Zm4%205a1%201%200%201%200%200%202h9a1%201%200%201%200%200-2H9Zm-3%206a1%201%200%201%200%200%202h12a1%201%200%201%200%200-2H6Zm-2.293-2.293%202-2a1%201%200%200%200%200-1.414l-2-2a1%201%200%201%200-1.414%201.414L3.586%2012l-1.293%201.293a1%201%200%201%200%201.414%201.414Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }

trix-toolbar .trix-dialogs {
  position: relative; }

trix-toolbar .trix-dialog {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  font-size: 0.75em;
  padding: 15px 10px;
  background: #fff;
  box-shadow: 0 0.3em 1em #ccc;
  border-top: 2px solid #888;
  border-radius: 5px;
  z-index: 5; }

trix-toolbar .trix-input--dialog {
  font-size: inherit;
  font-weight: normal;
  padding: 0.5em 0.8em;
  margin: 0 10px 0 0;
  border-radius: 3px;
  border: 1px solid #bbb;
  background-color: #fff;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }
  trix-toolbar .trix-input--dialog.validate:invalid {
    box-shadow: #F00 0px 0px 1.5px 1px; }

trix-toolbar .trix-button--dialog {
  font-size: inherit;
  padding: 0.5em;
  border-bottom: none; }

trix-toolbar .trix-dialog--link {
  max-width: 600px; }

trix-toolbar .trix-dialog__link-fields {
  display: flex;
  align-items: baseline; }
  trix-toolbar .trix-dialog__link-fields .trix-input {
    flex: 1; }
  trix-toolbar .trix-dialog__link-fields .trix-button-group {
    flex: 0 0 content;
    margin: 0; }

trix-editor [data-trix-mutable]:not(.attachment__caption-editor) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

trix-editor [data-trix-mutable]::-moz-selection,
trix-editor [data-trix-cursor-target]::-moz-selection, trix-editor [data-trix-mutable] ::-moz-selection {
  background: none; }

trix-editor [data-trix-mutable]::selection,
trix-editor [data-trix-cursor-target]::selection, trix-editor [data-trix-mutable] ::selection {
  background: none; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::-moz-selection {
  background: highlight; }

trix-editor .attachment__caption-editor:focus[data-trix-mutable]::selection {
  background: highlight; }

trix-editor [data-trix-mutable].attachment.attachment--file {
  box-shadow: 0 0 0 2px highlight;
  border-color: transparent; }

trix-editor [data-trix-mutable].attachment img {
  box-shadow: 0 0 0 2px highlight; }

trix-editor .attachment {
  position: relative; }
  trix-editor .attachment:hover {
    cursor: default; }

trix-editor .attachment--preview .attachment__caption:hover {
  cursor: text; }

trix-editor .attachment__progress {
  position: absolute;
  z-index: 1;
  height: 20px;
  top: calc(50% - 10px);
  left: 5%;
  width: 90%;
  opacity: 0.9;
  transition: opacity 200ms ease-in; }
  trix-editor .attachment__progress[value="100"] {
    opacity: 0; }

trix-editor .attachment__caption-editor {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none; }

trix-editor .attachment__toolbar {
  position: absolute;
  z-index: 1;
  top: -0.9em;
  left: 0;
  width: 100%;
  text-align: center; }

trix-editor .trix-button-group {
  display: inline-flex; }

trix-editor .trix-button {
  position: relative;
  float: left;
  color: #666;
  white-space: nowrap;
  font-size: 80%;
  padding: 0 0.8em;
  margin: 0;
  outline: none;
  border: none;
  border-radius: 0;
  background: transparent; }
  trix-editor .trix-button:not(:first-child) {
    border-left: 1px solid #ccc; }
  trix-editor .trix-button.trix-active {
    background: #cbeefa; }
  trix-editor .trix-button:not(:disabled) {
    cursor: pointer; }

trix-editor .trix-button--remove {
  text-indent: -9999px;
  display: inline-block;
  padding: 0;
  outline: none;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid highlight;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25); }
  trix-editor .trix-button--remove::before {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.7;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg%20height%3D%2224%22%20width%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%22%2F%3E%3Cpath%20d%3D%22M0%200h24v24H0z%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%; }
  trix-editor .trix-button--remove:hover {
    border-color: #333; }
    trix-editor .trix-button--remove:hover::before {
      opacity: 1; }

trix-editor .attachment__metadata-container {
  position: relative; }

trix-editor .attachment__metadata {
  position: absolute;
  left: 50%;
  top: 2em;
  transform: translate(-50%, 0);
  max-width: 90%;
  padding: 0.1em 0.6em;
  font-size: 0.8em;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 3px; }
  trix-editor .attachment__metadata .attachment__name {
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  trix-editor .attachment__metadata .attachment__size {
    margin-left: 0.2em;
    white-space: nowrap; }

.trix-content {
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word; }
  .trix-content * {
    box-sizing: border-box;
    margin: 0;
    padding: 0; }
  .trix-content h1 {
    font-size: 1.2em;
    line-height: 1.2; }
  .trix-content blockquote {
    border: 0 solid #ccc;
    border-left-width: 0.3em;
    margin-left: 0.3em;
    padding-left: 0.6em; }
  .trix-content [dir=rtl] blockquote,
  .trix-content blockquote[dir=rtl] {
    border-width: 0;
    border-right-width: 0.3em;
    margin-right: 0.3em;
    padding-right: 0.6em; }
  .trix-content li {
    margin-left: 1em; }
  .trix-content [dir=rtl] li {
    margin-right: 1em; }
  .trix-content pre {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: monospace;
    font-size: 0.9em;
    padding: 0.5em;
    white-space: pre;
    background-color: #eee;
    overflow-x: auto; }
  .trix-content img {
    max-width: 100%;
    height: auto; }
  .trix-content .attachment {
    display: inline-block;
    position: relative;
    max-width: 100%; }
    .trix-content .attachment a {
      color: inherit;
      text-decoration: none; }
      .trix-content .attachment a:hover, .trix-content .attachment a:visited:hover {
        color: inherit; }
  .trix-content .attachment__caption {
    text-align: center; }
    .trix-content .attachment__caption .attachment__name + .attachment__size::before {
      content: ' \2022 '; }
  .trix-content .attachment--preview {
    width: 100%;
    text-align: center; }
    .trix-content .attachment--preview .attachment__caption {
      color: #666;
      font-size: 0.9em;
      line-height: 1.2; }
  .trix-content .attachment--file {
    color: #333;
    line-height: 1;
    margin: 0 2px 2px 2px;
    padding: 0.4em 1em;
    border: 1px solid #bbb;
    border-radius: 5px; }
  .trix-content .attachment-gallery {
    display: flex;
    flex-wrap: wrap;
    position: relative; }
    .trix-content .attachment-gallery .attachment {
      flex: 1 0 33%;
      padding: 0 0.5em;
      max-width: 33%; }
    .trix-content .attachment-gallery.attachment-gallery--2 .attachment, .trix-content .attachment-gallery.attachment-gallery--4 .attachment {
      flex-basis: 50%;
      max-width: 50%; }
/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *

*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * Digind Design System v3.0 — 2026 (dark mode + semantic tokens)
 *
 * El CSS crítico (digind_critical) se inlinea en <head> para LCP/FCP óptimos.
 * Esta hoja incluye SOLO los estilos globales compartidos por todas las páginas.
 * Los estilos específicos por contexto se cargan vía page_specific_stylesheets.
 *


 */
