/* ═══════════════════════════════════════════════════════════════
   Procedimiento de Homologación — /auditoria/hacerse-auditor-de-cuentas/formacion-teorica/procedimiento-homologacion
   Figma node 22889:76493
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero Section: y=150 h=200, white bg ── */
.ph-hero {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #ffffff;
}

.ph-hero__container {
  position: relative;
  z-index: 2;
  width: 1280px;
  max-width: calc(100% - 48px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.ph-hero__content {
  width: 100%;
  max-width: 1152px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ph-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.ph-breadcrumb__link,
.ph-breadcrumb__current {
  color: #525252;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.ph-breadcrumb__link:hover {
  color: #0a0a0a;
  text-decoration: underline;
}

.ph-breadcrumb__current {
  color: #0a0a0a;
  font-weight: 500;
}

.ph-breadcrumb__sep {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ph-breadcrumb__sep path {
  stroke: #525252;
}

.ph-hero__title {
  width: 100%;
  max-width: 800px;
  margin: 0;
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
}

/* ── Table Section: y=350 ── */
.ph-table-section {
  width: 100%;
  background: #ffffff;
  padding-bottom: 64px;
}

.ph-table-section__container {
  width: 1280px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

/* ── Table ── */
.ph-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.ph-table thead {
  background: #f8fafc;
}

.ph-table__header {
  padding: 16px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #0a0a0a;
  border-bottom: 1px solid #e5e5e5;
}

.ph-table__header--normativa {
  width: 1086px;
  max-width: calc(100% - 194px);
}

.ph-table__header--acciones {
  width: 194px;
  text-align: center;
}

.ph-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

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

.ph-table__cell {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #0a0a0a;
  vertical-align: middle;
}

.ph-table__cell--acciones {
  text-align: center;
  padding: 12px 24px;
}

/* ── Download Button ── */
.ph-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #525252;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ph-download-btn:hover {
  background: #f8fafc;
  border-color: #d4d4d4;
  color: #0a0a0a;
}

.ph-download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ph-table__header--normativa,
  .ph-table__cell:first-child {
    width: auto;
    max-width: none;
  }

  .ph-table__header--acciones,
  .ph-table__cell--acciones {
    width: 120px;
  }
}

@media (max-width: 768px) {
  .ph-hero {
    height: auto;
    min-height: 160px;
    padding: 32px 0;
  }

  .ph-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .ph-table-section {
    padding-bottom: 40px;
  }

  .ph-table__header,
  .ph-table__cell {
    padding: 12px 16px;
    font-size: 13px;
  }

  .ph-download-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .ph-download-btn span {
    display: none;
  }
}

/* ==========================================================================
   Documentos descargables del procedimiento (INI - descargas ICAC)
   ========================================================================== */
.procedimiento-documentos {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.procedimiento-documentos h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.procedimiento-documentos > p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #525252;
  margin: 0 0 24px;
}
.documento-lista {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .documento-lista { grid-template-columns: 1fr; }
}
.documento-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  text-decoration: none;
  color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.documento-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #b91c1c;
}
.documento-item__titulo {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.documento-item__tipo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 10px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}
.documento-item__descarga {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #b91c1c;
}
.documento-item__descarga::before {
  content: "↓";
  margin-right: 4px;
  font-weight: 700;
}
