/* ═══════════════════════════════════════════════════════
   paso-a-paso.css | Paso a Paso page styles
   ═══════════════════════════════════════════════════════ */

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.t-hero {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* ─── SUBPAGE HERO OVERRIDE ──────────────────────────── */
.subpage-hero {
  min-height: unset;
  padding: 40px 0 40px;
}

/* ─── PAGE LAYOUT ────────────────────────────────────── */
.pap-page {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 8vw, 120px);
}

/* ─── SECTION LABEL ──────────────────────────────────── */
.pap-section-label {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 24px;
}

/* ─── PHASE CARD (outer wrapper, same shadow as normas) ─ */
.phase-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--divider);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.05);
  padding: clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.phase-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.phase-card:nth-child(2) { transition-delay: 0.1s; }

/* ─── PHASE HEADER ───────────────────────────────────── */
.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-2);
  border-radius: 1000px;
  padding: 6px 14px;
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(10px, 0.85vw, 11px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.phase-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.6;
  flex-shrink: 0;
}

.phase-duration {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(10px, 0.85vw, 11px);
  color: var(--dark-grey);
  letter-spacing: 0.03em;
  margin-left: auto;
}

/* ─── STEPS ROW ──────────────────────────────────────── */
.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* ─── STEP + ARROW WRAPPER ───────────────────────────── */
.step-unit {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* ─── STEP CARD ──────────────────────────────────────── */
.step-card {
  flex: 1;
  min-width: 0;
  background: #fafafa;
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.step-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Linkable step card (Paso 00 → Documentos) */
.step-card--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.step-card--link:hover {
  background: var(--accent-2);
  border-color: rgba(72, 92, 17, 0.2);
  box-shadow: 0 4px 16px rgba(72, 92, 17, 0.1);
}

.step-num {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent-1);
  opacity: 0.7;
}

.step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.25;
}

.step-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 400;
  color: var(--dark-grey);
  line-height: 1.4;
}

/* ─── ARROW BETWEEN STEPS ────────────────────────────── */
.step-arrow {
  flex-shrink: 0;
  width: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  opacity: 0.35;
}

.step-arrow svg {
  width: 16px;
  height: 16px;
  /* points right on desktop */
  transform: rotate(0deg);
  transition: opacity 0.2s;
}

/* ─── DOCUMENTS SECTION ──────────────────────────────── */
.docs-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--divider);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.05);
  padding: clamp(28px, 3.5vw, 48px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}
.docs-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DOCS GRID ──────────────────────────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.docs-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-column-header {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 4px;
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--divider);
  border-radius: 10px;
  transition: background 0.15s;
}
.doc-item:hover {
  background: var(--accent-2);
  border-color: transparent;
}

.doc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  flex-shrink: 0;
  margin-top: 5px;
  opacity: 0.5;
}

.doc-text {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--dark-grey);
  line-height: 1.4;
}

.doc-sub {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: var(--grey-mid);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ─── FOOTNOTE ───────────────────────────────────────── */
.docs-footnote {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--dark-grey);
  line-height: 1.5;
}
.docs-footnote::before {
  content: '* ';
  color: var(--accent-1);
  font-weight: 700;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Stack steps vertically on mobile */
  .steps-row {
    flex-direction: column;
    gap: 0;
  }

  .step-unit {
    flex-direction: column;
    align-items: stretch;
  }

  /* Arrow points down on mobile */
  .step-arrow {
    width: 100%;
    height: 28px;
  }
  .step-arrow svg {
    transform: rotate(90deg);
  }

  /* Docs: single column on mobile */
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .phase-duration {
    display: none; /* too cramped on mobile */
  }
}
