/* ============================================================
   Transparencia: Información Institucional / Organización
   Figma Node: 23017:127759
   ============================================================ */

.torg-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 64px 80px;
  background: #fff;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.torg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.torg-breadcrumb a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0a0a0a;
  text-decoration: none;
  line-height: 20px;
}

.torg-breadcrumb a:hover {
  text-decoration: underline;
}

.torg-breadcrumb span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 20px;
}

.torg-breadcrumb svg {
  flex-shrink: 0;
  color: #0a0a0a;
}

/* ── Title ──────────────────────────────────────────────────── */
.torg-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 40px;
  letter-spacing: 0px;
  margin: 0 0 24px 0;
}

/* ── Description ────────────────────────────────────────────── */
.torg-description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 24px;
  margin: 0 0 48px 0;
  max-width: 100%;
}

/* ── Accordion wrapper ──────────────────────────────────────── */
.torg-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Accordion item (uses <details>) ───────────────────────── */
.torg-accordion details {
  border-bottom: 1px solid #e5e5e5;
}

.torg-accordion details:first-child {
  border-top: 1px solid #e5e5e5;
}

/* ── Summary / trigger ──────────────────────────────────────── */
.torg-accordion details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.torg-accordion details summary::-webkit-details-marker {
  display: none;
}

.torg-accordion details summary:focus {
  outline: none;
}

.torg-acc-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 28px;
}

/* Chevron icon — rotates when open */
.torg-acc-chevron {
  flex-shrink: 0;
  color: #b91c1c;
  transition: transform 0.2s ease;
}

.torg-accordion details[open] > summary .torg-acc-chevron {
  transform: rotate(180deg);
}

/* ── Accordion body ─────────────────────────────────────────── */
.torg-acc-body {
  padding: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Link row (inside open accordion) ──────────────────────── */
.torg-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.torg-link-row:hover {
  background: #ebebeb;
}

.torg-link-row__name {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 20px;
}

.torg-link-row__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.torg-link-row__cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #b91c1c;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.torg-link-row__cta svg {
  color: #b91c1c;
  flex-shrink: 0;
}

/* ── Bloque especial Perfil del contratante ─────────────────── */
.torg-contratante-block {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 8px;
}

.torg-contratante-desc,
.torg-contratante-block p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  line-height: 22px;
  margin: 0 0 16px 0;
}

.torg-contratante-block p:last-child {
  margin-bottom: 0;
}

.torg-contratante-data,
.torg-contratante-block ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.torg-contratante-data li,
.torg-contratante-block ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  line-height: 20px;
}

.torg-contratante-data svg,
.torg-contratante-block svg {
  flex-shrink: 0;
}

.torg-contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.torg-contratante-note {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0a0a0a;
  line-height: 22px;
  margin: 0;
}

.torg-contratante-note a,
.torg-contratante-block a {
  color: #b91c1c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.torg-contratante-note a:hover,
.torg-contratante-block a:hover {
  text-decoration: none;
}

/* ── Desplegable (same look as link row, toggles body) ───────── */
.torg-desplegable {
  display: flex;
  flex-direction: column;
}

.torg-desplegable-trigger {
  cursor: pointer;
}

.torg-desplegable-chevron {
  display: flex;
  align-items: center;
  color: #b91c1c;
  transition: transform 0.2s ease;
}

.torg-desplegable.is-open .torg-desplegable-trigger {
  border-radius: 8px 8px 0 0;
}

.torg-desplegable.is-open .torg-desplegable-chevron {
  transform: rotate(180deg);
}

.torg-desplegable-body {
  padding: 12px 16px 16px 16px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 22px;
}

.torg-desplegable.is-open .torg-desplegable-trigger + .torg-desplegable-body {
  display: block !important;
}

.torg-desplegable-body p {
  margin: 0 0 8px 0;
}

.torg-desplegable-body p:last-child {
  margin-bottom: 0;
}

.torg-desplegable-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .torg-page {
    padding: 32px 16px 60px;
  }

  .torg-title {
    font-size: 26px;
    line-height: 32px;
  }
}
