/* ==========================================================================
   DEVIUM — REUSABLE UI COMPONENTS
   Brand Symbol (3 Vectorial Horizontal Bars with Blue->Purple Gradient),
   Navigation, Buttons, Cards, Wizard, Accordions & Footers
   ========================================================================== */

/* ==========================================================================
   1. BRAND SYMBOL & LOGO (Pure Vectorial & CSS Code)
   ========================================================================== */

/* ==========================================================================
   1. BRAND LOGO & ISOTIPO (Real Image Assets)
   Renders real image files from img/ without text/CSS recreation
   ========================================================================== */

/* DEVIUM Wordmark Logo Component */
.devium-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  line-height: 1;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.devium-logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.devium-logo-img,
.logo-theme {
  height: clamp(17px, 1.75vw, 21px);
  width: auto;
  display: block;
  object-fit: contain;
}

/* Standalone 3-Bar Isotipo Image */
.devium-isotipo-img,
.symbol-theme {
  display: block;
  object-fit: contain;
}

/* Gestión centralizada de logos por tema (Dark Mode es la identidad principal) */
.logo-light-theme,
.symbol-light-theme,
.devium-logo-light-theme,
.devium-isotipo-light-theme {
  display: none !important;
}

.logo-dark-theme,
.symbol-dark-theme,
.devium-logo-dark-theme,
.devium-isotipo-dark-theme {
  display: inline-block !important;
}

/* Dark Mode explícito */
[data-theme="dark"] .logo-light-theme,
[data-theme="dark"] .symbol-light-theme,
[data-theme="dark"] .devium-logo-light-theme,
[data-theme="dark"] .devium-isotipo-light-theme {
  display: none !important;
}

[data-theme="dark"] .logo-dark-theme,
[data-theme="dark"] .symbol-dark-theme,
[data-theme="dark"] .devium-logo-dark-theme,
[data-theme="dark"] .devium-isotipo-dark-theme {
  display: inline-block !important;
}

/* Light Mode explícito */
[data-theme="light"] .logo-dark-theme,
[data-theme="light"] .symbol-dark-theme,
[data-theme="light"] .devium-logo-dark-theme,
[data-theme="light"] .devium-isotipo-dark-theme {
  display: none !important;
}

[data-theme="light"] .logo-light-theme,
[data-theme="light"] .symbol-light-theme,
[data-theme="light"] .devium-logo-light-theme,
[data-theme="light"] .devium-isotipo-light-theme {
  display: inline-block !important;
}

/* ==========================================================================
   2. NAVBAR & HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-header);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) ease,
              height var(--duration-normal) ease,
              border-color var(--duration-normal) ease;
  will-change: transform;
}

.site-header.header-scrolled {
  height: var(--header-height-scrolled);
  background: var(--bg-glass-heavy);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.header-scrolled ~ .mobile-drawer {
  top: var(--header-height-scrolled);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 1.5vw, var(--space-8));
  flex-shrink: 0;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-2) 0;
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration-fast) ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-2), 1vw, var(--space-4));
  flex-shrink: 0;
}

/* Control Icon Buttons (Theme / Lang) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-badge);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: all var(--duration-fast) ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-blue);
  background: var(--bg-surface-raised);
  box-shadow: 0 0 12px var(--brand-blue-glow);
}

.lang-switch-btn {
  display: none !important; /* Desactivado temporalmente */
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  padding: 0 var(--space-3);
  width: auto;
  min-width: 46px;
}

/* Mobile Toggle */
.mobile-toggle-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-body);
  z-index: var(--z-drawer);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--brand-blue);
}

/* ==========================================================================
   3. BUTTONS (Luxury Escalation)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-diagnostic-cta {
  white-space: normal !important;
  text-align: center;
  max-width: 680px;
  line-height: 1.4;
  margin: 0 auto;
}

.btn-arrow {
  transition: transform var(--duration-fast) ease;
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Primary Button: Solid Contrast with Blue->Purple Ambient Hover Glow */
.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border: 1px solid transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background var(--duration-fast) ease, color var(--duration-fast) ease;
}

.btn-primary:hover {
  background: var(--text-primary);
  opacity: 0.95;
  box-shadow: 0 4px 24px var(--brand-blue-glow), 0 0 12px var(--brand-purple-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
}

/* Accent Gradient Button: Pure Blue -> Purple */
.btn-accent {
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 20px var(--brand-blue-glow);
}

.btn-accent:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45);
  transform: translateY(-2px);
}

/* Secondary Button: Clean outline with gradient hover */
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-surface-raised);
  border-color: var(--brand-blue);
  box-shadow: 0 0 15px var(--brand-blue-glow);
  transform: translateY(-1px);
}

/* Ghost Button: Simple Text & Arrow */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-2) 0;
  border: none;
}

.btn-ghost:hover {
  color: var(--brand-blue);
}

/* WhatsApp Strategic Button */
.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  font-weight: var(--fw-bold);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background var(--duration-fast) ease;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-whatsapp:active {
  transform: scale(0.97) translateY(0);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   4. CARDS & SURFACES
   ========================================================================== */

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

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.card-lift:hover {
  transform: translateY(-3px);
}

/* Informational Badges in Project Cards (Eliminación de falsas affordances) */
.project-card .deliverable-tag {
  cursor: default;
  padding: 4px 10px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  user-select: none;
  transform: none !important;
  box-shadow: none !important;
  transition: none;
}

.project-card .deliverable-tag:hover {
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

/* Badge Tag (Sobrio, editorial, no interactivo) */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  user-select: none;
}

/* Lista Editorial de Especificaciones (Sin affordance de botón) */
.spec-clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.spec-clean-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.spec-clean-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-clean-list li:first-child {
  padding-top: 0;
}

.spec-check {
  color: var(--brand-blue);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* Card Accent Top Line: Blue -> Purple */
.card-accent-top {
  position: relative;
  overflow: hidden;
}

.card-accent-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  z-index: 2;
}

.card-accent-top:hover::after {
  opacity: 1;
}

/* Service Card */
.card-service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.card-service-index {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--brand-purple);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-4);
}

