/* Repositorio de Conocimiento Landing Page - Figma 22889:79030 */
/* Colors from Figma design tokens */
:root {
  --repo-primary: #b91c1c;
  --repo-primary-fg: #fafafa;
  --repo-foreground: #0a0a0a;
  --repo-muted: #525252;
  --repo-border: #e5e5e5;
  --repo-card-bg: #f8fafc;
  --repo-icon-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%), linear-gradient(90deg, rgb(185, 28, 28) 0%, rgb(185, 28, 28) 100%);
}

.repositorio-landing {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
}

.repositorio-landing__container {
  max-width: 1280px;
  width: 100%;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Section */
.repositorio-hero {
  display: flex;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.repositorio-hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.repositorio-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
}

.repositorio-hero__breadcrumb a {
  color: var(--repo-muted);
  text-decoration: none;
}

.repositorio-hero__breadcrumb span {
  color: var(--repo-foreground);
}

.repositorio-hero__breadcrumb-sep {
  display: flex;
  align-items: center;
}

.repositorio-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--repo-foreground);
  margin: 0;
  letter-spacing: 0;
}

.repositorio-hero__description {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--repo-muted);
  margin: 0;
}

.repositorio-hero__image {
  flex: 1;
  aspect-ratio: 240 / 150;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
}

.repositorio-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Description Section */
.repositorio-description {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
}

.repositorio-description__text {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--repo-muted);
}

.repositorio-description__text p {
  margin: 0 0 16px 0;
}

.repositorio-description__text p:last-child {
  margin-bottom: 0;
}

.repositorio-description__images {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}

.repositorio-description__image-item {
  height: 215px;
  border-radius: 16px;
  overflow: hidden;
}

.repositorio-description__image-item:first-child {
  width: 343px;
}

.repositorio-description__image-item:last-child {
  height: 167px;
  width: 267px;
}

.repositorio-description__image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Cards Section */
.repositorio-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
}

.repositorio-card {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--repo-card-bg);
  border: 1px solid var(--repo-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.repositorio-card__icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--repo-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repositorio-card__icon {
  width: 20px;
  height: 20px;
}

.repositorio-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--repo-foreground);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.repositorio-card__subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--repo-muted);
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.repositorio-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  min-height: 36px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  color: #fafafa;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  background: #172554;
  padding: 8px 16px;
  border: 1px solid #172554;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.repositorio-card__link:hover {
  color: #fafafa;
  background: #1e3a8a;
  border-color: #1e3a8a;
  text-decoration: none;
}

/* Legal Note */
.repositorio-legal-note {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--repo-muted);
  margin: 32px 0 0 0;
  padding-top: 16px;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.repositorio-legal-note p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .repositorio-hero {
    flex-direction: column;
    gap: 32px;
  }

  .repositorio-hero__image {
    width: 100%;
    max-width: 600px;
  }

  .repositorio-description {
    flex-direction: column;
    gap: 24px;
  }

  .repositorio-description__images {
    width: 100%;
    justify-content: center;
  }

  .repositorio-cards {
    flex-wrap: wrap;
  }

  .repositorio-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  .repositorio-landing {
    padding: 32px 0;
  }

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

  .repositorio-card {
    flex: 1 1 100%;
  }

  .repositorio-description__images {
    flex-direction: column;
    align-items: center;
  }

  .repositorio-description__image-item {
    width: 100%;
    max-width: 343px;
    height: auto;
    aspect-ratio: 343 / 215;
  }

  .repositorio-description__image-item:last-child {
    width: 100%;
    max-width: 267px;
    aspect-ratio: 267 / 167;
  }
}
