/* ==========================================================
   ACUERDOS AUTORIDADES TERCEROS PAÍSES — Figma 22889:76765
   Route: /auditoria/actividad-internacional/colaboracion-internacional/acuerdos-celebrados-autoridades-terceros-paises
   ========================================================== */

/* ── Hero Section ──────────────────────────────────────── */
.acuerdos-hero {
  position: relative;
  width: 100%;
  height: 288px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #172554;
}

.acuerdos-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.acuerdos-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acuerdos-hero__bg-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.acuerdos-hero__bg-overlay-img {
  position: absolute;
  left: 0;
  top: -155.92%;
  width: 100%;
  height: 355.6%;
  max-width: none;
  display: block;
}

.acuerdos-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 37, 84, 0.6) 0%, rgba(23, 37, 84, 0.9) 100%);
  z-index: 1;
}

.acuerdos-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  padding: 0 128px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acuerdos-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.acuerdos-hero__breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.acuerdos-hero__breadcrumb-item a:hover {
  color: #fff;
}

.acuerdos-hero__breadcrumb-item--current {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.acuerdos-hero__breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
}

.acuerdos-hero__title {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

/* ── Content Section ───────────────────────────────────── */
.acuerdos-content {
  width: 100%;
  padding: 40px 0 80px;
  background: #f9fafb;
}

.acuerdos-content__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 128px;
}

/* ── Top Bar ───────────────────────────────────────────── */
.acuerdos-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-toggle:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.btn-view-toggle svg {
  width: 18px;
  height: 18px;
}

.select-sort {
  padding: 8px 32px 8px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ── Separator ─────────────────────────────────────────── */
.acuerdos-separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 32px;
}

/* ── Two Column Layout ─────────────────────────────────── */
.acuerdos-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── Filter Panel (Sidebar) ────────────────────────────── */
.acuerdos-filter-panel {
  width: 280px;
  flex-shrink: 0;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
}

.filter-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.filter-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-search-wrap svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

.filter-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  transition: border-color 0.2s;
}

.filter-search-input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-select-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.filter-select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.filter-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn-submit:hover {
  background: #1d4ed8;
}

/* ── Table Wrapper ─────────────────────────────────────── */
.acuerdos-table-wrapper {
  flex: 1;
  min-width: 0;
}

.acuerdos-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.acuerdos-table-wrapper th {
  background: #f3f4f6;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.acuerdos-table-wrapper td {
  padding: 14px 16px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.acuerdos-table-wrapper tr:hover td {
  background: #f9fafb;
}

.acuerdos-table-wrapper .acuerdo-link {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.acuerdos-table-wrapper .acuerdo-link:hover {
  text-decoration: underline;
}

/* ── Card View ─────────────────────────────────────────── */
.acuerdos-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.acuerdo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s;
}

.acuerdo-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.acuerdo-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

.acuerdo-card__meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* ── Footer Newsletter ─────────────────────────────────── */
.footer-newsletter {
  background: #172554;
}

.footer-newsletter__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-newsletter__title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.footer-newsletter__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-newsletter__form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  max-width: 480px;
}

.footer-newsletter__input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.footer-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter__btn {
  padding: 10px 24px;
  background: #fff;
  color: #172554;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.footer-newsletter__btn:hover {
  background: #e5e7eb;
}

.footer-newsletter__privacy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ── Footer Enlaces ────────────────────────────────────── */
.footer-enlaces__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.footer-enlaces__item img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
}

/* ── Footer Legal ──────────────────────────────────────── */
.footer-legal {
  background: #0f172a;
  padding: 16px 0;
}

.footer-legal__links {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal__links a:hover {
  color: #fff;
}

/* ── Footer Bottom ─────────────────────────────────────── */
.footer-bottom-icac {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-icac__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-icac__logo {
  max-height: 40px;
}

.footer-bottom-icac__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-bottom-icac__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom-icac__social a {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-bottom-icac__social a:hover {
  opacity: 1;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .acuerdos-hero__content {
    padding: 0 64px;
  }

  .acuerdos-content__container {
    padding: 0 64px;
  }

  .acuerdos-layout {
    flex-direction: column;
  }

  .acuerdos-filter-panel {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .acuerdos-hero {
    height: 220px;
  }

  .acuerdos-hero__content {
    padding: 0 24px;
  }

  .acuerdos-hero__title {
    font-size: 24px;
  }

  .acuerdos-content__container {
    padding: 0 24px;
  }

  .acuerdos-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-newsletter__content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal__links {
    padding: 0 24px;
    flex-direction: column;
    gap: 8px;
  }
}