.card-service-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card-service-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.card-service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.feature-bullet {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
  box-shadow: 0 0 6px var(--brand-blue-glow);
}

/* Pricing Card */
.card-pricing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  cursor: default !important;
}

.card-pricing.featured {
  border-color: var(--brand-blue);
  border-top: 3px solid var(--brand-blue);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.07) 0%, var(--bg-surface) 30%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  position: relative;
}

[data-theme="light"] .card-pricing.featured {
  border-color: var(--brand-blue);
  border-top: 3px solid var(--brand-blue);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, #ffffff 30%);
  box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.12);
}

.pricing-header {
  margin-bottom: var(--space-6);
}

.pricing-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  background: var(--bg-badge);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.pricing-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.pricing-for {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.pricing-amount-wrap {
  margin: var(--space-6) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-prefix {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.check-icon {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: bold;
}

/* ==========================================================================
   PLANES DE INVERSIÓN (NAVEGACIÓN COMPACTA EN MÓVIL)
   ========================================================================== */

.pricing-mobile-nav {
  display: none;
}

@media (max-width: 767px) {
  .pricing-mobile-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-2);
    margin: 0 auto var(--space-6) auto;
    max-width: 100%;
    width: fit-content;
    overflow-x: auto;
    padding: var(--space-1) var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .pricing-tab {
    background: transparent;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .pricing-tab.active {
    background: var(--brand-blue);
    color: #ffffff;
  }

  /* Control de visibilidad de tarjetas en móvil */
  .pricing-grid .card-pricing:not(.is-mobile-active) {
    display: none !important;
  }
  .pricing-grid .card-pricing.is-mobile-active {
    display: flex !important;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .pricing-grid .card-pricing {
    display: flex !important;
  }
}

/* ==========================================================================
   5. COTIZADOR INTERACTIVO (Multi-step Wizard)
   ========================================================================== */

.wizard-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-card);
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: var(--space-10);
}

.wizard-progress-line {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--brand-gradient);
  width: 0%;
  transition: width var(--duration-normal) ease;
  box-shadow: 0 0 10px var(--brand-blue-glow);
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.wizard-node-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
}

.wizard-step-node.active .wizard-node-circle {
  border-color: var(--brand-blue);
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 0 18px var(--brand-blue-glow);
}

.wizard-step-node.completed .wizard-node-circle {
  border-color: var(--brand-purple);
  background: var(--brand-purple);
  color: #ffffff;
}

.wizard-node-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--fw-medium);
}

.wizard-step-node.active .wizard-node-label {
  color: var(--text-primary);
  font-weight: var(--fw-bold);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn var(--duration-normal) ease;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.option-card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.option-card::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-medium);
  background: transparent;
  transition: all 0.2s ease;
}

.option-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.option-card.selected {
  animation: cardSelectedPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--brand-blue);
  background: var(--brand-gradient-subtle);
  box-shadow: 0 0 0 1.5px var(--brand-blue);
}

.option-card.selected::after {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.option-card-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  padding-right: var(--space-6);
}

.option-card-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* Real-time estimation banner */
.estimation-box {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid var(--brand-blue);
}

.estimation-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.estimation-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--lh-normal);
  margin-top: var(--space-2);
}

/* Wizard Form Inputs */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 10px var(--brand-blue-glow);
  outline: none;
}

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

/* ==========================================================================
   6. ACCORDION / FAQ
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}

.accordion-item:hover {
  border-color: var(--border-medium);
}

.accordion-item.is-open {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-subtle);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border: none;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
  color: var(--brand-purple);
}

/* Transición Fluida con CSS Grid a 60 FPS */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 var(--space-6);
}

.accordion-item.is-open .accordion-body {
  grid-template-rows: 1fr;
  padding: 0 var(--space-6) var(--space-6) var(--space-6);
}

.accordion-body > * {
  overflow: hidden;
}

/* Theme Toggle Button Microinteraction */
@keyframes iconFlip {
  0% { transform: rotate(-90deg) scale(0.6); opacity: 0; }
  100% { transform: rotate(0) scale(1); opacity: 1; }
}

/* ==========================================================================
   7. PILL TOGGLES & BADGES
   ========================================================================== */

.currency-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 3px;
}

.currency-toggle-btn {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.currency-toggle-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* ==========================================================================
   8. FOOTER (Editorial & Structural)
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  margin-top: auto;
}

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

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: var(--space-4) 0;
  max-width: 320px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.footer-link:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ==========================================================================
   RESPONSIVE COMPONENT ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1040px) {
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-toggle-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  /* Buttons & CTAs Mobile Responsiveness */
  .btn {
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .btn-lg {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }
  .card-pricing {
    padding: var(--space-6) var(--space-4);
  }
  .custom-diagnostic-cta {
    width: 100% !important;
    padding: var(--space-3) var(--space-4) !important;
    font-size: var(--text-sm) !important;
    line-height: 1.4 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  .wizard-container {
    padding: var(--space-5) var(--space-4);
  }
  .wizard-container .flex-between {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: var(--space-3) !important;
  }
  .wizard-container .flex-between > div {
    margin-left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .wizard-container .btn {
    width: 100% !important;
  }
  .wizard-progress-line {
    left: 15px;
    right: 15px;
  }
  .wizard-node-label {
    display: none;
  }
  .estimation-box {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}
