:root {
  --bg-void: #0a1628;
  --bg-deep: #0f1c2e;
  --bg-surface: #162033;
  --bg-elevated: #1a2634;
  --bg-panel: #101a2b;
  --bg-border: rgba(232, 238, 245, 0.1);
  --bg-border-strong: rgba(0, 212, 255, 0.24);
  --bg-appbar: rgba(10, 22, 40, 0.88);

  --accent-primary: #00d4ff;
  --accent-primary-soft: rgba(0, 212, 255, 0.12);
  --accent-secondary: #c5a26f;
  --accent-secondary-soft: rgba(197, 162, 111, 0.14);
  --accent-tertiary: #7aa6ff;
  --accent-success: #4ad295;
  --accent-danger: #ff7b7b;

  --text-primary: #f5f8fc;
  --text-secondary: #aebbcc;
  --text-muted: #6f8095;

  --gradient-hero: radial-gradient(circle at top right, rgba(0, 212, 255, 0.16), transparent 30%), linear-gradient(135deg, #0a1628 0%, #0f1c2e 46%, #08111d 100%);
  --gradient-panel: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(0, 212, 255, 0.06));
  --gradient-card-border: linear-gradient(145deg, rgba(0, 212, 255, 0.26), rgba(197, 162, 111, 0.16));
  --gradient-gold: linear-gradient(90deg, #f4d3a2 0%, #c5a26f 100%);
  --shadow-premium: 0 24px 70px rgba(3, 10, 20, 0.42);

  /* Carousel heights — centralised for easy tuning */
  --carousel-pillar-h: 520px;
  --carousel-testimonial-h: 280px;
  --carousel-value-h: 340px;
  --carousel-default-h: 340px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.fw-bold {
  font-weight: 700 !important;
}

.ac-shell {
  background: var(--bg-void);
}

.ac-main-content {
  min-height: 100vh;
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  background: var(--bg-void);
}

.ac-section {
  position: relative;
  padding: 5.5rem 0;
  background: var(--bg-void);
}

.ac-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 30%);
  opacity: 0.35;
}

.ac-section > .mud-container,
.ac-section > .mud-container-max,
.ac-section > .mud-container-maxwidth-large {
  position: relative;
  z-index: 1;
}

.ac-section-deep {
  background: var(--bg-deep);
}

.ac-section-surface {
  background: var(--bg-surface);
}

.ac-cta-section {
  background: linear-gradient(135deg, #0c1829 0%, #121f30 50%, #08111d 100%);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
}

.ac-trust-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1201;
  height: 24px;
  border-bottom: 1px solid rgba(232, 238, 245, 0.06);
  background: rgba(7, 17, 29, 0.92);
  backdrop-filter: blur(18px);
}

.ac-trust-bar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ac-trust-bar-container span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ac-trust-bar-container span::before {
  content: '•';
  color: var(--accent-secondary);
}

.ac-trust-bar-container span:first-child::before {
  content: '';
  display: none;
}

.ac-appbar {
  top: 24px !important;
  height: 72px;
  border-bottom: 1px solid rgba(232, 238, 245, 0.08);
  background: var(--bg-appbar) !important;
  backdrop-filter: blur(18px);
}

.ac-appbar-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1rem;
  width: 100%;
}

.ac-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0 0.25rem;
  padding: 0.25rem 0.5rem 0.5rem;
  min-width: min(720px, 90vw);
  overflow-x: auto;
}

.ac-mega-col {
  display: flex;
  flex-direction: column;
}

.ac-mega-col-heading {
  display: block;
  padding: 0.4rem 0.75rem 0.3rem;
  color: var(--text-muted) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.12em;
}

.ac-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.ac-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.16), rgba(197, 162, 111, 0.18));
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--text-primary);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ac-logo-text {
  color: var(--text-primary);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
}

.ac-logo-subtitle {
  color: var(--text-secondary);
}

.ac-desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ac-nav-link:hover,
.ac-nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.ac-nav-link.active::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.ac-appbar-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 1rem;
}

.ac-nav-ghost-btn {
  color: var(--text-secondary) !important;
}

.ac-mobile-menu-trigger {
  border: 1px solid var(--bg-border);
}

