/* Top bar */

/* ===== TOP BAR ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* clave para distribuir */
  gap: 10px;
  margin-bottom: 10px;
}

/* Reducir padding de columnas Bootstrap */
.top-bar .col {
  padding-left: 5px;
  padding-right: 5px;
}

/* ===== LADO IZQUIERDO ===== */
.top-bar .col-md-7 {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

/* Label */
.top-bar label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

/* Select */
.top-bar select {
  padding: 8px;
  min-width: 200px;
}

/* Botón aplicar */
.btn-aplicar {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
  height: 38px;
}

/* ===== LADO DERECHO ===== */
.top-bar .col-md-5 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  /* evita salto de línea */
}

/* Texto descarga */
.top-bar .col-md-5 span {
  white-space: nowrap;
  /* evita que se parta */
  font-size: 14px;
}

/* Grupo icono + botón */
.file-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Botones archivo */
.btn-file {
  border: 1px solid #999;
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}

/* Hover opcional */
.btn-file:hover {
  background: #f2f2f2;
  border-color: #666;
}

/* Iconos */
.file-group img {
  display: block;
  width: 28px;
  height: 30px;
  object-fit: contain;
}

/* ===== SECCIÓN DEFINICIÓN ===== */
.section {
  margin-top: 30px;
}

.section h2 {
  border-bottom: 3px solid #2f2f4f;
  padding-bottom: 5px;
}

/* Contenido principal */
.content {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

/* Caja de texto */
.definition-box {
  flex: 2;
  border: 1px solid #ccc;
  padding: 20px;
}

/* Panel lateral */
.side-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PDF */
.pdf {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

/* Fecha */
.update {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.update img {
    flex-shrink: 0;
}

.update-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.update-text strong {
    white-space: nowrap;
}

.update-text strong {
  font-weight: bold;
}

/* Contenedor horizontal */
.info-stats {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 15px;
}

/* Cada bloque */
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

/* Iconos */
.info-block img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Texto */
.info-text h4 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

.info-text p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.ver-mas {
  display: inline-block;
  margin-top: 8px;
  color: #2d6cdf;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
}

.ver-mas:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .info-stats {
    flex-direction: column;
  }
}
