/* ============================================================
   HeroCrédito — Components
   Reusable UI components library
   ============================================================ */

/* ─────────────────────── 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-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}

.btn-primary {
  background: var(--color-accent-500);
  color: var(--color-primary-900);
  border-color: var(--color-accent-500);
}

.btn-primary:hover {
  background: var(--color-accent-600);
  border-color: var(--color-accent-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
  background: var(--color-primary-700);
  color: var(--color-white);
  border-color: var(--color-primary-700);
}

.btn-secondary:hover {
  background: var(--color-primary-800);
  border-color: var(--color-primary-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-700);
  border-color: var(--color-primary-300);
}

.btn-outline:hover {
  background: var(--color-primary-50);
  border-color: var(--color-primary-500);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-700);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--color-primary-50);
}

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

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  min-height: 40px;
}

.btn-icon {
  padding: var(--space-3);
  min-height: 44px;
  min-width: 44px;
}

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─────────────────────── HEADER ─────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
  height: 36px;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
  line-height: 1;
}

.header-logo-text span {
  color: var(--color-accent-500);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header-nav a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-700);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--color-primary-700);
  background: var(--color-primary-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.menu-toggle:hover {
  background: var(--color-neutral-100);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-neutral-800);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .header-nav,
  .header-actions .btn {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 61px;
  z-index: var(--z-overlay);
  background: var(--color-white);
  padding: var(--space-6);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-800);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: background var(--duration-fast);
}

.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.mobile-menu .btn {
  margin-top: var(--space-4);
  width: 100%;
}

/* ─────────────────────── FOOTER ─────────────────────── */

.site-footer {
  background: var(--color-primary-900);
  color: var(--color-neutral-300);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-brand .header-logo-text {
  color: var(--color-white);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 32ch;
}

.footer-col h3,
.footer-col h4,
.footer-col-title {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color var(--duration-fast);
}

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

.footer-bottom {
  margin-top: var(--space-12);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-legal a {
  display: inline-block;
  padding-block: var(--space-1);
  min-height: 24px;
  color: var(--color-neutral-500);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-accent-400);
}

.footer-reginfo {
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  line-height: var(--leading-relaxed);
  max-width: 80ch;
}

.footer-disclaimer {
  flex-basis: 100%;
  font-size: var(--text-xs);
  color: var(--color-neutral-500);
  line-height: var(--leading-relaxed);
  max-width: 80ch;
}

.offer-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.page-updated {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.product-hero .page-updated {
  color: var(--color-neutral-300);
}

/* ─────────────────────── BREADCRUMBS ─────────────────────── */

.breadcrumbs {
  padding-block: var(--space-4);
  font-size: var(--text-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
}

.breadcrumbs li:not(:first-child)::before {
  content: "›";
  color: var(--color-neutral-400);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

/* ─────────────────────── CARDS ─────────────────────── */

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

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

.card-highlight {
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 1px var(--color-accent-500);
}

.card-dark {
  background: var(--color-primary-800);
  border-color: rgba(255,255,255,0.08);
  color: var(--color-neutral-200);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card-icon svg,
.card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.card h3, .card h4 {
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ─────────────────────── CALCULATOR ─────────────────────── */

.calculator {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.calculator-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.calculator-segment {
  display: flex;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
  background: var(--color-neutral-50);
}

.calculator-segment button {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  color: var(--color-text-secondary);
  min-height: 40px;
}

.calculator-segment button[aria-pressed="true"],
.calculator-segment button.active {
  background: var(--color-primary-700);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.calculator-slider-group {
  margin-bottom: var(--space-6);
}

.calculator-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
}

.calculator-slider-label span:first-child {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.calculator-slider-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
  font-variant-numeric: tabular-nums;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-200);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-700);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-700);
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--focus-ring);
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  font-variant-numeric: tabular-nums;
}

/* Calculator result */
.calculator-result {
  background: var(--color-neutral-50);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.calculator-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
}

.calculator-result-row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.calculator-result-row .label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.calculator-result-row .value {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.calculator-result-total {
  background: var(--color-primary-700);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
}

.calculator-result-total .label {
  font-weight: var(--weight-medium);
}

.calculator-result-total .value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}

.calculator-disclaimer {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.calculator-actions .btn {
  flex: 1;
  min-width: 200px;
}

/* ─────────────────────── ACCORDION ─────────────────────── */

.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.accordion-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal, 1.5);
  color: var(--color-text);
  text-wrap: wrap;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-align: left;
  color: var(--color-text);
  background: var(--color-white);
  transition: background var(--duration-fast);
  cursor: pointer;
  min-height: 56px;
}

.accordion-trigger:hover {
  background: var(--color-neutral-50);
}

.accordion-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--duration-base) var(--ease-out);
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 var(--space-6) var(--space-6);
}

