/* ============================================================
   trueKr — Landing de lanzamiento
   Estilos sobre tokens del Truekr Design System.
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.overline {
  font-family: var(--font-body);
  font-size: var(--overline-size);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-app) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease-standard),
              background var(--dur-normal) var(--ease-standard);
}
.site-header.scrolled {
  border-bottom-color: var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.header-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--tk-coral);
  transition: color var(--dur-fast) var(--ease-standard);
}
.header-link:hover { color: var(--tk-coral); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-standard);
}
.menu-btn:hover { background: var(--tk-light-gray); }
.menu-btn svg { width: 26px; height: 26px; }

/* Mobile sheet menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px clamp(20px, 5vw, 56px) 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-app);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.hero-title .accent { color: var(--tk-coral); }
.hero-lead {
  margin-top: clamp(20px, 2.5vw, 28px);
  max-width: 30ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--text-secondary);
}
.hero-note {
  margin-top: clamp(24px, 3vw, 32px);
  padding-left: 18px;
  border-left: 3px solid var(--tk-coral);
}
.hero-note strong {
  display: block;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}
.hero-discover {
  margin-top: clamp(28px, 3.5vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.hero-discover .circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: transform var(--dur-normal) var(--ease-spring),
              background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.hero-discover .circle svg { width: 20px; height: 20px; }
.hero-discover:hover .circle {
  transform: translateY(4px);
  background: var(--tk-charcoal);
  color: #fff;
  border-color: var(--tk-charcoal);
}
.hero-discover span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Exchange cards */
.exchange {
  position: relative;
}
.exchange-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}
.exch-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--tk-ocean);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}


.exch-photo {
  position: relative;
  height: clamp(260px, 32vw, 380px);
  overflow: hidden;
  flex: none;
}
.exch-photo image-slot {
  display: block;
  width: 100%;
  height: 100%;
}
.exch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,20,26,0.08) 0%,
    rgba(0,20,26,0)    30%,
    rgba(0,20,26,0.82) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(14px, 1.5vw, 20px);
  pointer-events: none;
}
.exch-overlay h3 {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
  margin: 0;
  padding-left: clamp(14px, 1.6vw, 24px);
}
.exch-badge {
  align-self: flex-start;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-overline);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}
.exch-body {
  padding: clamp(18px, 2vw, 26px);
  color: #fff;
}
.exch-list {
  margin-top: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exch-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}
.exch-list li svg { width: 19px; height: 19px; flex: none; color: var(--tk-sage); }
.exch-list.checks li svg { color: var(--tk-coral); }

.swap-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: clamp(54px, 5vw, 66px);
  height: clamp(54px, 5vw, 66px);
  border-radius: var(--radius-pill);
  background: var(--tk-white);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.swap-btn svg { width: 26px; height: 26px; }

/* ── Hero carousel ── */
.exchange-cards-wrap {
  position: relative;
}
.exch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slides-stack {
  display: grid;
}
.hero-slides-stack > * {
  grid-area: 1 / 1;
}
.hero-slide {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-standard),
              transform 0.6s var(--ease-standard);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Slide dot navigation */
.slide-dots {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.slide-dot {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-default);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.slide-dot.active {
  border-color: var(--tk-coral);
  background: var(--tk-coral);
  color: #fff;
  box-shadow: 0 2px 10px rgba(226,88,53,0.3);
}
.slide-dot:hover:not(.active) {
  border-color: var(--tk-teal);
  color: var(--tk-teal);
}

/* ============================================================
   ¿CÓMO FUNCIONA?
   ============================================================ */
.section-light {
  position: relative;
  background: var(--tk-sand);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.steps-section {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.steps-section .section-overline { color: var(--text-secondary); }
.steps-section .step-icon {
  background: var(--tk-white);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}
.steps-section .step:not(:last-child) .step-icon::after {
  border-color: var(--tk-gray);
}
.steps-section .step-num { color: var(--tk-coral); }
.steps-section .step h4 { color: var(--text-primary); }
.steps-section .step p { color: var(--text-secondary); }
.section-overline {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.step { position: relative; }
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--tk-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.step-icon svg { width: 26px; height: 26px; }
/* dotted connector */
.step:not(:last-child) .step-icon::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 76px;
  right: -12px;
  border-top: 2px dotted var(--tk-gray);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--tk-coral);
  margin-bottom: 8px;
}
.step h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 22ch;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  position: relative;
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(64px, 8vw, 110px);
}
.cta-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.cta-head h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.cta-head .sub {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-primary);
}
.cta-head .rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--tk-coral);
  margin: 22px auto 0;
}
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 40px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-card.coral {
  background: linear-gradient(180deg, var(--tk-coral-soft) 0%, #FDEEE7 100%);
}
.cta-card.neutral {
  background: var(--tk-light-gray);
}
.cta-card .badge-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--tk-white);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.cta-card.coral .badge-icon { color: var(--tk-coral); }
.cta-card.neutral .badge-icon { color: var(--text-primary); }
.cta-card .badge-icon svg { width: 28px; height: 28px; }
.cta-card .kicker {
  margin-bottom: 14px;
}
.cta-card.coral .kicker { color: var(--tk-coral); }
.cta-card.neutral .kicker { color: var(--text-secondary); }
.cta-card h3 {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.cta-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 30ch;
  margin-bottom: 28px;
  flex: 1;
}
.cta-card .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  height: 54px;
  border-radius: var(--radius-md);
  color: #fff;
  transition: background var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.cta-card .btn.coral { background: var(--tk-coral); box-shadow: var(--shadow-coral); }
