/* ══════════════════════════════════════════════════════════
 * actividad-internacional.css
 * Page: /contabilidad/actividad-internacional
 * Figma: 22889:78642
 * ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.actintl-hero {
  position: relative;
  height: 288px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.actintl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.actintl-hero__overlay-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

.actintl-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.actintl-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Breadcrumb */
.actintl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.actintl-breadcrumb__item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #fafafa;
  text-decoration: none;
}

.actintl-breadcrumb__item--active {
  color: rgba(250, 250, 250, 0.85);
}

.actintl-breadcrumb__sep {
  flex-shrink: 0;
  opacity: 0.7;
}

.actintl-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 40px;
  color: #fafafa;
  margin: 0;
}

/* ── Body layout ──────────────────────────────────────────── */
.actintl-body {
  background: white;
  padding: 64px 0;
}

.actintl-body__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.actintl-sidebar {
  flex: 0 0 256px;
  width: 256px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

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

.actintl-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actintl-sidebar__link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #525252;
  text-decoration: none;
  transition: color 0.15s;
}

.actintl-sidebar__link--active {
  color: #b91c1c;
}

.actintl-sidebar__link:hover {
  color: #b91c1c;
}

/* ── Accordion ────────────────────────────────────────────── */
.actintl-accordion {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.actintl-accordion__item {
  border-bottom: 1px solid #e5e5e5;
}

/* First item has no border-bottom of its own */
.actintl-accordion__item:first-child {
  border-bottom: none;
}

.actintl-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

.actintl-accordion__trigger-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #0a0a0a;
  flex: 1;
  min-width: 0;
}

.actintl-accordion__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.actintl-accordion__item--open .actintl-accordion__icon {
  transform: rotate(180deg);
}

.actintl-accordion__body {
  padding-bottom: 30px;
}

.actintl-accordion__body[hidden] {
  display: none !important;
}

.actintl-accordion__content {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #0a0a0a;
}

.actintl-accordion__content p {
  margin: 0 0 16px;
}

.actintl-accordion__content p:last-child {
  margin-bottom: 0;
}

.actintl-accordion__content a {
  color: #b91c1c;
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .actintl-body__container {
    flex-direction: column;
    gap: 32px;
  }

  .actintl-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .actintl-hero__title {
    font-size: 26px;
    line-height: 32px;
  }
}

/* ── Sub-accordion (nested inside accordion body) ─────── */
.intl-sub-container {
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  gap: 16px;
  width: 100%;
}

.intl-sub-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
  transition: all 0.2s ease;
}

.intl-sub-item:last-child {
  border-bottom: none;
}

.intl-sub-item--open {
  padding-bottom: 16px;
  border-bottom: none; /* No line under open item */
}

.intl-sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600; /* Semi-Bold */
  color: #0a0a0a;
  line-height: 24px;
}

.intl-sub-trigger svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.intl-sub-item--open .intl-sub-trigger svg {
  transform: rotate(180deg);
}

.intl-sub-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* text-base as per Figma */
  line-height: 24px;
  color: #0a0a0a;
}

.intl-sub-body[hidden] {
  display: none !important;
}

.intl-sub-body p {
  margin: 0 0 16px;
}

.intl-sub-body p:last-child {
  margin-bottom: 0;
}

.intl-sub-body ul {
  margin: 0 0 16px;
  padding-left: 24px; /* MS 24px per Figma */
}

.intl-sub-body li {
  margin-bottom: 6px;
  line-height: 24px;
}

.intl-sub-body li:last-child {
  margin-bottom: 0;
}

/* EFRAG list item links styling */
[data-field="field_intl_list_items"] p a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

[data-field="field_intl_list_items"] p a:hover {
  color: #b91c1c;
  text-decoration: underline;
}
