.docs-page {
  padding: 1.5rem 1.25rem 2rem;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
  color: #0f172a;
}

/* Contenedor general */
.docs-header,
.docs-grid,
.docs-content,
.docs-empty {
  max-width: 1180px;
}

/* Header */
.docs-header {
  margin: 0 auto 1.75rem auto;
  padding: 2rem 2.25rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.docs-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, #0b3a67, #0ea5e9);
}

.docs-eyebrow {
  margin: 0 0 0.45rem 0;
  color: #0b5f9f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.docs-header p {
  max-width: 820px;
  margin-top: 0.75rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

/* Grid de tarjetas */
.docs-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.25rem;
}

/* Tarjeta */
.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 1.35rem;
  border-radius: 20px;
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  overflow: hidden;
}

.docs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 38%);
  pointer-events: none;
}

.docs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 116, 144, 0.35);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.docs-card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  margin-bottom: 1rem;
  z-index: 1;
}

.docs-card__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.docs-card__body {
  z-index: 1;
}

.docs-card__app {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.docs-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 850;
}

.docs-card p {
  margin-top: 0.7rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.docs-card__footer {
  z-index: 1;
  margin-top: auto;
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.9rem;
}

.docs-card__arrow {
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.docs-card:hover .docs-card__arrow {
  transform: translateX(4px);
}

/* Vista de documento */
.docs-content {
  margin: 0 auto;
}

.docs-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

/* Estado vacío */
.docs-empty {
  max-width: 720px;
  margin: 2rem auto;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.docs-empty__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  font-size: 2.3rem;
}

.docs-empty h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 850;
}

.docs-empty p {
  margin: 0.75rem auto 0 auto;
  max-width: 560px;
  color: #475569;
  line-height: 1.6;
}

.docs-toolbar {
  max-width: 1200px;
  margin: 0 auto 0.85rem auto;
  display: flex;
  justify-content: flex-end;
}

.docs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #062f55;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(6, 47, 85, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}

.docs-button:hover {
  background: #0b5f9f;
  color: #ffffff;
  transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 768px) {
  .docs-page {
    padding: 1rem;
  }

  .docs-header {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-frame {
    min-height: 72vh;
    border-radius: 16px;
  }
}