/* ================================================================
   INKX — how-it-works.css
   Página "Cómo Funciona" — Dark Luxury Redesign
   Máximo contraste, tipografía nítida y estética Obsidian & Crimson
   ================================================================ */

.how-page {
  background-color: #070707;
  color: #f3f4f6;
  overflow-x: hidden;
}

/* ── Hero Section ────────────────────────────────────────────── */
.how-hero {
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(197, 29, 56, 0.18) 0%, rgba(7, 7, 7, 0.95) 70%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.how-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff4d6d;
  background: rgba(197, 29, 56, 0.15);
  border: 1px solid rgba(197, 29, 56, 0.4);
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.how-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 8px #ff4d6d;
}

.how-hero h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.how-hero h1 span.highlight {
  background: linear-gradient(135deg, #ff4d6d 0%, #c51d38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.how-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #d1d5db;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Interactive Role Switcher ───────────────────────────────── */
.how-role-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.how-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.how-switcher-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.how-switcher-btn:hover {
  color: #ffffff;
}

.how-switcher-btn.active {
  background: linear-gradient(135deg, #c51d38 0%, #8f1325 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(197, 29, 56, 0.45);
}

.how-switcher-btn.active svg {
  transform: scale(1.1);
}

/* ── Section Container ───────────────────────────────────────── */
.how-steps-section {
  padding: 80px 0 100px;
  position: relative;
}

.how-track-content {
  display: none;
  animation: howFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.how-track-content.active {
  display: block;
}

@keyframes howFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.how-timeline {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Step Card ───────────────────────────────────────────────── */
.how-step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  background: linear-gradient(145deg, #121212 0%, #0e0e0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.how-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c51d38, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.how-step-card:hover {
  border-color: rgba(197, 29, 56, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(197, 29, 56, 0.12);
  transform: translateY(-4px);
}

.how-step-card:hover::before {
  opacity: 1;
}

/* Invertir orden en tarjetas alternas */
.how-step-card.reverse {
  direction: rtl;
}
.how-step-card.reverse > * {
  direction: ltr;
}

/* ── Contenido del Paso ──────────────────────────────────────── */
.step-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff4d6d;
  background: rgba(197, 29, 56, 0.14);
  border: 1px solid rgba(197, 29, 56, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.step-card-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: #ffffff !important; /* MÁXIMO CONTRASTE BLANCO */
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.step-card-desc {
  font-size: 1.05rem;
  color: #d1d5db; /* GRIS CLARO LEGIBLE */
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.step-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.step-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: #e5e7eb;
}

.step-highlight-item svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ── Visual Mockup Card (Lado visual interactivo) ────────────── */
.step-visual-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 280px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.visual-badge-floating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(197, 29, 56, 0.2);
  color: #ff4d6d;
  border: 1px solid rgba(197, 29, 56, 0.4);
}

.visual-icon-glow {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(197, 29, 56, 0.25) 0%, rgba(143, 19, 37, 0.1) 100%);
  border: 1px solid rgba(197, 29, 56, 0.4);
  color: #ff4d6d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px rgba(197, 29, 56, 0.25);
}

.visual-mini-ui {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.visual-ui-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
}

.visual-ui-row .label {
  color: #9ca3af;
}

.visual-ui-row .value {
  color: #ffffff;
  font-weight: 600;
}

.visual-ui-row .value.green {
  color: #4ade80;
}

.visual-ui-row .value.gold {
  color: #facc15;
}

/* ── Beneficios Clave (3 Columnas) ───────────────────────────── */
.how-benefits-section {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-header-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header-center h2 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-header-center p {
  font-size: 1.05rem;
  color: #9ca3af;
  line-height: 1.5;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 2.25rem 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(197, 29, 56, 0.35);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(197, 29, 56, 0.15);
  border: 1px solid rgba(197, 29, 56, 0.35);
  color: #ff4d6d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.benefit-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.benefit-text {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0;
}

/* ── FAQ Section (Acordeón) ──────────────────────────────────── */
.how-faq-section {
  padding: 90px 0 110px;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
  border-color: rgba(197, 29, 56, 0.45);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #ff4d6d;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: #9ca3af;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #ff4d6d;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 1.75rem 1.35rem;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Final Call To Action ────────────────────────────────────── */
.how-cta-banner {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, rgba(197, 29, 56, 0.2) 0%, rgba(10, 10, 10, 1) 75%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
}

.how-cta-banner h2 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.how-cta-banner p {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.how-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-inkx-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #c51d38 0%, #8f1325 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(197, 29, 56, 0.45);
  transition: all 0.25s ease;
}

.btn-inkx-primary:hover {
  background: linear-gradient(135deg, #d82342 0%, #a1142a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 29, 56, 0.6);
  color: #ffffff;
}

.btn-inkx-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-inkx-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
  .how-step-card,
  .how-step-card.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
    direction: ltr !important;
  }
  .how-step-card.reverse > * {
    direction: ltr !important;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .how-hero {
    padding: 100px 0 40px;
  }
  .how-role-switcher {
    width: 100%;
    display: flex;
  }
  .how-switcher-btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    justify-content: center;
  }
  .how-step-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .step-visual-box {
    padding: 1.25rem;
    min-height: auto;
  }
  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.95rem;
  }
  .faq-answer-inner {
    padding: 0 1.25rem 1.15rem;
    font-size: 0.88rem;
  }
  .how-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-inkx-primary,
  .btn-inkx-secondary {
    width: 100%;
    justify-content: center;
  }
}