.accordion-panel[aria-hidden="false"] {
  display: block;
}

.accordion-panel p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─────────────────────── TABLES ─────────────────────── */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.table-wrap table {
  min-width: 500px;
}

.table-wrap th,
.table-wrap td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

.table-wrap th {
  background: var(--color-neutral-50);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
}

.table-wrap td {
  color: var(--color-text-secondary);
}

.table-wrap tbody tr:hover {
  background: var(--color-neutral-50);
}

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

/* ─────────────────────── NOTICES / ALERTS ─────────────────────── */

.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.notice-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.notice-info {
  background: var(--color-info-50);
  border: 1px solid var(--color-info-100);
  color: var(--color-info-700);
}

.notice-warning {
  background: var(--color-warning-50);
  border: 1px solid var(--color-warning-100);
  color: var(--color-warning-700);
}

.notice-success {
  background: var(--color-success-50);
  border: 1px solid var(--color-success-100);
  color: var(--color-success-700);
}

.notice-error {
  background: var(--color-error-50);
  border: 1px solid var(--color-error-100);
  color: var(--color-error-700);
}

/* ─────────────────────── BADGE ─────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.badge-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}

.badge-success {
  background: var(--color-success-100);
  color: var(--color-success-700);
}

/* ─────────────────────── LOYALTY LEVEL BADGES ─────────────────────── */

.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.loyalty-badge-inicio {
  background: linear-gradient(135deg, #E8DDD4, #D4C4B0);
  color: #6B5B4A;
}

.loyalty-badge-contigo {
  background: linear-gradient(135deg, #E0E4EA, #C4CCD8);
  color: #4A5568;
}

.loyalty-badge-confianza {
  background: linear-gradient(135deg, #FEF0D5, #F5D890);
  color: #8B6D1F;
}

/* Loyalty level cards */
.loyalty-card {
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.loyalty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
}

.loyalty-card-inicio {
  background: linear-gradient(to bottom, #FAF6F1, var(--color-white));
  border: 2px solid #D4C4B0;
}

.loyalty-card-contigo {
  background: linear-gradient(to bottom, #F0F2F6, var(--color-white));
  border: 2px solid #C4CCD8;
}

.loyalty-card-confianza {
  background: linear-gradient(to bottom, #FFF9EE, var(--color-white));
  border: 2px solid #F5D890;
}

.loyalty-card .level-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
}

.loyalty-card h3 {
  margin-bottom: var(--space-2);
}

.loyalty-card .level-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
}

.loyalty-card ul {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.loyalty-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.loyalty-card li::before {
  content: "✓";
  color: var(--color-success-600);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* ─────────────────────── SEARCH ─────────────────────── */

.search-box {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}

.search-box input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  padding-left: 48px;
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  transition: border-color var(--duration-fast);
  min-height: 52px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.search-box .search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-dropdown);
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: block;
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  transition: background var(--duration-fast);
}

.search-results a:hover {
  background: var(--color-neutral-50);
}

.search-results a h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.search-results a p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.search-no-results {
  padding: var(--space-6);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ─────────────────────── COOKIE CONSENT ─────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-modal);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: var(--space-6);
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container-lg);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.cookie-banner-text a {
  color: var(--color-primary-600);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─────────────────────── STEPS / PROCESS ─────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-700);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  border-radius: var(--radius-full);
}

.step h3,
.step h4 {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-inline: auto;
}

/* ─────────────────────── HERO SECTION SHAPES ─────────────────────── */

.hero-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-shape-shield {
  width: 320px;
  height: 380px;
  opacity: 0.06;
  background: var(--color-accent-500);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hero-shape-circle {
  width: 200px;
  height: 200px;
  opacity: 0.04;
  background: var(--color-primary-500);
  border-radius: 50%;
}

/* ─────────────────────── COMPARISON CARDS ─────────────────────── */

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.compare-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  text-align: center;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.compare-card:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-lg);
}

.compare-card.is-selected {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 1px var(--color-primary-600);
}

.compare-card .term {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-700);
  margin-bottom: var(--space-1);
}