.ac-mobile-drawer {
  background: linear-gradient(180deg, #0d1727, #111d2f) !important;
}

.ac-mobile-drawer-shell {
  padding: 1.5rem;
}

.ac-menu-item-shell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ac-menu-group-title {
  opacity: 1 !important;
}

.ac-breadcrumbs-shell {
  padding: 1.25rem 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.ac-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-breadcrumb-current {
  color: var(--text-primary);
}

.ac-breadcrumb-separator {
  color: var(--text-muted);
}

.ac-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.ac-hero::before,
.ac-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.ac-hero::before {
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(0, 212, 255, 0.14);
}

.ac-hero::after {
  bottom: -120px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: rgba(197, 162, 111, 0.08);
}

.ac-hero-grid {
  background-image: radial-gradient(circle at top right, rgba(0, 212, 255, 0.18), transparent 26%), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px), var(--gradient-hero);
  background-size: auto, 72px 72px, 72px 72px, cover;
}

.ac-hero-chip,
.ac-product-chip,
.ac-price-tier-chip {
  background: rgba(0, 212, 255, 0.12) !important;
  color: var(--accent-primary) !important;
  border: 1px solid rgba(0, 212, 255, 0.22) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.ac-product-chip-gold {
  background: rgba(197, 162, 111, 0.12) !important;
  color: var(--accent-secondary) !important;
  border-color: rgba(197, 162, 111, 0.22) !important;
}

.ac-hero-title {
  color: var(--text-primary);
  max-width: 12ch;
}

.ac-hero-subtitle {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 1.1rem;
}

.ac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.ac-cta-btn {
  min-height: 50px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px !important;
  font-weight: 700;
  box-shadow: none !important;
}

.ac-hero-primary-btn {
  box-shadow: 0 20px 48px rgba(0, 212, 255, 0.22) !important;
}

.ac-hero-visual-shell {
  position: relative;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.ac-hero-visual-image,
.ac-carousel-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  object-fit: cover;
}

.ac-hero-visual-panel {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  max-height: calc(100% - 4rem);
  overflow-y: auto;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(7, 17, 29, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.ac-hero-visual-points,
.ac-dialog-signals,
.ac-footer-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ac-hero-point,
.ac-footer-signal-row span,
.ac-dialog-signals span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.ac-hero-point .mud-icon-root,
.ac-product-benefit .mud-icon-root,
.ac-comparison-win .mud-icon-root,
.ac-price-feature .mud-icon-root,
.ac-budget-benefit-item .mud-icon-root,
.ac-capacidades-list .mud-icon-root,
.ac-differentiator-icon {
  color: var(--accent-primary);
}

.ac-section-heading {
  position: relative;
}

.ac-heading-block {
  max-width: 680px;
}

.ac-stats-bar {
  padding-top: 1.2rem;
}

.ac-stat-item {
  padding: 1.2rem 1.25rem;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
}

.ac-stat-value {
  color: var(--text-primary);
}

.ac-card-inner {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.ac-product-card,
.ac-price-tier {
  position: relative;
  height: 100%;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(0, 212, 255, 0.16));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ac-product-card:hover,
.ac-price-tier:hover,
.ac-differentiator-card:hover,
.ac-trust-card:hover,
.ac-value-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 212, 255, 0.14);
}

.ac-product-card-featured,
.ac-price-tier.featured {
  background: linear-gradient(145deg, rgba(197,162,111,0.22), rgba(0, 212, 255, 0.18));
}

.ac-product-visual {
  position: relative;
  min-height: 180px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.16), transparent 30%), linear-gradient(145deg, #132137, #1b2940);
  background-size: cover;
  background-position: center;
}

.ac-product-visual-badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ac-product-icon {
  font-size: 2.4rem !important;
  color: white;
}

.ac-product-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ac-product-price {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ac-gold-label {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-carousel-shell {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: var(--shadow-premium);
}

/* MudCarousel renders as a single element: our shell/variant classes sit on the same
   .mud-carousel root div, so we must target them directly (no descendant selector). */
.ac-carousel-shell {
  height: var(--carousel-default-h);
}

.ac-pillar-carousel {
  height: var(--carousel-pillar-h);
}

.ac-testimonial-carousel {
  height: var(--carousel-testimonial-h);
}

.ac-value-carousel {
  height: var(--carousel-value-h);
}

.ac-pillar-slide,
.ac-testimonial-slide,
.ac-value-slide {
  min-height: 420px;
  height: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.ac-testimonial-slide {
  min-height: 260px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 3rem;
}

.ac-differentiator-card,
.ac-trust-card,
.ac-value-slide,
.ac-budget-callout,
.ac-sticky-callout,
.ac-editorial-premium,
.ac-metric-panel {
  height: 100%;
}

.ac-differentiator-icon {
  font-size: 2rem !important;
  margin-bottom: 1rem;
}

.ac-editorial-premium {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.08), rgba(255,255,255,0.02)) !important;
}

.ac-metric-panel {
  background: linear-gradient(180deg, rgba(197,162,111,0.08), rgba(255,255,255,0.02)) !important;
}

.ac-metric-stack {
  display: grid;
  gap: 1.5rem;
}

.ac-value-slide {
  min-height: 320px;
}

.ac-service-group {
  position: relative;
}

.ac-service-group-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.ac-price-values,
.ac-price-tier-features,
.ac-budget-benefits {
  display: grid;
  gap: 1rem;
}

.ac-price-feature,
.ac-budget-benefit-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.ac-comparison-surface {
  background: transparent;
  border-radius: 24px;
  overflow: hidden;
}

.ac-comparison-win {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.ac-budget-page {
  padding-top: 4rem;
}

.ac-budget-side-panel {
  position: sticky;
  top: 120px;
}

.ac-wizard-shell {
  padding: 1.25rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
}

.ac-wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.ac-wizard {
  max-width: 100%;
  margin: 0 auto;
}

.ac-wizard-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.75rem;
}

.ac-wizard-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ac-wizard-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(-50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.ac-wizard-step:first-child::before {
  display: none;
}

.ac-wizard-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.2s ease;
}

.ac-wizard-step.active .ac-wizard-step-dot,
.ac-wizard-step.done .ac-wizard-step-dot {
  background: var(--accent-primary);
  color: #07111d;
  border-color: transparent;
}

.ac-wizard-step-label {
  color: var(--text-secondary);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.ac-wizard-progress {
  height: 6px !important;
}

.ac-wizard-stage {
  min-height: 360px;
}

.ac-wizard-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
}

.ac-wizard-live-summary {
  text-align: center;
}

.ac-precio-live {
  color: var(--accent-primary);
}

.ac-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.ac-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ac-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.aurora-footer {
  background: linear-gradient(180deg, #0c1727, #08111d);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ac-audit-dialog .mud-dialog-content {
  background: var(--bg-surface);
}

.ac-faq-panel {
  margin-bottom: 0.75rem;
}

.ac-capacidades-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.ac-capacidades-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

#blazor-error-ui {
  background: var(--accent-danger);
  bottom: 0;
  display: none;
  left: 0;
  padding: 0.75rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 2000;
  color: #07111d;
}

@media (max-width: 1100px) {
  .ac-footer-grid,
  .ac-service-group-header,
  .ac-wizard-header,
  .ac-footer-bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ac-budget-side-panel {
    position: static;
  }
}

@media (max-width: 960px) {
  :root {
    /* Carousels: content stacks on tablet so items need more height */
    --carousel-pillar-h: 700px;
    --carousel-testimonial-h: 300px;
  }

  .ac-main-content {
    padding-top: 88px;
  }

  .ac-trust-bar-container {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 1rem;
  }

  .ac-hero-title {
    max-width: none;
  }

  .ac-hero-visual-image,
  .ac-carousel-image {
    min-height: 280px;
  }

  .ac-wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ac-wizard-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    /* Carousel heights on mobile — content stacks vertically */
    --carousel-pillar-h: 740px;
    --carousel-testimonial-h: 320px;
    --carousel-value-h: 300px;
  }

  .ac-section {
    padding: 4rem 0;
  }

  .ac-appbar-container {
    padding-inline: 0.75rem;
  }

  .ac-logo-mark {
    width: 38px;
    height: 38px;
  }

  .ac-hero-actions,
  .ac-dialog-signals,
  .ac-footer-signal-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-pillar-slide,
  .ac-testimonial-slide,
  .ac-value-slide {
    padding: 1.25rem;
    min-height: auto;
  }

  .ac-hero-visual-panel {
    position: static;
    margin-top: -2rem;
  }

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

  /* Responsive typography: reduce large headings on small screens.
     Use body prefix for specificity over MudBlazor's single-class rules. */
  body .mud-typography-h1 {
    font-size: 2.1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  body .mud-typography-h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  body .mud-typography-h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  body .mud-typography-h4 {
    font-size: 1.2rem;
  }

  /* Constrain hero image on mobile */
  .ac-hero-visual-image,
  .ac-carousel-image {
    min-height: 240px;
  }
}
