/* ==========================================================================
   Página Tasas — Diseño basado en patrón Transformación (Figma 22889:79148)
   ========================================================================== */

/* Full-width for this page */
.page-content-wrapper:has(.tasas-page) .layout-container,
.page-content-wrapper:has(.tasas-page) .page-content {
  max-width: 100%;
  padding: 0;
}

/* ===== Page container ===== */
.tasas-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 0;
  width: 100%;
  background: #ffffff;
}

/* ===== Header: breadcrumb + title + description ===== */
.tasas-page__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
}

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

.tasas-page__breadcrumb-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.tasas-page__breadcrumb-item--muted {
  color: #525252;
}

.tasas-page__breadcrumb-item--active {
  color: #0a0a0a;
}

.tasas-page__breadcrumb-sep {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Title: 36px bold centered */
.tasas-page__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #0a0a0a;
  text-align: center;
  margin: 0;
  letter-spacing: 0;
}

/* Description: 888px wide centered */
.tasas-page__description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #525252;
  text-align: center;
  max-width: 888px;
  margin: 0;
}

.tasas-page__description p {
  margin: 0 0 8px;
}

.tasas-page__description p:last-child {
  margin-bottom: 0;
}

/* ===== Card Grid: 2 cols max 1280px ===== */
.tasas-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
}

/* Center last card when odd number */
.tasas-page__grid > .tasas-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 10px);
  justify-self: center;
}

/* ===== Individual Card ===== */
.tasas-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 228px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tasas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* Icon wrapper: white box with red icon */
.tasas-card__icon-wrapper {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

/* Title: from editorial_text */
.tasas-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: #0a0a0a;
  margin: 0;
}

.tasas-card__title p,
.tasas-card__title div {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* Subtitle: from pretitle */
.tasas-card__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #525252;
  margin: 0;
}

/* Links area: PDF downloads */
.tasas-card__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tasas-card__links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tasas-card__links p,
.tasas-card__links div {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #525252;
  margin: 0;
}

.tasas-card__links a {
  color: #172554;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tasas-card__links a:hover {
  color: #b91c1c;
}

/* CTA Button: red primary */
.tasas-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: #b91c1c;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #fafafa;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease;
  margin-top: 8px;
  width: fit-content;
}

.tasas-card__button:hover {
  background-color: #991b1b;
  color: #fafafa;
}

.tasas-card__button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .tasas-page__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tasas-page {
    padding: 40px 0;
    gap: 16px;
  }

  .tasas-page__header {
    padding: 0 16px;
  }

  .tasas-page__grid {
    padding: 0 16px;
  }

  .tasas-page__title {
    font-size: 28px;
    line-height: 32px;
  }

  .tasas-page__description {
    font-size: 14px;
    line-height: 20px;
  }

  .tasas-card {
    min-height: auto;
  }
}