.compare-card .term-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.compare-card .total {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
}

.compare-card .detail {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ─────────────────────── CONTACT CARD ─────────────────────── */

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.contact-card:hover {
  border-color: var(--color-primary-300);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.contact-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.contact-card .icon svg,
.contact-card .icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  color: var(--color-primary-600);
}

.contact-card h3,
.contact-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ─────────────────────── TOOLTIP ─────────────────────── */

.tooltip {
  position: relative;
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-neutral-900);
  color: var(--color-white);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast);
  z-index: var(--z-dropdown);
}

.tooltip:hover .tooltip-content,
.tooltip:focus-within .tooltip-content {
  opacity: 1;
}

/* ─────────────────────── TAG / CHIP ─────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary-700);
  background: var(--color-primary-50);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.tag:hover {
  background: var(--color-primary-100);
}

/* ─────────────────────── FORM ELEMENTS ─────────────────────── */

.form-group {
  margin-bottom: var(--space-5);
}

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

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: border-color var(--duration-fast);
  min-height: 48px;
}

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

.form-input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error-500);
}

.form-hint {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-error-600);
}

/* ─────────────────────── SECTION HEADERS ─────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 640px;
  margin-inline: auto;
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  margin-inline: auto;
}

/* ─────────────────────── BRAND GRAPHICS & BADGES ─────────────────────── */

.header-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.step-illustration {
  max-width: 140px;
  height: 105px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto var(--space-4);
  display: block;
  filter: drop-shadow(0 6px 14px rgba(27, 20, 100, 0.08));
  transition: transform var(--duration-normal) ease;
}

.step:hover .step-illustration {
  transform: translateY(-4px) scale(1.02);
}

.tier-badge-img {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  transition: transform var(--duration-normal) ease;
}

.loyalty-card:hover .tier-badge-img {
  transform: scale(1.06) rotate(1deg);
}

.tier-badge-mini {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}

.brand-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  margin-bottom: var(--space-3);
}

.brand-icon-wrap img {
  width: 24px;
  height: 24px;
  display: block;
}

/* ─────────────────────── OFFER BAND + MOBILE STICKY OFFER ─────────────────────── */

.offer-band {
  padding-block: var(--space-10, 2.5rem);
  background: var(--color-primary-50);
  border-top: 1px solid var(--color-border);
}

.offer-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.offer-band-text {
  flex: 1 1 22rem;
  max-width: 60ch;
}

.offer-band-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary-900);
  margin-bottom: var(--space-2);
}

.offer-band-text p:not(.offer-band-title) {
  color: var(--color-text-secondary);
}

.offer-band-action {
  flex: 0 1 20rem;
}

.offer-band-action .offer-note {
  margin-top: var(--space-2);
}

.sticky-offer {
  display: none;
}

@media (max-width: 768px) {
  .sticky-offer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 16px rgba(27, 20, 100, 0.08);
  }

  .sticky-offer .btn {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .sticky-offer-note {
    font-size: var(--text-xs);
    line-height: 1.3;
    color: var(--color-text-muted);
  }

  body:has(.sticky-offer) {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .offer-band-action .btn {
    width: 100%;
  }
}