.cta-card .btn.coral:hover { background: var(--accent-hover); }
.cta-card .btn.dark { background: var(--tk-ocean); }
.cta-card .btn.dark:hover { background: var(--tk-teal); }
.cta-card .btn:active { transform: scale(0.98); }

/* Decorative line-art */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.deco-palm { left: -10px; bottom: 0; width: clamp(180px, 22vw, 320px); color: var(--tk-coral); opacity: 0.32; }
.deco-mtn { right: -10px; top: 8%; width: clamp(260px, 34vw, 520px); color: var(--tk-teal); opacity: 0.28; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--border-subtle);
}
.faq-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.faq-head .section-overline {
  margin-bottom: 16px;
}
.faq-title {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}
.faq-title .accent { color: var(--tk-coral); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}
.faq-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: clamp(18px, 2.5vw, 24px) 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.faq-q:hover .faq-q-text { color: var(--tk-coral); }

.faq-q-text {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--dur-fast) var(--ease-standard);
}
.faq-item.open .faq-q-text {
  color: var(--tk-coral);
}

.faq-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-normal) var(--ease-standard);
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item.open .faq-icon {
  background: var(--tk-coral);
  border-color: var(--tk-coral);
  color: #fff;
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.38s var(--ease-standard),
              opacity 0.28s var(--ease-standard);
}
.faq-item.open .faq-a {
  max-height: 400px;
  opacity: 1;
}
.faq-a p {
  padding-bottom: clamp(18px, 2.5vw, 24px);
  padding-right: 56px;
  font-size: clamp(14px, 1.3vw, 15.5px);
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
  flex-wrap: wrap;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  height: 52px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.faq-cta-btn svg { width: 18px; height: 18px; flex: none; }
.faq-cta-btn.coral {
  background: var(--tk-coral);
  box-shadow: var(--shadow-coral);
}
.faq-cta-btn.coral:hover { background: var(--accent-hover); }
.faq-cta-btn.dark {
  background: var(--tk-ocean);
}
.faq-cta-btn.dark:hover { background: var(--tk-teal); }
.faq-cta-btn:active { transform: scale(0.98); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  border-radius: 26px;
  width: 52px;
  height: 52px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.4s var(--ease-standard),
              padding 0.35s var(--ease-standard),
              box-shadow 0.2s var(--ease-standard),
              transform 0.2s var(--ease-standard);
}
.wa-btn:hover,
.wa-btn.hovered {
  width: 260px;
  gap: 10px;
  padding: 0 18px 0 20px;
  justify-content: flex-start;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}
.wa-btn:active { transform: scale(0.97) translateY(0); }

.wa-icon {
  flex: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}
.wa-icon svg { width: 26px; height: 26px; }

.wa-label {
  order: 1;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.2s 0.1s var(--ease-standard),
              max-width 0.4s var(--ease-standard);
}
.wa-btn:hover .wa-label,
.wa-btn.hovered .wa-label {
  opacity: 1;
  max-width: 200px;
}

@media (max-width: 620px) {
  .wa-btn { bottom: 20px; right: 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--tk-midnight);
  color: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(24px, 3vw, 34px);
}
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,0.08);
  transition: background var(--dur-fast) var(--ease-standard);
}
.footer-social a:hover { background: var(--tk-coral); }
.footer-social svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .header-link { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .step:not(:last-child) .step-icon::after { display: none; }
  .deco-mtn { opacity: 0.16; }
  .deco-palm { opacity: 0.18; }
}

@media (max-width: 620px) {
  .header-inner { height: 72px; }
  .exchange-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .swap-btn {
    transform: translate(-50%, -50%) rotate(90deg);
    box-shadow: var(--shadow-md);
  }
  .slide-dots { justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
    padding-bottom: 28px;
  }
  .step-icon { margin-bottom: 0; grid-row: span 3; }
  .step:not(:last-child) {
    position: relative;
  }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 70px;
    bottom: 0;
    border-left: 2px dotted var(--tk-gray);
  }
  .step p { max-width: none; }
  .cta-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 18px; }
}
